]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
[media] tuner-core/tda9887: get_afc can be tuner mode specific
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 6 Apr 2013 07:35:27 +0000 (04:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 14 Apr 2013 22:43:40 +0000 (19:43 -0300)
commita2192cf47f593681cd65798880853c5224066c81
tree1883c7aa872f02413ff8c3da558e40c4f3b3ab1c
parentd047795c590f63d42160b84ac778b09af297d914
[media] tuner-core/tda9887: get_afc can be tuner mode specific

The get_afc op in tda9887 is valid only for the radio mode.
But due to the way get_afc in analog_demod_ops was designed it would
overwrite the afc value with a bogus value when in TV mode.
Pass a pointer to the afc value instead, and when not in radio mode
leave it alone in the tda9887.
This broke a long time ago in 2.6.19 when the get_afc op was introduced.
Before that the afc was only set for radio mode in the tda9887.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-core/dvb_frontend.h
drivers/media/tuners/tda9887.c
drivers/media/v4l2-core/tuner-core.c