Patch for Yuan MC770 DVB-T (1164:0871)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've recently buyed a Toshiba Qosmio F50-10Q with a Yuan MC770 DVB-T (1164:0871) and I tried to make it work,
operation which ended quite satisfactory.

So i would like to share my patch with your team.

I'm running Linux kernel 2.6.28, using distro Debian Lenny and Kaffeine as a TV viewer.

I've downloaded the actual status of the mercurial at http://linuxtv.org/hg/v4l-dvb and modified the source to add this device.

So I compiled the drivers and did overwrite (make install) the current kernel modules.

I placed the firmware files dvb-usb-dib0700-1.20.fw and xc3028-v27.fw in /lib/firmware.

So now everything is working quite fine.

Best regards,

Xoan Loureiro (Vigo / Spain)

diff -r a4843e1304e6 linux/drivers/media/dvb/dvb-usb/dib0700_devices.c
--- a/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c    Sun Feb 22 18:00:00 2009 -0000
+++ b/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c    Sun Feb 22 18:00:00 2009 +0000
@@ -1419,6 +1419,7 @@ struct usb_device_id dib0700_usb_id_tabl
    { USB_DEVICE(USB_VID_TERRATEC,    USB_PID_TERRATEC_CINERGY_T_EXPRESS) },
    { USB_DEVICE(USB_VID_TERRATEC,
            USB_PID_TERRATEC_CINERGY_DT_XS_DIVERSITY_2) },
+    { USB_DEVICE(USB_VID_YUAN,    USB_PID_YUAN_MC770) },
     { 0 }        /* Terminating entry */
 };
 MODULE_DEVICE_TABLE(usb, dib0700_usb_id_table);
@@ -1729,7 +1730,7 @@ struct dvb_usb_device_properties dib0700
             },
         },
 
-        .num_device_descs = 5,
+        .num_device_descs = 7,
         .devices = {
             {   "Terratec Cinergy HT USB XE",
                 { &dib0700_usb_id_table[27], NULL },
@@ -1725,6 +1726,10 @@ struct dvb_usb_device_properties dib0700
                 { &dib0700_usb_id_table[39], NULL },
                 { NULL },
             },
+            {   "YUAN High-Tech MC770",
+                { &dib0700_usb_id_table[44], NULL },
+                { NULL },
+            },
         },
         .rc_interval      = DEFAULT_RC_INTERVAL,
         .rc_key_map       = dib0700_rc_keys,
diff -r a4843e1304e6 linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h
--- a/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c    Sun Feb 22 18:00:00 2009 -0000
+++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h    Sun Feb 22 18:00:00 2009 +0000
@@ -233,6 +232,7 @@
 #define USB_PID_ASUS_U3100                0x173f
 #define USB_PID_YUAN_EC372S                0x1edc
 #define USB_PID_YUAN_STK7700PH                0x1f08
+#define USB_PID_YUAN_MC770                0x0871
 #define USB_PID_DW2102                    0x2102
 #define USB_PID_XTENSIONS_XD_380            0x0381
 #define USB_PID_TELESTAR_STARSTICK_2            0x8000

Bus 007 Device 002: ID 1164:0871 YUAN High-Tech Development Co., Ltd
Device Descriptor:                                                  
  bLength                18                                         
  bDescriptorType         1                                         
  bcdUSB               2.00                                         
  bDeviceClass            0 (Defined at Interface level)            
  bDeviceSubClass         0                                         
  bDeviceProtocol         0                                         
  bMaxPacketSize0        64                                         
  idVendor           0x1164 YUAN High-Tech Development Co., Ltd     
  idProduct          0x0871                                         
  bcdDevice            1.00                                         
  iManufacturer           1 YUANRD                                  
  iProduct                2 STK7700D                                
  iSerial                 3 0000000001                              
  bNumConfigurations      1                                         
  Configuration Descriptor:                                         
    bLength                 9                                       
    bDescriptorType         2                                       
    wTotalLength           46                                       
    bNumInterfaces          1                                       
    bConfigurationValue     1                                       
    iConfiguration          0                                       
    bmAttributes         0xa0                                       
      (Bus Powered)                                                 
      Remote Wakeup                                                 
    MaxPower              500mA                                     
    Interface Descriptor:                                           
      bLength                 9                                     
      bDescriptorType         4                                     
      bInterfaceNumber        0                                     
      bAlternateSetting       0                                     
      bNumEndpoints           4                                     
      bInterfaceClass       255 Vendor Specific Class               
      bInterfaceSubClass      0                                     
      bInterfaceProtocol      0                                     
      iInterface              0                                     
      Endpoint Descriptor:                                          
        bLength                 7                                   
        bDescriptorType         5                                   
        bEndpointAddress     0x01  EP 1 OUT                         
        bmAttributes            2                                   
          Transfer Type            Bulk                             
          Synch Type               None                             
          Usage Type               Data                             
        wMaxPacketSize     0x0200  1x 512 bytes                     
        bInterval               1                                   
      Endpoint Descriptor:                                          
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)


_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead linux-media@xxxxxxxxxxxxxxx
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux