1
0
Fork 0

[media] tuner-core: fix tuner_resume: use t->mode instead of t->type

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).

Cc: stable@kernel.org
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
hifive-unleashed-5.1
Hans Verkuil 2011-06-13 09:21:56 -03:00 committed by Mauro Carvalho Chehab
parent 4e4a31fb95
commit 9bf0ef060e
1 changed files with 1 additions and 1 deletions

View 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;