Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] tda666x: add support for set_parms() and get_frequency()

Those two callbacks are the ones that should be used by normal
DVB frontend drivers.

Add support for them.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

+20
+20
drivers/media/dvb-frontends/tda665x.c
··· 88 88 return err; 89 89 } 90 90 91 + static int tda665x_get_frequency(struct dvb_frontend *fe, u32 *frequency) 92 + { 93 + struct tda665x_state *state = fe->tuner_priv; 94 + 95 + *frequency = state->frequency; 96 + 97 + return 0; 98 + } 99 + 91 100 static int tda665x_get_status(struct dvb_frontend *fe, u32 *status) 92 101 { 93 102 struct tda665x_state *state = fe->tuner_priv; ··· 210 201 return err; 211 202 } 212 203 204 + static int tda665x_set_params(struct dvb_frontend *fe) 205 + { 206 + struct dtv_frontend_properties *c = &fe->dtv_property_cache; 207 + 208 + tda665x_set_frequency(fe, c->frequency); 209 + 210 + return 0; 211 + } 212 + 213 213 static int tda665x_set_state(struct dvb_frontend *fe, 214 214 enum tuner_param param, 215 215 struct tuner_state *tstate) ··· 244 226 .set_state = tda665x_set_state, 245 227 .get_state = tda665x_get_state, 246 228 .get_status = tda665x_get_status, 229 + .set_params = tda665x_set_params, 230 + .get_frequency = tda665x_get_frequency, 247 231 .release = tda665x_release 248 232 }; 249 233