]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
v4l_dvb: add some patches for rtl283x dvb-t sticks.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 25 Oct 2012 10:58:34 +0000 (12:58 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 25 Oct 2012 10:58:34 +0000 (12:58 +0200)
lfs/v4l-dvb
src/patches/v4l-dvb_rtl28xx_commented_usb_clear_halt.patch [new file with mode: 0644]
src/patches/v4l-dvb_usbv2_dont_report_pidfilter_fail.patch [new file with mode: 0644]

index 8f396138ee33780ede0fbbf0ec3c32a266ed9170..b34125f3af34496b1c7c99802559b8cefc0e69dd 100644 (file)
@@ -78,6 +78,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar Jxf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/v4l-dvb_rtl28xx_add_usb_ids.patch
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/v4l-dvb_rtl28xx_commented_usb_clear_halt.patch
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/v4l-dvb_usbv2_dont_report_pidfilter_fail.patch
        cd $(DIR_APP) && make allyesconfig KERNELRELEASE=$(KVER)-$(VERSUFIX) VER=$(XVER)
 ifeq "$(KCFG)" "-omap"
        # Disable failing OMAP2 Video Out and IR RX51 driver
diff --git a/src/patches/v4l-dvb_rtl28xx_commented_usb_clear_halt.patch b/src/patches/v4l-dvb_rtl28xx_commented_usb_clear_halt.patch
new file mode 100644 (file)
index 0000000..8fb8bc4
--- /dev/null
@@ -0,0 +1,12 @@
+diff -Naur v4l-dvb-20120916.org/linux/drivers/media/usb/dvb-usb-v2/rtl28xxu.c v4l-dvb-20120916/linux/drivers/media/usb/dvb-usb-v2/rtl28xxu.c
+--- v4l-dvb-20120916.org/linux/drivers/media/usb/dvb-usb-v2/rtl28xxu.c 2012-09-16 05:46:03.000000000 +0200
++++ v4l-dvb-20120916/linux/drivers/media/usb/dvb-usb-v2/rtl28xxu.c     2012-10-24 13:48:13.113373414 +0200
+@@ -836,7 +836,7 @@
+       if (onoff) {
+               buf[0] = 0x00;
+               buf[1] = 0x00;
+-              usb_clear_halt(d->udev, usb_rcvbulkpipe(d->udev, 0x81));
++//            usb_clear_halt(d->udev, usb_rcvbulkpipe(d->udev, 0x81));
+       } else {
+               buf[0] = 0x10; /* stall EPA */
+               buf[1] = 0x02; /* reset EPA */
diff --git a/src/patches/v4l-dvb_usbv2_dont_report_pidfilter_fail.patch b/src/patches/v4l-dvb_usbv2_dont_report_pidfilter_fail.patch
new file mode 100644 (file)
index 0000000..4b16125
--- /dev/null
@@ -0,0 +1,16 @@
+diff -Naur v4l-dvb-20120916.org/linux/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c v4l-dvb-20120916/linux/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
+--- v4l-dvb-20120916.org/linux/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c     2012-08-16 05:45:24.000000000 +0200
++++ v4l-dvb-20120916/linux/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c 2012-10-24 13:53:35.636726448 +0200
+@@ -287,9 +287,9 @@
+               ret = adap->props->pid_filter(adap, dvbdmxfeed->index,
+                               dvbdmxfeed->pid, (count == 1) ? 1 : 0);
+                       if (ret < 0)
+-                              dev_err(&d->udev->dev, "%s: pid_filter() " \
+-                                              "failed=%d\n", KBUILD_MODNAME,
+-                                              ret);
++//                            dev_err(&d->udev->dev, "%s: pid_filter() " \
++//                                            "failed=%d\n", KBUILD_MODNAME,
++//                                            ret);
+       /* start feeding if it is first pid */
+       if (adap->feed_count == 1 && count == 1) {