lkml.org 
[lkml]   [2011]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[25/70] [media] tuner-core: fix tuner_resume: use t->mode instead of t->type
2.6.39-stable review patch.  If anyone has any objections, please let us know.

------------------
From: Hans Verkuil <hans.verkuil@cisco.com>

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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -1223,7 +1223,7 @@ static int tuner_resume(struct i2c_clien
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;



\
 
 \ /
  Last update: 2011-08-02 01:27    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site