Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e155d908f72cc429b538c101ee8ffcd10a44b69b
Commit:     e155d908f72cc429b538c101ee8ffcd10a44b69b
Parent:     47cc5b78102b4e9993ea1c054b4f077cf7aac7db
Author:     Chris Pascoe <[EMAIL PROTECTED]>
AuthorDate: Mon Nov 19 04:16:47 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:02:22 2008 -0200

    V4L/DVB (6632): xc2028: fix inverted logic in audio standard check
    
    strcasecmp returns 0 on match, not true.
    
    Signed-off-by: Chris Pascoe <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 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 6e23fad..166fede 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to