android_kernel_xiaomi_sm8350/drivers/media/dvb/frontends
Trent Piepho 4ce1567892 V4L/DVB (5777): Dvb-pll digitv dvb-usb: Eliminate last user of dvb_pll_configure
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>
2007-07-18 14:24:15 -03:00
..
bcm3510_priv.h
bcm3510.c
bcm3510.h
bsbe1.h
bsru6.h
cx22700.c
cx22700.h
cx22702.c V4L/DVB (5648): Dvb/frontends: remove unnecessary #include's of "dvb-pll.h" 2007-07-18 14:23:22 -03:00
cx22702.h
cx24110.c V4L/DVB (5202): DVB: Use ARRAY_SIZE macro when appropriate 2007-02-21 13:35:18 -02:00
cx24110.h
cx24123.c V4L/DVB (5202): DVB: Use ARRAY_SIZE macro when appropriate 2007-02-21 13:35:18 -02:00
cx24123.h
dib3000.h
dib3000mb_priv.h
dib3000mb.c
dib3000mc.c V4L/DVB (4998): [PATCH] DIB3000MC and NOVA T USB2 #2 2007-02-21 13:34:14 -02:00
dib3000mc.h
dib7000m.c Fix misspellings collected by members of KJ list. 2007-05-09 07:14:03 +02:00
dib7000m.h
dib7000p.c Fix misspellings collected by members of KJ list. 2007-05-09 07:14:03 +02:00
dib7000p.h
dibx000_common.c i2c: Shrink struct i2c_client 2007-05-01 23:26:28 +02:00
dibx000_common.h
dvb_dummy_fe.c
dvb_dummy_fe.h
dvb-pll.c V4L/DVB (5777): Dvb-pll digitv dvb-usb: Eliminate last user of dvb_pll_configure 2007-07-18 14:24:15 -03:00
dvb-pll.h V4L/DVB (5777): Dvb-pll digitv dvb-usb: Eliminate last user of dvb_pll_configure 2007-07-18 14:24:15 -03:00
isl6421.c V4L/DVB (5472): Isl6421: don't reference freed memory 2007-03-27 08:45:56 -03:00
isl6421.h
Kconfig V4L/DVB (5543): Tda10023: Add support for frontend TDA10023 2007-04-27 15:45:47 -03:00
l64781.c
l64781.h
lgdt330x_priv.h
lgdt330x.c V4L/DVB (5494): Lgdt330x: Fix some warnings 2007-04-27 15:45:24 -03:00
lgdt330x.h
lnbp21.c
lnbp21.h
Makefile V4L/DVB (5745): Dvb: use '+=' instead of '=' for EXTRA_CFLAGS 2007-07-18 14:23:56 -03:00
mt312_priv.h
mt312.c
mt312.h
mt352_priv.h
mt352.c
mt352.h
mt2060_priv.h
mt2060.c
mt2060.h
nxt200x.c V4L/DVB (5648): Dvb/frontends: remove unnecessary #include's of "dvb-pll.h" 2007-07-18 14:23:22 -03:00
nxt200x.h V4L/DVB (5633): Tuv1236d: move rf input switching code into dvb-pll 2007-07-18 14:23:14 -03:00
nxt6000_priv.h
nxt6000.c
nxt6000.h
or51132.c V4L/DVB (5648): Dvb/frontends: remove unnecessary #include's of "dvb-pll.h" 2007-07-18 14:23:22 -03:00
or51132.h
or51211.c
or51211.h
qt1010_priv.h V4L/DVB (5137): Dvb: add new qt1010 tuner module 2007-02-21 13:34:53 -02:00
qt1010.c V4L/DVB (5253): Qt1010: whitespace / 80 column cleanups 2007-02-21 13:35:33 -02:00
qt1010.h V4L/DVB (5137): Dvb: add new qt1010 tuner module 2007-02-21 13:34:53 -02:00
s5h1420.c
s5h1420.h
sp887x.c
sp887x.h
sp8870.c
sp8870.h
stv0297.c V4L/DVB (5247): Stv0297: Enable BER/UNC counting 2007-02-21 13:35:32 -02:00
stv0297.h
stv0299.c V4L/DVB (5195): Frontends: make 4 functions static 2007-02-21 13:35:16 -02:00
stv0299.h
tda826x.c V4L/DVB (5716): Tda10086,tda826x: fix tuning, STR/SNR values 2007-06-08 08:21:13 -03:00
tda826x.h
tda827x.c V4L/DVB (5485): Tda827x: delayed probing of tuner version 2007-04-27 15:45:17 -03:00
tda827x.h V4L/DVB (5317): Create tda827x dvb tuner module 2007-04-27 15:43:35 -03:00
tda1002x.h V4L/DVB (5544): Budget-av: Make inversion setting configurable, add KNC ONE V1.0 card 2007-04-27 15:45:48 -03:00
tda1004x.c V4L/DVB (5458): Tda1004x: add ts_mode option to config struct 2007-04-27 15:44:58 -03:00
tda1004x.h V4L/DVB (5458): Tda1004x: add ts_mode option to config struct 2007-04-27 15:44:58 -03:00
tda8083.c
tda8083.h
tda10021.c Fix occurrences of "the the " 2007-05-09 08:57:56 +02:00
tda10023.c V4L/DVB (5739): Replace C code with calls to ARRAY_SIZE macro. 2007-07-18 14:23:52 -03:00
tda10086.c V4L/DVB (5716): Tda10086,tda826x: fix tuning, STR/SNR values 2007-06-08 08:21:13 -03:00
tda10086.h
tua6100.c
tua6100.h
ves1x93.c Fix occurrences of "the the " 2007-05-09 08:57:56 +02:00
ves1x93.h
ves1820.c
ves1820.h
zl10353_priv.h V4L/DVB (5218): Zl10353: register definitions update 2007-02-21 13:35:25 -02:00
zl10353.c V4L/DVB (5218): Zl10353: register definitions update 2007-02-21 13:35:25 -02:00
zl10353.h V4L/DVB (5217): Zl10353: Implement TRL nominal rate calculation 2007-02-21 13:35:24 -02:00