Bug 15235

Summary: Unable to scan/view channel for Magic Pro HDTV DMB-TH Tuner unless draining video is disabled in driver
Product: v4l-dvb Reporter: H.W. Wan (hwwan80)
Component: dvb-usbAssignee: dvb-usb (v4l-dvb_dvb-usb)
Status: RESOLVED OBSOLETE    
Severity: normal CC: alan, timothy.lee
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.32 Subsystem:
Regression: No Bisected commit-id:

Description H.W. Wan 2010-02-05 15:39:19 UTC
Without commenting out the following lines in cxusb, I'm not able to use the tuner probably:


--- cxusb.c.orig        2009-12-03 11:51:21.000000000 +0800
+++ cxusb.c     2010-02-05 02:08:41.000000000 +0800
@@ -370,7 +370,7 @@
 {
       if (onoff) {
               u8 buf[2] = { 0x03, 0x00 };
-               cxusb_d680_dmb_drain_video(adap->dev);
+//             cxusb_d680_dmb_drain_video(adap->dev);
               return cxusb_ctrl_msg(adap->dev, CMD_STREAMING_ON,
                       buf, sizeof(buf), NULL, 0);
       } else {
@@ -1135,8 +1135,8 @@

       /* Drain USB pipes to avoid hang after reboot */
       for (n = 0;  n < 5;  n++) {
-               cxusb_d680_dmb_drain_message(d);
-               cxusb_d680_dmb_drain_video(d);
+//             cxusb_d680_dmb_drain_message(d);
+//             cxusb_d680_dmb_drain_video(d);
               msleep(200);
       }


This is not a formal patch submission since this may break other user.Hope someone can get a proper fix.