aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/af9015.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2009-04-09 08:16:12 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:20:30 -0400
commit85d7d7ca5ef820f2c637032c86d4298ce4ae491b (patch)
treec89255de1244003937b9cfcdd5b127941be98392 /drivers/media/dvb/dvb-usb/af9015.c
parentd852d53dcd1f4c353d54cc055eb23cdaad18c906 (diff)
V4L/DVB (11490): af9015: add new dvb_usb_device_properties entry for upcoming USB IDs
Add 3rd dvb_usb_device_properties entry for upcoming USB IDs because current entries are full. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/af9015.c')
-rw-r--r--drivers/media/dvb/dvb-usb/af9015.c65
1 files changed, 61 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c
index 53bfc8e42fb9..d6662f53a0bf 100644
--- a/drivers/media/dvb/dvb-usb/af9015.c
+++ b/drivers/media/dvb/dvb-usb/af9015.c
@@ -40,7 +40,7 @@ DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
40static DEFINE_MUTEX(af9015_usb_mutex); 40static DEFINE_MUTEX(af9015_usb_mutex);
41 41
42static struct af9015_config af9015_config; 42static struct af9015_config af9015_config;
43static struct dvb_usb_device_properties af9015_properties[2]; 43static struct dvb_usb_device_properties af9015_properties[3];
44static int af9015_properties_count = ARRAY_SIZE(af9015_properties); 44static int af9015_properties_count = ARRAY_SIZE(af9015_properties);
45 45
46static struct af9013_config af9015_af9013_config[] = { 46static struct af9013_config af9015_af9013_config[] = {
@@ -1321,7 +1321,7 @@ static struct dvb_usb_device_properties af9015_properties[] = {
1321 1321
1322 .i2c_algo = &af9015_i2c_algo, 1322 .i2c_algo = &af9015_i2c_algo,
1323 1323
1324 .num_device_descs = 9, 1324 .num_device_descs = 9, /* max 9 */
1325 .devices = { 1325 .devices = {
1326 { 1326 {
1327 .name = "Afatech AF9015 DVB-T USB2.0 stick", 1327 .name = "Afatech AF9015 DVB-T USB2.0 stick",
@@ -1426,7 +1426,7 @@ static struct dvb_usb_device_properties af9015_properties[] = {
1426 1426
1427 .i2c_algo = &af9015_i2c_algo, 1427 .i2c_algo = &af9015_i2c_algo,
1428 1428
1429 .num_device_descs = 9, 1429 .num_device_descs = 9, /* max 9 */
1430 .devices = { 1430 .devices = {
1431 { 1431 {
1432 .name = "Xtensions XD-380", 1432 .name = "Xtensions XD-380",
@@ -1478,7 +1478,64 @@ static struct dvb_usb_device_properties af9015_properties[] = {
1478 .warm_ids = {NULL}, 1478 .warm_ids = {NULL},
1479 }, 1479 },
1480 } 1480 }
1481 } 1481 }, {
1482 .caps = DVB_USB_IS_AN_I2C_ADAPTER,
1483
1484 .usb_ctrl = DEVICE_SPECIFIC,
1485 .download_firmware = af9015_download_firmware,
1486 .firmware = "dvb-usb-af9015.fw",
1487 .no_reconnect = 1,
1488
1489 .size_of_priv = sizeof(struct af9015_state), \
1490
1491 .num_adapters = 2,
1492 .adapter = {
1493 {
1494 .caps = DVB_USB_ADAP_HAS_PID_FILTER |
1495 DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF,
1496
1497 .pid_filter_count = 32,
1498 .pid_filter = af9015_pid_filter,
1499 .pid_filter_ctrl = af9015_pid_filter_ctrl,
1500
1501 .frontend_attach =
1502 af9015_af9013_frontend_attach,
1503 .tuner_attach = af9015_tuner_attach,
1504 .stream = {
1505 .type = USB_BULK,
1506 .count = 6,
1507 .endpoint = 0x84,
1508 },
1509 },
1510 {
1511 .frontend_attach =
1512 af9015_af9013_frontend_attach,
1513 .tuner_attach = af9015_tuner_attach,
1514 .stream = {
1515 .type = USB_BULK,
1516 .count = 6,
1517 .endpoint = 0x85,
1518 .u = {
1519 .bulk = {
1520 .buffersize =
1521 TS_USB20_MAX_PACKET_SIZE,
1522 }
1523 }
1524 },
1525 }
1526 },
1527
1528 .identify_state = af9015_identify_state,
1529
1530 .rc_query = af9015_rc_query,
1531 .rc_interval = 150,
1532
1533 .i2c_algo = &af9015_i2c_algo,
1534
1535 .num_device_descs = 0, /* max 9 */
1536 .devices = {
1537 }
1538 },
1482}; 1539};
1483 1540
1484static int af9015_usb_probe(struct usb_interface *intf, 1541static int af9015_usb_probe(struct usb_interface *intf,