diff mbox

[1/2] IT9135 Add support for KWORLD_UB499_2T_T09 (id 1b80:e409)

Message ID 1312624309.2353.16.camel@localhost (mailing list archive)
State Not Applicable
Headers show

Commit Message

Malcolm Priestley Aug. 6, 2011, 9:51 a.m. 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 <tvboxspy@gmail.com>
---
 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 mbox

Patch

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);