dvb-usb/friio, dvb-usb-v2/gl861: decompose friio and merge with gl861
Subsystems (2)
PATCH v7 1/1 dvb-usb/friio, dvb-usb-v2/gl861: decompose friio and merge with gl861
From: Akihiro Tsukada <[email protected]>
Friio device contains "gl861" bridge and "tc90522" demod, for which the separate drivers are already in the kernel. But friio driver was monolithic and did not use them, practically copying those features.
This patch decomposes friio driver into sub drivers and re-uses existing ones, thus reduces some code.
It adds some features to gl861,
to support the friio-specific init/config of the devices and implement i2c communications to the tuner via demod with USB vendor requests.
---
Changes since v6:
- separate algorithm/adapter for tuner i2c
- remove the hack for module ref-counting (fix in the tuner driver)
- cut redundant sleeps in friio init/config
- add comments on Friio-specific init/config and i2c
Changes since v5:
- specify chip name literally
Changes since v4:
- use new style of specifying pll_desc id of the tuner driver
Changes since v3:
- make dvb_usb_device_properties static
Changes since v2:
(patch #27928, dvb-usb-friio: split and merge into dvb-usbv2-gl861)
- used the new i2c binding helpers instead of my own one
- merged gl861-friio.c with gl861.c
drivers/media/usb/dvb-usb-v2/Kconfig | 5 +- drivers/media/usb/dvb-usb-v2/gl861.c | 471 ++++++++++++++++++++++++ drivers/media/usb/dvb-usb-v2/gl861.h | 1 + drivers/media/usb/dvb-usb/Kconfig | 6 - drivers/media/usb/dvb-usb/Makefile | 3 - drivers/media/usb/dvb-usb/friio-fe.c | 441 ---------------------- drivers/media/usb/dvb-usb/friio.c | 522 --------------------------- drivers/media/usb/dvb-usb/friio.h | 99 ----- 8 files changed, 476 insertions(+), 1072 deletions(-) delete mode 100644 drivers/media/usb/dvb-usb/friio-fe.c delete mode 100644 drivers/media/usb/dvb-usb/friio.c delete mode 100644 drivers/media/usb/dvb-usb/friio.h
drivers/media/usb/dvb-usb-v2/Kconfig +4 -1
@@ -96,10 +96,13 @@ config DVB_USB_GL861 tristate "Genesys Logic GL861 USB2.0 support" depends on DVB_USB_V2 select DVB_ZL10353 if MEDIA_SUBDRV_AUTOSELECT + select DVB_TC90522 if MEDIA_SUBDRV_AUTOSELECT select MEDIA_TUNER_QT1010 if MEDIA_SUBDRV_AUTOSELECT + select DVB_PLL if MEDIA_SUBDRV_AUTOSELECT help Say Y here to support the MSI Megasky 580 (55801) DVB-T USB2.0 - receiver with USB ID 0db0:5581. + receiver with USB ID 0db0:5581, Friio White ISDB-T receiver + with USB ID 0x7a69:0001. config DVB_USB_LME2510 tristate "LME DM04/QQBOX DVB-S USB2.0 support"
drivers/media/usb/dvb-usb-v2/gl861.c +471 -0
492 lines not on this page · raw message
drivers/media/usb/dvb-usb-v2/gl861.h +1 -0
@@ -9,5 +9,6 @@#define GL861_REQ_I2C_WRITE 0x01#define GL861_REQ_I2C_READ 0x02 +#define GL861_REQ_I2C_RAW 0x03#endif
drivers/media/usb/dvb-usb/Kconfig +0 -6
@@ -312,12 +312,6 @@ config DVB_USB_DTV5100 help Say Y here to support the AME DTV-5100 USB2.0 DVB-T receiver. -config DVB_USB_FRIIO - tristate "Friio ISDB-T USB2.0 Receiver support" - depends on DVB_USB - help - Say Y here to support the Japanese DTV receiver Friio. - config DVB_USB_AZ6027 tristate "Azurewave DVB-S/S2 USB2.0 AZ6027 support" depends on DVB_USB
drivers/media/usb/dvb-usb/Makefile +0 -3
@@ -71,9 +71,6 @@ obj-$(CONFIG_DVB_USB_DTV5100) += dvb-usb-dtv5100.o dvb-usb-cinergyT2-objs := cinergyT2-core.o cinergyT2-fe.o obj-$(CONFIG_DVB_USB_CINERGY_T2) += dvb-usb-cinergyT2.o -dvb-usb-friio-objs := friio.o friio-fe.o -obj-$(CONFIG_DVB_USB_FRIIO) += dvb-usb-friio.o - dvb-usb-az6027-objs := az6027.o obj-$(CONFIG_DVB_USB_AZ6027) += dvb-usb-az6027.o
drivers/media/usb/dvb-usb/friio-fe.c deleted +0 -441
441 lines not on this page · raw message
drivers/media/usb/dvb-usb/friio.c deleted +0 -522
522 lines not on this page · raw message
drivers/media/usb/dvb-usb/friio.h deleted +0 -99
99 lines not on this page · raw message
Signature · 1 line
2.17.1