Commit 4cc0edff authored by Igor M. Liplianin's avatar Igor M. Liplianin Committed by Mauro Carvalho Chehab

V4L/DVB (9537): Add TerraTec Cinergy S USB support

Add TerraTec Cinergy S USB support
Signed-off-by: default avatarIgor M. Liplianin <liplianin@me.by>
Acked-by: default avatarThorsten Leupold <th86@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 5cff91a0
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
#define USB_PID_DW2104 0x2104 #define USB_PID_DW2104 0x2104
#endif #endif
#ifndef USB_PID_CINERGY_S
#define USB_PID_CINERGY_S 0x0064
#endif
#define DW210X_READ_MSG 0 #define DW210X_READ_MSG 0
#define DW210X_WRITE_MSG 1 #define DW210X_WRITE_MSG 1
...@@ -577,6 +581,7 @@ static struct usb_device_id dw2102_table[] = { ...@@ -577,6 +581,7 @@ static struct usb_device_id dw2102_table[] = {
{USB_DEVICE(USB_VID_CYPRESS, 0x2101)}, {USB_DEVICE(USB_VID_CYPRESS, 0x2101)},
{USB_DEVICE(USB_VID_CYPRESS, 0x2104)}, {USB_DEVICE(USB_VID_CYPRESS, 0x2104)},
{USB_DEVICE(0x9022, 0xd650)}, {USB_DEVICE(0x9022, 0xd650)},
{USB_DEVICE(USB_VID_TERRATEC, USB_PID_CINERGY_S)},
{ } { }
}; };
...@@ -646,6 +651,7 @@ static int dw2102_load_firmware(struct usb_device *dev, ...@@ -646,6 +651,7 @@ static int dw2102_load_firmware(struct usb_device *dev,
dw210x_op_rw(dev, 0xbf, 0x0040, 0, &reset, 0, dw210x_op_rw(dev, 0xbf, 0x0040, 0, &reset, 0,
DW210X_WRITE_MSG); DW210X_WRITE_MSG);
break; break;
case USB_PID_CINERGY_S:
case USB_PID_DW2102: case USB_PID_DW2102:
dw210x_op_rw(dev, 0xbf, 0x0040, 0, &reset, 0, dw210x_op_rw(dev, 0xbf, 0x0040, 0, &reset, 0,
DW210X_WRITE_MSG); DW210X_WRITE_MSG);
...@@ -725,7 +731,7 @@ static struct dvb_usb_device_properties dw2102_properties = { ...@@ -725,7 +731,7 @@ static struct dvb_usb_device_properties dw2102_properties = {
}, },
} }
}, },
.num_device_descs = 2, .num_device_descs = 3,
.devices = { .devices = {
{"DVBWorld DVB-S 2102 USB2.0", {"DVBWorld DVB-S 2102 USB2.0",
{&dw2102_table[0], NULL}, {&dw2102_table[0], NULL},
...@@ -735,6 +741,10 @@ static struct dvb_usb_device_properties dw2102_properties = { ...@@ -735,6 +741,10 @@ static struct dvb_usb_device_properties dw2102_properties = {
{&dw2102_table[1], NULL}, {&dw2102_table[1], NULL},
{NULL}, {NULL},
}, },
{"TerraTec Cinergy S USB",
{&dw2102_table[4], NULL},
{NULL},
},
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment