summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-xc2028.c
diff options
context:
space:
mode:
authorChris Pascoe2007-11-19 08:16:47 +0100
committerMauro Carvalho Chehab2008-01-25 22:02:22 +0100
commite155d908f72cc429b538c101ee8ffcd10a44b69b (patch)
treed08c21231c6a55528375e2914d6ef6ab37d55c1f /drivers/media/video/tuner-xc2028.c
parentV4L/DVB (6631): xc2028: eliminate i2c macro side-effects (diff)
downloadkernel-qcow2-linux-e155d908f72cc429b538c101ee8ffcd10a44b69b.tar.gz
kernel-qcow2-linux-e155d908f72cc429b538c101ee8ffcd10a44b69b.tar.xz
kernel-qcow2-linux-e155d908f72cc429b538c101ee8ffcd10a44b69b.zip
V4L/DVB (6632): xc2028: fix inverted logic in audio standard check
strcasecmp returns 0 on match, not true. Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-xc2028.c')
-rw-r--r--drivers/media/video/tuner-xc2028.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c
index 6e23fad0e560..166fede7d0e3 100644
--- a/drivers/media/video/tuner-xc2028.c
+++ b/drivers/media/video/tuner-xc2028.c
@@ -200,17 +200,17 @@ void dump_firm_type(unsigned int type)
static v4l2_std_id parse_audio_std_option(void)
{
- if (strcasecmp(audio_std, "A2"))
+ if (strcasecmp(audio_std, "A2") == 0)
return V4L2_STD_A2;
- if (strcasecmp(audio_std, "A2/A"))
+ if (strcasecmp(audio_std, "A2/A") == 0)
return V4L2_STD_A2_A;
- if (strcasecmp(audio_std, "A2/B"))
+ if (strcasecmp(audio_std, "A2/B") == 0)
return V4L2_STD_A2_B;
- if (strcasecmp(audio_std, "NICAM"))
+ if (strcasecmp(audio_std, "NICAM") == 0)
return V4L2_STD_NICAM;
- if (strcasecmp(audio_std, "NICAM/A"))
+ if (strcasecmp(audio_std, "NICAM/A") == 0)
return V4L2_STD_NICAM_A;
- if (strcasecmp(audio_std, "NICAM/B"))
+ if (strcasecmp(audio_std, "NICAM/B") == 0)
return V4L2_STD_NICAM_B;
return 0;