OSDN Git Service

tuner-core: fix tuner_resume: use t->mode instead of t->type
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 13 Jun 2011 12:21:56 +0000 (09:21 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 3 Aug 2011 19:42:30 +0000 (12:42 -0700)
commit 9bf0ef060ebae452c07cf5b0616247780740bb50 upstream.

set_mode is called with t->type, which is the tuner type. Instead, use
t->mode which is the actual tuner mode (i.e. radio vs tv).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/tuner-core.c

index 4879704..1843fc2 100644 (file)
@@ -1223,7 +1223,7 @@ static int tuner_resume(struct i2c_client *c)
        tuner_dbg("resume\n");
 
        if (!t->standby)
-               if (set_mode(t, t->type) == 0)
+               if (set_mode(t, t->mode) == 0)
                        set_freq(t, 0);
 
        return 0;