From patchwork Mon Aug 3 02:59:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James A Webb X-Patchwork-Id: 39079 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n74AOYBb020422 for ; Tue, 4 Aug 2009 10:24:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932390AbZHDKYc (ORCPT ); Tue, 4 Aug 2009 06:24:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932413AbZHDKYc (ORCPT ); Tue, 4 Aug 2009 06:24:32 -0400 Received: from CPE-124-190-210-80.vic.bigpond.net.au ([124.190.210.80]:45469 "EHLO cobra.jamesawebb.dyndns.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932390AbZHDKYa (ORCPT ); Tue, 4 Aug 2009 06:24:30 -0400 X-Greylist: delayed 1866 seconds by postgrey-1.27 at vger.kernel.org; Tue, 04 Aug 2009 06:24:30 EDT Received: from cobra.jamesawebb.dyndns.org (localhost [127.0.0.1]) by cobra.jamesawebb.dyndns.org (8.14.3/8.14.3) with ESMTP id n732xeHb011458; Mon, 3 Aug 2009 12:59:40 +1000 Received: (from jwebb@localhost) by cobra.jamesawebb.dyndns.org (8.14.3/8.14.3/Submit) id n732xcDB011456; Mon, 3 Aug 2009 12:59:38 +1000 X-Authentication-Warning: cobra.jamesawebb.dyndns.org: jwebb set sender to jamesawebb@gmail.com using -f Subject: [PATCH] Support for Kaiser Baas ExpressCard Dual HD Tuner From: James A Webb To: V4L Group Cc: Mauro Carvalho Chehab Date: Mon, 03 Aug 2009 12:59:38 +1000 Message-Id: <1249268378.3519.49.camel@cobra.jamesawebb.dyndns.org> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Second attempt to support recently purchased Kaiser Baas ExpressCard Dual HD Tuner. The card is reported as YUAN High-Tech Development Co., Ltd STK7700D (lsusb -v attached). Err, I don't (yet) have a Developer's Certificate of Origin. Would this mean that someone will (eventually) commit the patch on my behalf? Signed-off-by: James A Webb Bus 001 Device 004: ID 1164:1e8c 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 0x1e8c 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) diff -r b15490457d60 linux/drivers/media/dvb/dvb-usb/dib0700_devices.c --- a/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c Sat Aug 01 01:38:01 2009 -0300 +++ b/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c Mon Aug 03 12:11:49 2009 +1000 @@ -1501,6 +1501,7 @@ { USB_DEVICE(USB_VID_LEADTEK, USB_PID_WINFAST_DTV_DONGLE_H) }, { USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_T3) }, { USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_T5) }, + { USB_DEVICE(USB_VID_YUAN, USB_PID_DIBCOM_STK7700DY) }, { 0 } /* Terminating entry */ }; MODULE_DEVICE_TABLE(usb, dib0700_usb_id_table); @@ -1628,7 +1629,7 @@ } }, - .num_device_descs = 4, + .num_device_descs = 5, .devices = { { "Pinnacle PCTV 2000e", { &dib0700_usb_id_table[11], NULL }, @@ -1646,6 +1647,10 @@ { &dib0700_usb_id_table[14], NULL }, { NULL }, }, + { "YUAN High-Tech DiBcom STK7700D", + { &dib0700_usb_id_table[54], NULL }, + { NULL }, + }, }, diff -r b15490457d60 linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h --- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h Sat Aug 01 01:38:01 2009 -0300 +++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h Mon Aug 03 12:11:49 2009 +1000 @@ -91,6 +91,7 @@ #define USB_PID_DIBCOM_STK7700P 0x1e14 #define USB_PID_DIBCOM_STK7700P_PC 0x1e78 #define USB_PID_DIBCOM_STK7700D 0x1ef0 +#define USB_PID_DIBCOM_STK7700DY 0x1e8c #define USB_PID_DIBCOM_STK7700_U7000 0x7001 #define USB_PID_DIBCOM_STK7070P 0x1ebc #define USB_PID_DIBCOM_STK7070PD 0x1ebe