From patchwork Sun Jul 12 14:51:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?UTF-8?Q?Nam_Ph=E1=BA=A1m_Th=C3=A0nh?= X-Patchwork-Id: 35263 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 n6CEx2oo026790 for ; Sun, 12 Jul 2009 14:59:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754292AbZGLO6n (ORCPT ); Sun, 12 Jul 2009 10:58:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754243AbZGLO6n (ORCPT ); Sun, 12 Jul 2009 10:58:43 -0400 Received: from mail-px0-f185.google.com ([209.85.216.185]:49361 "EHLO mail-px0-f185.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754039AbZGLO6m (ORCPT ); Sun, 12 Jul 2009 10:58:42 -0400 X-Greylist: delayed 446 seconds by postgrey-1.27 at vger.kernel.org; Sun, 12 Jul 2009 10:58:42 EDT Received: by pxi15 with SMTP id 15so144544pxi.33 for ; Sun, 12 Jul 2009 07:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer; bh=B3cNq+DfoDr0j5nPQnrNk6yoH4z1BNMoMZlFYrPbcxQ=; b=SzKz1vcvYecqkyLu2Ghu2mSx09fVt+3qVVYzdL6YsGMJA0I8uyv8ap5yV1vN64hWt/ 1OG8rVll3DnJF6NgbpKTuTJVgnmp+ByU5PMle9fqXpIh39gWFu2s7ZCsx8oVsTU6dnfZ LYv4fWJim477o+4dRNJDmZXcFjA1nQA0OJP8A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer; b=DgQum1aG4pqWBTrkOtKEdW9s7PrtB2FCX1yPPxnB+LFkaslYmrj7EU7cTdmiB/l6by 3WlqTpdgNlXw08YKKPdwSq057EzY9Wq5hN88f/9M4wy7j/RFrmQxdzsLFGHy1xNCBtHc FyVOHWW4Jujsb+oYsjzKGsLjEK45adSJ9TUgs= Received: by 10.114.208.12 with SMTP id f12mr6942257wag.226.1247410274046; Sun, 12 Jul 2009 07:51:14 -0700 (PDT) Received: from ?192.168.1.3? ([123.18.238.103]) by mx.google.com with ESMTPS id j34sm6471179waf.29.2009.07.12.07.51.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 12 Jul 2009 07:51:13 -0700 (PDT) Subject: [PATCH] Add support for Humax/Coex DVB-T USB Stick 2.0 High Speed From: Pham Thanh Nam To: linux-media@vger.kernel.org Date: Sun, 12 Jul 2009 21:51:10 +0700 Message-Id: <1247410270.32281.0.camel@AcerAspire4710> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch adds support for Humax/Coex DVB-T USB Stick 2.0 High Speed which is a very popular tuner sold in Vietnam. Tested with at least 3 tuners. It's very likely that this patch will not cause any regression. Thanks Signed-off-by: Pham Thanh Nam diff -ur a/linux/drivers/media/dvb/dvb-usb/dibusb-mc.c b/linux/drivers/media/dvb/dvb-usb/dibusb-mc.c --- a/linux/drivers/media/dvb/dvb-usb/dibusb-mc.c 2009-07-12 20:52:32.000000000 +0700 +++ b/linux/drivers/media/dvb/dvb-usb/dibusb-mc.c 2009-07-12 20:12:56.000000000 +0700 @@ -42,6 +42,8 @@ /* 11 */ { USB_DEVICE(USB_VID_ULTIMA_ELECTRONIC, USB_PID_ARTEC_T14_WARM) }, /* 12 */ { USB_DEVICE(USB_VID_LEADTEK, USB_PID_WINFAST_DTV_DONGLE_COLD) }, /* 13 */ { USB_DEVICE(USB_VID_LEADTEK, USB_PID_WINFAST_DTV_DONGLE_WARM) }, +/* 14 */ { USB_DEVICE(USB_VID_HUMAX_COEX, USB_PID_DVB_T_USB_STICK_HIGH_SPEED_COLD) }, +/* 15 */ { USB_DEVICE(USB_VID_HUMAX_COEX, USB_PID_DVB_T_USB_STICK_HIGH_SPEED_WARM) }, { } /* Terminating entry */ }; MODULE_DEVICE_TABLE (usb, dibusb_dib3000mc_table); @@ -66,7 +68,7 @@ /* parameter for the MPEG2-data transfer */ .stream = { .type = USB_BULK, - .count = 7, + .count = 8, .endpoint = 0x06, .u = { .bulk = { @@ -88,7 +90,7 @@ .generic_bulk_ctrl_endpoint = 0x01, - .num_device_descs = 7, + .num_device_descs = 8, .devices = { { "DiBcom USB2.0 DVB-T reference design (MOD3000P)", { &dibusb_dib3000mc_table[0], NULL }, @@ -119,6 +121,10 @@ { &dibusb_dib3000mc_table[12], NULL }, { &dibusb_dib3000mc_table[13], NULL }, }, + { "Humax/Coex DVB-T USB Stick 2.0 High Speed", + { &dibusb_dib3000mc_table[14], NULL }, + { &dibusb_dib3000mc_table[15], NULL }, + }, { NULL }, } }; diff -ur a/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h b/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h --- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h 2009-07-12 20:52:32.000000000 +0700 +++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h 2009-07-12 21:23:29.000000000 +0700 @@ -58,6 +58,7 @@ #define USB_VID_GIGABYTE 0x1044 #define USB_VID_YUAN 0x1164 #define USB_VID_XTENSIONS 0x1ae7 +#define USB_VID_HUMAX_COEX 0x10b9 /* Product IDs */ #define USB_PID_ADSTECH_USB2_COLD 0xa333 @@ -259,5 +260,7 @@ #define USB_PID_SONY_PLAYTV 0x0003 #define USB_PID_ELGATO_EYETV_DTT 0x0021 #define USB_PID_ELGATO_EYETV_DTT_Dlx 0x0020 +#define USB_PID_DVB_T_USB_STICK_HIGH_SPEED_COLD 0x5000 +#define USB_PID_DVB_T_USB_STICK_HIGH_SPEED_WARM 0x5001 #endif Signed-off-by: Pham Thanh Nam Add support for Humax/Coex DVB-T USB Stick 2.0 High Speed (popular in Vietnam) diff -ur a/linux/drivers/media/dvb/dvb-usb/dibusb-mc.c b/linux/drivers/media/dvb/dvb-usb/dibusb-mc.c --- a/linux/drivers/media/dvb/dvb-usb/dibusb-mc.c 2009-07-12 20:52:32.000000000 +0700 +++ b/linux/drivers/media/dvb/dvb-usb/dibusb-mc.c 2009-07-12 20:12:56.000000000 +0700 @@ -42,6 +42,8 @@ /* 11 */ { USB_DEVICE(USB_VID_ULTIMA_ELECTRONIC, USB_PID_ARTEC_T14_WARM) }, /* 12 */ { USB_DEVICE(USB_VID_LEADTEK, USB_PID_WINFAST_DTV_DONGLE_COLD) }, /* 13 */ { USB_DEVICE(USB_VID_LEADTEK, USB_PID_WINFAST_DTV_DONGLE_WARM) }, +/* 14 */ { USB_DEVICE(USB_VID_HUMAX_COEX, USB_PID_DVB_T_USB_STICK_HIGH_SPEED_COLD) }, +/* 15 */ { USB_DEVICE(USB_VID_HUMAX_COEX, USB_PID_DVB_T_USB_STICK_HIGH_SPEED_WARM) }, { } /* Terminating entry */ }; MODULE_DEVICE_TABLE (usb, dibusb_dib3000mc_table); @@ -66,7 +68,7 @@ /* parameter for the MPEG2-data transfer */ .stream = { .type = USB_BULK, - .count = 7, + .count = 8, .endpoint = 0x06, .u = { .bulk = { @@ -88,7 +90,7 @@ .generic_bulk_ctrl_endpoint = 0x01, - .num_device_descs = 7, + .num_device_descs = 8, .devices = { { "DiBcom USB2.0 DVB-T reference design (MOD3000P)", { &dibusb_dib3000mc_table[0], NULL }, @@ -119,6 +121,10 @@ { &dibusb_dib3000mc_table[12], NULL }, { &dibusb_dib3000mc_table[13], NULL }, }, + { "Humax/Coex DVB-T USB Stick 2.0 High Speed", + { &dibusb_dib3000mc_table[14], NULL }, + { &dibusb_dib3000mc_table[15], NULL }, + }, { NULL }, } }; diff -ur a/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h b/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h --- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h 2009-07-12 20:52:32.000000000 +0700 +++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h 2009-07-12 21:23:29.000000000 +0700 @@ -58,6 +58,7 @@ #define USB_VID_GIGABYTE 0x1044 #define USB_VID_YUAN 0x1164 #define USB_VID_XTENSIONS 0x1ae7 +#define USB_VID_HUMAX_COEX 0x10b9 /* Product IDs */ #define USB_PID_ADSTECH_USB2_COLD 0xa333 @@ -259,5 +260,7 @@ #define USB_PID_SONY_PLAYTV 0x0003 #define USB_PID_ELGATO_EYETV_DTT 0x0021 #define USB_PID_ELGATO_EYETV_DTT_Dlx 0x0020 +#define USB_PID_DVB_T_USB_STICK_HIGH_SPEED_COLD 0x5000 +#define USB_PID_DVB_T_USB_STICK_HIGH_SPEED_WARM 0x5001 #endif