diff options
author | Chris Pascoe <c.pascoe@itee.uq.edu.au> | 2007-11-19 02:16:47 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:22 -0500 |
commit | e155d908f72cc429b538c101ee8ffcd10a44b69b (patch) | |
tree | d08c21231c6a55528375e2914d6ef6ab37d55c1f /drivers | |
parent | 47cc5b78102b4e9993ea1c054b4f077cf7aac7db (diff) |
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')
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 12 |
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) | |||
200 | 200 | ||
201 | static v4l2_std_id parse_audio_std_option(void) | 201 | static v4l2_std_id parse_audio_std_option(void) |
202 | { | 202 | { |
203 | if (strcasecmp(audio_std, "A2")) | 203 | if (strcasecmp(audio_std, "A2") == 0) |
204 | return V4L2_STD_A2; | 204 | return V4L2_STD_A2; |
205 | if (strcasecmp(audio_std, "A2/A")) | 205 | if (strcasecmp(audio_std, "A2/A") == 0) |
206 | return V4L2_STD_A2_A; | 206 | return V4L2_STD_A2_A; |
207 | if (strcasecmp(audio_std, "A2/B")) | 207 | if (strcasecmp(audio_std, "A2/B") == 0) |
208 | return V4L2_STD_A2_B; | 208 | return V4L2_STD_A2_B; |
209 | if (strcasecmp(audio_std, "NICAM")) | 209 | if (strcasecmp(audio_std, "NICAM") == 0) |
210 | return V4L2_STD_NICAM; | 210 | return V4L2_STD_NICAM; |
211 | if (strcasecmp(audio_std, "NICAM/A")) | 211 | if (strcasecmp(audio_std, "NICAM/A") == 0) |
212 | return V4L2_STD_NICAM_A; | 212 | return V4L2_STD_NICAM_A; |
213 | if (strcasecmp(audio_std, "NICAM/B")) | 213 | if (strcasecmp(audio_std, "NICAM/B") == 0) |
214 | return V4L2_STD_NICAM_B; | 214 | return V4L2_STD_NICAM_B; |
215 | 215 | ||
216 | return 0; | 216 | return 0; |