diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-04-06 03:35:27 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-14 18:43:40 -0400 |
commit | a2192cf47f593681cd65798880853c5224066c81 (patch) | |
tree | 1883c7aa872f02413ff8c3da558e40c4f3b3ab1c /drivers/media/dvb-core | |
parent | d047795c590f63d42160b84ac778b09af297d914 (diff) |
[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>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r-- | drivers/media/dvb-core/dvb_frontend.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-core/dvb_frontend.h b/drivers/media/dvb-core/dvb_frontend.h index b34922a08156..44fad1cbcb09 100644 --- a/drivers/media/dvb-core/dvb_frontend.h +++ b/drivers/media/dvb-core/dvb_frontend.h | |||
@@ -246,7 +246,7 @@ struct analog_demod_ops { | |||
246 | void (*set_params)(struct dvb_frontend *fe, | 246 | void (*set_params)(struct dvb_frontend *fe, |
247 | struct analog_parameters *params); | 247 | struct analog_parameters *params); |
248 | int (*has_signal)(struct dvb_frontend *fe); | 248 | int (*has_signal)(struct dvb_frontend *fe); |
249 | int (*get_afc)(struct dvb_frontend *fe); | 249 | int (*get_afc)(struct dvb_frontend *fe, s32 *afc); |
250 | void (*tuner_status)(struct dvb_frontend *fe); | 250 | void (*tuner_status)(struct dvb_frontend *fe); |
251 | void (*standby)(struct dvb_frontend *fe); | 251 | void (*standby)(struct dvb_frontend *fe); |
252 | void (*release)(struct dvb_frontend *fe); | 252 | void (*release)(struct dvb_frontend *fe); |