diff options
author | Hans Verkuil | 2011-06-14 08:56:09 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2011-07-07 20:00:10 +0200 |
commit | 4e4a31fb95d88518180517bae3098a23ebde9f9c (patch) | |
tree | 2b30f41f3685345c2d4750d73f412ce03329e6ef /drivers/sfi/sfi_acpi.c | |
parent | [media] rc: call input_sync after scancode reports (diff) | |
download | kernel-qcow2-linux-4e4a31fb95d88518180517bae3098a23ebde9f9c.tar.gz kernel-qcow2-linux-4e4a31fb95d88518180517bae3098a23ebde9f9c.tar.xz kernel-qcow2-linux-4e4a31fb95d88518180517bae3098a23ebde9f9c.zip |
[media] tuner-core: fix s_std and s_tuner
Both s_std and s_tuner are broken because set_mode_freq is called before the
new std (for s_std) and audmode (for s_tuner) are set.
This patch splits set_mode_freq in a set_mode and a set_freq and in s_std/s_tuner
first calls set_mode, and if that returns 0 (i.e. the mode is supported)
then they set t->std/t->audmode and call set_freq.
This fixes a bug where changing std or audmode would actually change it to
the previous value.
Discovered while testing analog TV standards for cx18 with a tda18271 tuner.
Cc: stable@kernel.org
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/sfi/sfi_acpi.c')
0 files changed, 0 insertions, 0 deletions