Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=864a6b813ab6cb69f3552553899ae443329ecfa9
Commit:     864a6b813ab6cb69f3552553899ae443329ecfa9
Parent:     a55db8cd7f8a107f3abcb4c803b1873b2be63663
Author:     Michael Krufky <[EMAIL PROTECTED]>
AuthorDate: Sun Dec 9 17:21:54 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:03:29 2008 -0200

    V4L/DVB (6787): tuner: bug-fix: default mode was set to bogus value
    
    Fix type inconsistency in t->mode value, causing the following:
    
    tuner' 1-0043: freq set: unknown mode: 0x0004!
    
    (only visible with tuner debug enabled)
    
    Signed-off-by: Michael Krufky <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/tuner-core.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 59e67c9..355f981 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -1138,11 +1138,11 @@ register_client:
 
        /* Sets a default mode */
        if (t->mode_mask & T_ANALOG_TV) {
-               t->mode = T_ANALOG_TV;
+               t->mode = V4L2_TUNER_ANALOG_TV;
        } else  if (t->mode_mask & T_RADIO) {
-               t->mode = T_RADIO;
+               t->mode = V4L2_TUNER_RADIO;
        } else {
-               t->mode = T_DIGITAL_TV;
+               t->mode = V4L2_TUNER_DIGITAL_TV;
        }
        set_type(client, t->type, t->mode_mask, t->config, t->tuner_callback);
        list_add_tail(&t->list, &tuner_list);
-
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