V4L/DVB (6632): xc2028: fix inverted logic in audio standard check
authorChris Pascoe <c.pascoe@itee.uq.edu.au>
Mon, 19 Nov 2007 07:16:47 +0000 (04:16 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:02:22 +0000 (19:02 -0200)
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>
drivers/media/video/tuner-xc2028.c

index 6e23fad0e56052f9ef784f1fd5a46f5b15ff00a4..166fede7d0e36e43c0a219719efac352b7893461 100644 (file)
@@ -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;