lmedm04 v2.05 conversion to dvb-usb-v2
PATCH 1/1 lmedm04 v2.05 conversion to dvb-usb-v2
Conversion of lmedm04 to dvb-usb-v2
functional changes are that callbacks have been moved to fe_ioctl_override.
This patch is applied on top of [BUG] Re: dvb_usb_lmedm04 crash Kernel (rs2000)
http://patchwork.linuxtv.org/patch/13584/
---
drivers/media/dvb/dvb-usb-v2/Kconfig | 13 +
drivers/media/dvb/dvb-usb-v2/Makefile | 3 +
.../media/dvb/{dvb-usb => dvb-usb-v2}/lmedm04.c | 610 +++++++++-----------
.../media/dvb/{dvb-usb => dvb-usb-v2}/lmedm04.h | 0
drivers/media/dvb/dvb-usb/Kconfig | 13 -
drivers/media/dvb/dvb-usb/Makefile | 3 -
6 files changed, 300 insertions(+), 342 deletions(-)
rename drivers/media/dvb/{dvb-usb => dvb-usb-v2}/lmedm04.c (69%)
rename drivers/media/dvb/{dvb-usb => dvb-usb-v2}/lmedm04.h (100%)drivers/media/dvb/dvb-usb-v2/Kconfig +13 -0
@@ -101,6 +101,19 @@ config DVB_USB_GL861 Say Y here to support the MSI Megasky 580 (55801) DVB-T USB2.0 receiver with USB ID 0db0:5581. +config DVB_USB_LME2510 + tristate "LME DM04/QQBOX DVB-S USB2.0 support" + depends on DVB_USB_V2 + select DVB_TDA10086 if !DVB_FE_CUSTOMISE + select DVB_TDA826X if !DVB_FE_CUSTOMISE + select DVB_STV0288 if !DVB_FE_CUSTOMISE + select DVB_IX2505V if !DVB_FE_CUSTOMISE + select DVB_STV0299 if !DVB_FE_CUSTOMISE + select DVB_PLL if !DVB_FE_CUSTOMISE + select DVB_M88RS2000 if !DVB_FE_CUSTOMISE + help + Say Y here to support the LME DM04/QQBOX DVB-S USB2.0 + config DVB_USB_MXL111SF tristate "MxL111SF DTV USB2.0 support" depends on DVB_USB_V2
drivers/media/dvb/dvb-usb-v2/Makefile +3 -0
@@ -21,6 +21,9 @@ obj-$(CONFIG_DVB_USB_CE6230) += dvb-usb-ce6230.o dvb-usb-ec168-objs = ec168.o obj-$(CONFIG_DVB_USB_EC168) += dvb-usb-ec168.o +dvb-usb-lmedm04-objs = lmedm04.o +obj-$(CONFIG_DVB_USB_LME2510) += dvb-usb-lmedm04.o + dvb-usb-gl861-objs = gl861.o obj-$(CONFIG_DVB_USB_GL861) += dvb-usb-gl861.o
drivers/media/dvb/dvb-usb-v2/lmedm04.c renamed from drivers/media/dvb/dvb-usb/lmedm04.c +284 -326
1,022 lines not on this page · raw message
drivers/media/dvb/dvb-usb-v2/lmedm04.h renamed from drivers/media/dvb/dvb-usb/lmedm04.h +0 -0
drivers/media/dvb/dvb-usb/Kconfig +0 -13
@@ -312,19 +312,6 @@ config DVB_USB_AZ6027 help Say Y here to support the AZ6027 device -config DVB_USB_LME2510 - tristate "LME DM04/QQBOX DVB-S USB2.0 support" - depends on DVB_USB - select DVB_TDA10086 if !DVB_FE_CUSTOMISE - select DVB_TDA826X if !DVB_FE_CUSTOMISE - select DVB_STV0288 if !DVB_FE_CUSTOMISE - select DVB_IX2505V if !DVB_FE_CUSTOMISE - select DVB_STV0299 if !DVB_FE_CUSTOMISE - select DVB_PLL if !DVB_FE_CUSTOMISE - select DVB_M88RS2000 if !DVB_FE_CUSTOMISE - help - Say Y here to support the LME DM04/QQBOX DVB-S USB2.0 . - config DVB_USB_TECHNISAT_USB2 tristate "Technisat DVB-S/S2 USB2.0 support" depends on DVB_USB
drivers/media/dvb/dvb-usb/Makefile +0 -3
@@ -75,9 +75,6 @@ obj-$(CONFIG_DVB_USB_AZ6007) += dvb-usb-az6007.o dvb-usb-az6027-objs = az6027.o obj-$(CONFIG_DVB_USB_AZ6027) += dvb-usb-az6027.o -dvb-usb-lmedm04-objs = lmedm04.o -obj-$(CONFIG_DVB_USB_LME2510) += dvb-usb-lmedm04.o - dvb-usb-technisat-usb2-objs = technisat-usb2.o obj-$(CONFIG_DVB_USB_TECHNISAT_USB2) += dvb-usb-technisat-usb2.o
Signature · 1 line
1.7.9.5
Em 05-08-2012 11:10, Malcolm Priestley escreveu:
Quoted 3 lines
Conversion of lmedm04 to dvb-usb-v2
functional changes are that callbacks have been moved to
fe_ioctl_override.
Don't do that: fe_ioctl_override has a broken design and only handles DVBv3 ioctl's. So, if userspace is using DVBv5, this will cause a regression.
Antti,
IMO, the best thing to do is to either remove fe_ioctl_override or to print a warning when a driver calls it, in order to warn developers that they're using a legacy callback that could cause the driver to not work properly.
Regards,
Mauro
Quoted 2 lines · Mauro Carvalho Chehab
Em 05-08-2012 11:10, Malcolm Priestley escreveu:
Quoted 1 line
Conversion of lmedm04 to dvb-usb-v2
You were faster than I :) Thanks!
http://blog.palosaari.fi/2012/08/naked-hardware-1-dm04-usb-20-satellite.html
Quoted 10 lines
Quoted 1 line
functional changes are that callbacks have been moved to
fe_ioctl_override.Don't do that:
fe_ioctl_overridehas a broken design and only handles DVBv3 ioctl's. So, if userspace is using DVBv5, this will cause a regression.Antti,
IMO, the best thing to do is to either remove
fe_ioctl_overrideor to print a warning when a driver calls it, in order to warn developers that they're using a legacy callback that could cause the driver to not work properly.
I agree that.
regards
Antti
Signature · 1 line
http://palosaari.fi/
Quoted 9 lines · Malcolm Priestley
Conversion of lmedm04 to dvb-usb-v2
functional changes are that callbacks have been moved to
fe_ioctl_override.This patch is applied on top of [BUG] Re:
dvb_usb_lmedm04crash Kernel (rs2000)
http://patchwork.linuxtv.org/patch/13584/Signed-off-by Malcolm Priestley <[email protected]>
I reviewed it quickly and didn't see any dvb-usb-v2 issues. Anyhow, that driver look quite complex overall and maybe there is room for cleaning. There is even own urb handling routines for both data streaming and control messages, why? (due to that it is not possible to use dvb-usb power-management)
regards
Antti
Signature · 1 line
http://palosaari.fi/