[media] dw2102: TeVii S482 support
authorOlli Salonen <olli.salonen@iki.fi>
Sat, 21 Mar 2015 20:42:23 +0000 (17:42 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 12 May 2015 11:02:41 +0000 (08:02 -0300)
TeVii S482 is a PCIe device with two tuners that actually contains two
USB devices. The devices are visible in the lsusb printout.

Bus 006 Device 002: ID 9022:d483 TeVii Technology Ltd.
Bus 007 Device 002: ID 9022:d484 TeVii Technology Ltd.

The device itself works exactly with the same settings as TechnoTrend
TT-connect S2-4600. Firmware for DS3103 demodulator is required:
http://palosaari.fi/linux/v4l-dvb/firmware/M88DS3103/

This patch should be applied on top of the TT S2-4600 patch:
https://patchwork.linuxtv.org/patch/28818/

Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb/dw2102.c

index 28fd6bacb852c36e8935cdb7061e32f5be083f49..0a1dc3759c7c36454f891ba323a07493b83a7439 100644 (file)
@@ -1657,6 +1657,8 @@ enum dw2102_table_entry {
        GOTVIEW_SAT_HD,
        GENIATECH_T220,
        TECHNOTREND_S2_4600,
+       TEVII_S482_1,
+       TEVII_S482_2,
 };
 
 static struct usb_device_id dw2102_table[] = {
@@ -1682,6 +1684,8 @@ static struct usb_device_id dw2102_table[] = {
        [GENIATECH_T220] = {USB_DEVICE(0x1f4d, 0xD220)},
        [TECHNOTREND_S2_4600] = {USB_DEVICE(USB_VID_TECHNOTREND,
                USB_PID_TECHNOTREND_CONNECT_S2_4600)},
+       [TEVII_S482_1] = {USB_DEVICE(0x9022, 0xd483)},
+       [TEVII_S482_2] = {USB_DEVICE(0x9022, 0xd484)},
        { }
 };
 
@@ -2199,12 +2203,20 @@ static struct dvb_usb_device_properties tt_s2_4600_properties = {
                } },
                }
        },
-       .num_device_descs = 1,
+       .num_device_descs = 3,
        .devices = {
                { "TechnoTrend TT-connect S2-4600",
                        { &dw2102_table[TECHNOTREND_S2_4600], NULL },
                        { NULL },
                },
+               { "TeVii S482 (tuner 1)",
+                       { &dw2102_table[TEVII_S482_1], NULL },
+                       { NULL },
+               },
+               { "TeVii S482 (tuner 2)",
+                       { &dw2102_table[TEVII_S482_2], NULL },
+                       { NULL },
+               },
        }
 };