Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bf0ef06 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 4e4a31fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;