Commit e155d908 authored by Chris Pascoe's avatar Chris Pascoe Committed by Mauro Carvalho Chehab

V4L/DVB (6632): xc2028: fix inverted logic in audio standard check

strcasecmp returns 0 on match, not true.
Signed-off-by: default avatarChris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 47cc5b78
...@@ -200,17 +200,17 @@ void dump_firm_type(unsigned int type) ...@@ -200,17 +200,17 @@ void dump_firm_type(unsigned int type)
static v4l2_std_id parse_audio_std_option(void) static v4l2_std_id parse_audio_std_option(void)
{ {
if (strcasecmp(audio_std, "A2")) if (strcasecmp(audio_std, "A2") == 0)
return V4L2_STD_A2; return V4L2_STD_A2;
if (strcasecmp(audio_std, "A2/A")) if (strcasecmp(audio_std, "A2/A") == 0)
return V4L2_STD_A2_A; return V4L2_STD_A2_A;
if (strcasecmp(audio_std, "A2/B")) if (strcasecmp(audio_std, "A2/B") == 0)
return V4L2_STD_A2_B; return V4L2_STD_A2_B;
if (strcasecmp(audio_std, "NICAM")) if (strcasecmp(audio_std, "NICAM") == 0)
return V4L2_STD_NICAM; return V4L2_STD_NICAM;
if (strcasecmp(audio_std, "NICAM/A")) if (strcasecmp(audio_std, "NICAM/A") == 0)
return V4L2_STD_NICAM_A; return V4L2_STD_NICAM_A;
if (strcasecmp(audio_std, "NICAM/B")) if (strcasecmp(audio_std, "NICAM/B") == 0)
return V4L2_STD_NICAM_B; return V4L2_STD_NICAM_B;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment