4ce1567892
The last user of dvb_pll_configure was the dvb-usb function dvb_usb_tuner_calc_regs(), which was nothing more than a wrapper around dvb_pll_configure(). It's just a copy of the functionality provided by the tuner_ops calc_regs method, and can be deleted. There were two users of dvb_usb_tuner_calc_regs(). One was dvb_usb_tuner_set_params_i2c(), which is converted to use fe->ops.tuner_ops.calc_regs(). The other was the digitv driver. This driver can use one of two demods, mt352 or nxt6000. For the mt352, the driver would set tuner_ops.calc_regs to dvb_usb_tuner_calc_regs(). We can just attach dvb_pll and use the tuner_ops.calc_regs() provided by that module. For the nxt600, the driver would set tuner_ops.set_params to digitv_nxt6000_tuner_set_params. That function would in turn use dvb_usb_tuner_calc_regs(). We convert it to use tuner_ops.calc_regs() instead, and use dvb_pll_attach. The digitv_tuner_attach() needs to know which frontend was attached by digitv_frontend_attach(), since the nxt6000 needs tuner_ops.set_params() to be overridden with digitv_nxt6000_tuner_set_params(). So, to do this a digitv_state that says which frontend was used is added to the dvb_usb_device private state field. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> |
||
---|---|---|
.. | ||
a800.c | ||
af9005-fe.c | ||
af9005-remote.c | ||
af9005-script.h | ||
af9005.c | ||
af9005.h | ||
au6610.c | ||
au6610.h | ||
cxusb.c | ||
cxusb.h | ||
dib07x0.h | ||
dib0700.h | ||
dib0700_core.c | ||
dib0700_devices.c | ||
dibusb-common.c | ||
dibusb-mb.c | ||
dibusb-mc.c | ||
dibusb.h | ||
digitv.c | ||
digitv.h | ||
dtt200u-fe.c | ||
dtt200u.c | ||
dtt200u.h | ||
dvb-usb-common.h | ||
dvb-usb-dvb.c | ||
dvb-usb-firmware.c | ||
dvb-usb-i2c.c | ||
dvb-usb-ids.h | ||
dvb-usb-init.c | ||
dvb-usb-remote.c | ||
dvb-usb-urb.c | ||
dvb-usb.h | ||
gl861.c | ||
gl861.h | ||
gp8psk-fe.c | ||
gp8psk.c | ||
gp8psk.h | ||
Kconfig | ||
m920x.c | ||
m920x.h | ||
Makefile | ||
nova-t-usb2.c | ||
opera1.c | ||
opera1.h | ||
ttusb2.c | ||
ttusb2.h | ||
umt-010.c | ||
usb-urb.c | ||
vp702x-fe.c | ||
vp702x.c | ||
vp702x.h | ||
vp7045-fe.c | ||
vp7045.c | ||
vp7045.h |