From patchwork Sat Aug 6 09:51:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 1041362 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p769qqg9022469 for ; Sat, 6 Aug 2011 09:52:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754774Ab1HFJwA (ORCPT ); Sat, 6 Aug 2011 05:52:00 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:38152 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754611Ab1HFJv7 (ORCPT ); Sat, 6 Aug 2011 05:51:59 -0400 Received: by wwf5 with SMTP id 5so223001wwf.1 for ; Sat, 06 Aug 2011 02:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; bh=zGYshF+ugd96AfIK+XQCZkBiC3HTcvrkdKoaDJWUe1I=; b=nFpLN1CvcI1qw0sD7d2qED3mw6+YgneFp1aScCA4dYVWEYqpGYYUKS6SJSjT1XowSv GGU/20ryUON6w6dsxdgL3Nln6SH4E6ym7Bfxu8xyD+/ewtBD2h5/a9zr3E+L5w7cIRez 2DMQJYa5FhSGwwaY/SsLI+7WC1CUOKG8XIbZI= Received: by 10.216.160.66 with SMTP id t44mr1410545wek.56.1312624318349; Sat, 06 Aug 2011 02:51:58 -0700 (PDT) Received: from [94.197.223.35] (94.197.223.35.threembb.co.uk [94.197.223.35]) by mx.google.com with ESMTPS id y4sm2312220weq.30.2011.08.06.02.51.55 (version=SSLv3 cipher=OTHER); Sat, 06 Aug 2011 02:51:57 -0700 (PDT) Subject: [PATCH 1/2] IT9135 Add support for KWORLD_UB499_2T_T09 (id 1b80:e409) From: Malcolm Priestley To: linux-media@vger.kernel.org Cc: jasondong In-Reply-To: <1312539895.2763.33.camel@Jason-Linux> References: <1312539895.2763.33.camel@Jason-Linux> Date: Sat, 06 Aug 2011 10:51:49 +0100 Message-ID: <1312624309.2353.16.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sat, 06 Aug 2011 09:52:55 +0000 (UTC) Add support for KWORLD_UB499_2T_T09 to IT9135 Driver ***Please note*** that adapter 2 on this device does not function correctly. Signed-off-by: Malcolm Priestley --- drivers/media/dvb/dvb-usb/dvb-usb-ids.h | 1 + drivers/media/dvb/dvb-usb/it9135.c | 23 ++++++++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-ids.h b/drivers/media/dvb/dvb-usb/dvb-usb-ids.h index a0f2ee9..4208d3f 100644 --- a/drivers/media/dvb/dvb-usb/dvb-usb-ids.h +++ b/drivers/media/dvb/dvb-usb/dvb-usb-ids.h @@ -137,6 +137,7 @@ #define USB_PID_KWORLD_PC160_2T 0xc160 #define USB_PID_KWORLD_PC160_T 0xc161 #define USB_PID_KWORLD_UB383_T 0xe383 +#define USB_PID_KWORLD_UB499_2T_T09 0xe409 #define USB_PID_KWORLD_VSTREAM_COLD 0x17de #define USB_PID_KWORLD_VSTREAM_WARM 0x17df #define USB_PID_TERRATEC_CINERGY_T_USB_XE 0x0055 diff --git a/drivers/media/dvb/dvb-usb/it9135.c b/drivers/media/dvb/dvb-usb/it9135.c index 7fa21c7..772adf4 100644 --- a/drivers/media/dvb/dvb-usb/it9135.c +++ b/drivers/media/dvb/dvb-usb/it9135.c @@ -2256,6 +2256,7 @@ struct usb_device_id it9135_usb_id_table[] = { {USB_DEVICE(USB_VID_ITETECH, USB_PID_ITETECH_IT9135)}, {USB_DEVICE(USB_VID_ITETECH, USB_PID_ITETECH_IT9135_9005)}, {USB_DEVICE(USB_VID_ITETECH, USB_PID_ITETECH_IT9135_9006)}, + {USB_DEVICE(USB_VID_KWORLD_2, USB_PID_KWORLD_UB499_2T_T09)}, {0}, /* Terminating entry */ }; @@ -2319,18 +2320,18 @@ struct dvb_usb_device_properties it9135_properties[] = { } } }, - }, - .num_device_descs = 1, + }, + .num_device_descs = 2, .devices = { - {"ITEtech USB2.0 DVB-T Recevier", - {&it9135_usb_id_table[0], &it9135_usb_id_table[1], - &it9135_usb_id_table[2], NULL}, - {NULL}, - }, - {NULL}, - - } - } + { "ITEtech USB2.0 DVB-T Recevier", + { &it9135_usb_id_table[0], &it9135_usb_id_table[1], + &it9135_usb_id_table[2], NULL }, + }, + { "Kworld UB499-2T T09", + { &it9135_usb_id_table[3], NULL }, + }, + } + } }; int it9135_device_count = ARRAY_SIZE(it9135_properties);