summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorChris Pascoe <c.pascoe@itee.uq.edu.au>2007-11-19 17:16:47 +1000
committerChris Pascoe <c.pascoe@itee.uq.edu.au>2007-11-19 17:16:47 +1000
commita0510746cb1d0fcf514a97436a0ff31df1591873 (patch)
tree6c7609781ba31b4abf2697313898d1c3afd1d7b5 /linux/drivers
parent977137616ba441738ef63e7ef251c96909bdb97e (diff)
downloadmediapointer-dvb-s2-a0510746cb1d0fcf514a97436a0ff31df1591873.tar.gz
mediapointer-dvb-s2-a0510746cb1d0fcf514a97436a0ff31df1591873.tar.bz2
xc2028: fix inverted logic in audio standard check
From: Chris Pascoe <c.pascoe@itee.uq.edu.au> 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 'linux/drivers')
-rw-r--r--linux/drivers/media/video/tuner-xc2028.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/linux/drivers/media/video/tuner-xc2028.c b/linux/drivers/media/video/tuner-xc2028.c
index bfad3b50c..679d6cd71 100644
--- a/linux/drivers/media/video/tuner-xc2028.c
+++ b/linux/drivers/media/video/tuner-xc2028.c
@@ -215,17 +215,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;