diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb/af9015.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/af9015.c | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c index cf042b309b46..8b60a601fb82 100644 --- a/drivers/media/dvb/dvb-usb/af9015.c +++ b/drivers/media/dvb/dvb-usb/af9015.c | |||
@@ -730,7 +730,7 @@ static int af9015_read_config(struct usb_device *udev) | |||
730 | goto error; | 730 | goto error; |
731 | deb_info("%s: IR mode:%d\n", __func__, val); | 731 | deb_info("%s: IR mode:%d\n", __func__, val); |
732 | for (i = 0; i < af9015_properties_count; i++) { | 732 | for (i = 0; i < af9015_properties_count; i++) { |
733 | if (val == AF9015_IR_MODE_DISABLED || val == 0x04) { | 733 | if (val == AF9015_IR_MODE_DISABLED) { |
734 | af9015_properties[i].rc_key_map = NULL; | 734 | af9015_properties[i].rc_key_map = NULL; |
735 | af9015_properties[i].rc_key_map_size = 0; | 735 | af9015_properties[i].rc_key_map_size = 0; |
736 | } else if (dvb_usb_af9015_remote) { | 736 | } else if (dvb_usb_af9015_remote) { |
@@ -868,6 +868,16 @@ static int af9015_read_config(struct usb_device *udev) | |||
868 | af9015_config.ir_table_size = | 868 | af9015_config.ir_table_size = |
869 | ARRAY_SIZE(af9015_ir_table_avermedia); | 869 | ARRAY_SIZE(af9015_ir_table_avermedia); |
870 | break; | 870 | break; |
871 | case USB_VID_MSI_2: | ||
872 | af9015_properties[i].rc_key_map = | ||
873 | af9015_rc_keys_msi_digivox_iii; | ||
874 | af9015_properties[i].rc_key_map_size = | ||
875 | ARRAY_SIZE(af9015_rc_keys_msi_digivox_iii); | ||
876 | af9015_config.ir_table = | ||
877 | af9015_ir_table_msi_digivox_iii; | ||
878 | af9015_config.ir_table_size = | ||
879 | ARRAY_SIZE(af9015_ir_table_msi_digivox_iii); | ||
880 | break; | ||
871 | } | 881 | } |
872 | } | 882 | } |
873 | } | 883 | } |
@@ -1283,6 +1293,8 @@ static struct usb_device_id af9015_usb_table[] = { | |||
1283 | {USB_DEVICE(USB_VID_KWORLD_2, USB_PID_KWORLD_MC810)}, | 1293 | {USB_DEVICE(USB_VID_KWORLD_2, USB_PID_KWORLD_MC810)}, |
1284 | {USB_DEVICE(USB_VID_KYE, USB_PID_GENIUS_TVGO_DVB_T03)}, | 1294 | {USB_DEVICE(USB_VID_KYE, USB_PID_GENIUS_TVGO_DVB_T03)}, |
1285 | /* 25 */{USB_DEVICE(USB_VID_KWORLD_2, USB_PID_KWORLD_399U_2)}, | 1295 | /* 25 */{USB_DEVICE(USB_VID_KWORLD_2, USB_PID_KWORLD_399U_2)}, |
1296 | {USB_DEVICE(USB_VID_KWORLD_2, USB_PID_KWORLD_PC160_T)}, | ||
1297 | {USB_DEVICE(USB_VID_KWORLD_2, USB_PID_SVEON_STV20)}, | ||
1286 | {0}, | 1298 | {0}, |
1287 | }; | 1299 | }; |
1288 | MODULE_DEVICE_TABLE(usb, af9015_usb_table); | 1300 | MODULE_DEVICE_TABLE(usb, af9015_usb_table); |
@@ -1296,7 +1308,7 @@ static struct dvb_usb_device_properties af9015_properties[] = { | |||
1296 | .firmware = "dvb-usb-af9015.fw", | 1308 | .firmware = "dvb-usb-af9015.fw", |
1297 | .no_reconnect = 1, | 1309 | .no_reconnect = 1, |
1298 | 1310 | ||
1299 | .size_of_priv = sizeof(struct af9015_state), \ | 1311 | .size_of_priv = sizeof(struct af9015_state), |
1300 | 1312 | ||
1301 | .num_adapters = 2, | 1313 | .num_adapters = 2, |
1302 | .adapter = { | 1314 | .adapter = { |
@@ -1402,7 +1414,7 @@ static struct dvb_usb_device_properties af9015_properties[] = { | |||
1402 | .firmware = "dvb-usb-af9015.fw", | 1414 | .firmware = "dvb-usb-af9015.fw", |
1403 | .no_reconnect = 1, | 1415 | .no_reconnect = 1, |
1404 | 1416 | ||
1405 | .size_of_priv = sizeof(struct af9015_state), \ | 1417 | .size_of_priv = sizeof(struct af9015_state), |
1406 | 1418 | ||
1407 | .num_adapters = 2, | 1419 | .num_adapters = 2, |
1408 | .adapter = { | 1420 | .adapter = { |
@@ -1508,7 +1520,7 @@ static struct dvb_usb_device_properties af9015_properties[] = { | |||
1508 | .firmware = "dvb-usb-af9015.fw", | 1520 | .firmware = "dvb-usb-af9015.fw", |
1509 | .no_reconnect = 1, | 1521 | .no_reconnect = 1, |
1510 | 1522 | ||
1511 | .size_of_priv = sizeof(struct af9015_state), \ | 1523 | .size_of_priv = sizeof(struct af9015_state), |
1512 | 1524 | ||
1513 | .num_adapters = 2, | 1525 | .num_adapters = 2, |
1514 | .adapter = { | 1526 | .adapter = { |
@@ -1554,7 +1566,7 @@ static struct dvb_usb_device_properties af9015_properties[] = { | |||
1554 | 1566 | ||
1555 | .i2c_algo = &af9015_i2c_algo, | 1567 | .i2c_algo = &af9015_i2c_algo, |
1556 | 1568 | ||
1557 | .num_device_descs = 4, /* max 9 */ | 1569 | .num_device_descs = 6, /* max 9 */ |
1558 | .devices = { | 1570 | .devices = { |
1559 | { | 1571 | { |
1560 | .name = "AverMedia AVerTV Volar GPS 805 (A805)", | 1572 | .name = "AverMedia AVerTV Volar GPS 805 (A805)", |
@@ -1577,6 +1589,17 @@ static struct dvb_usb_device_properties af9015_properties[] = { | |||
1577 | .cold_ids = {&af9015_usb_table[24], NULL}, | 1589 | .cold_ids = {&af9015_usb_table[24], NULL}, |
1578 | .warm_ids = {NULL}, | 1590 | .warm_ids = {NULL}, |
1579 | }, | 1591 | }, |
1592 | { | ||
1593 | .name = "KWorld PlusTV DVB-T PCI Pro Card " \ | ||
1594 | "(DVB-T PC160-T)", | ||
1595 | .cold_ids = {&af9015_usb_table[26], NULL}, | ||
1596 | .warm_ids = {NULL}, | ||
1597 | }, | ||
1598 | { | ||
1599 | .name = "Sveon STV20 Tuner USB DVB-T HDTV", | ||
1600 | .cold_ids = {&af9015_usb_table[27], NULL}, | ||
1601 | .warm_ids = {NULL}, | ||
1602 | }, | ||
1580 | } | 1603 | } |
1581 | }, | 1604 | }, |
1582 | }; | 1605 | }; |