diff options
author | Steven Toth <stoth@kernellabs.com> | 2011-09-09 14:35:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-21 09:16:31 -0400 |
commit | de2fb698c6fb1e968a5ed9cc449024f119ad3853 (patch) | |
tree | d583610d52d167bea0fe512ec9256a6695ec2035 | |
parent | 9637433cf82e484d76d40c2fca9d0a1307ed08c7 (diff) |
[media] saa7164: Adding support for HVR2200 card id 0x8953
Thanks to Greg Tangey for prompting me to merge this.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/saa7164/saa7164-cards.c | 62 | ||||
-rw-r--r-- | drivers/media/video/saa7164/saa7164-dvb.c | 1 | ||||
-rw-r--r-- | drivers/media/video/saa7164/saa7164.h | 1 |
3 files changed, 64 insertions, 0 deletions
diff --git a/drivers/media/video/saa7164/saa7164-cards.c b/drivers/media/video/saa7164/saa7164-cards.c index c71369173fae..971591d6450f 100644 --- a/drivers/media/video/saa7164/saa7164-cards.c +++ b/drivers/media/video/saa7164/saa7164-cards.c | |||
@@ -447,6 +447,62 @@ struct saa7164_board saa7164_boards[] = { | |||
447 | .i2c_reg_len = REGLEN_8bit, | 447 | .i2c_reg_len = REGLEN_8bit, |
448 | } }, | 448 | } }, |
449 | }, | 449 | }, |
450 | [SAA7164_BOARD_HAUPPAUGE_HVR2200_5] = { | ||
451 | .name = "Hauppauge WinTV-HVR2200", | ||
452 | .porta = SAA7164_MPEG_DVB, | ||
453 | .portb = SAA7164_MPEG_DVB, | ||
454 | .chiprev = SAA7164_CHIP_REV3, | ||
455 | .unit = {{ | ||
456 | .id = 0x23, | ||
457 | .type = SAA7164_UNIT_EEPROM, | ||
458 | .name = "4K EEPROM", | ||
459 | .i2c_bus_nr = SAA7164_I2C_BUS_0, | ||
460 | .i2c_bus_addr = 0xa0 >> 1, | ||
461 | .i2c_reg_len = REGLEN_8bit, | ||
462 | }, { | ||
463 | .id = 0x04, | ||
464 | .type = SAA7164_UNIT_TUNER, | ||
465 | .name = "TDA18271-1", | ||
466 | .i2c_bus_nr = SAA7164_I2C_BUS_1, | ||
467 | .i2c_bus_addr = 0xc0 >> 1, | ||
468 | .i2c_reg_len = REGLEN_8bit, | ||
469 | }, { | ||
470 | .id = 0x05, | ||
471 | .type = SAA7164_UNIT_ANALOG_DEMODULATOR, | ||
472 | .name = "TDA8290-1", | ||
473 | .i2c_bus_nr = SAA7164_I2C_BUS_1, | ||
474 | .i2c_bus_addr = 0x84 >> 1, | ||
475 | .i2c_reg_len = REGLEN_8bit, | ||
476 | }, { | ||
477 | .id = 0x21, | ||
478 | .type = SAA7164_UNIT_TUNER, | ||
479 | .name = "TDA18271-2", | ||
480 | .i2c_bus_nr = SAA7164_I2C_BUS_2, | ||
481 | .i2c_bus_addr = 0xc0 >> 1, | ||
482 | .i2c_reg_len = REGLEN_8bit, | ||
483 | }, { | ||
484 | .id = 0x22, | ||
485 | .type = SAA7164_UNIT_ANALOG_DEMODULATOR, | ||
486 | .name = "TDA8290-2", | ||
487 | .i2c_bus_nr = SAA7164_I2C_BUS_2, | ||
488 | .i2c_bus_addr = 0x84 >> 1, | ||
489 | .i2c_reg_len = REGLEN_8bit, | ||
490 | }, { | ||
491 | .id = 0x24, | ||
492 | .type = SAA7164_UNIT_DIGITAL_DEMODULATOR, | ||
493 | .name = "TDA10048-1", | ||
494 | .i2c_bus_nr = SAA7164_I2C_BUS_1, | ||
495 | .i2c_bus_addr = 0x10 >> 1, | ||
496 | .i2c_reg_len = REGLEN_8bit, | ||
497 | }, { | ||
498 | .id = 0x25, | ||
499 | .type = SAA7164_UNIT_DIGITAL_DEMODULATOR, | ||
500 | .name = "TDA10048-2", | ||
501 | .i2c_bus_nr = SAA7164_I2C_BUS_2, | ||
502 | .i2c_bus_addr = 0x12 >> 1, | ||
503 | .i2c_reg_len = REGLEN_8bit, | ||
504 | } }, | ||
505 | }, | ||
450 | }; | 506 | }; |
451 | const unsigned int saa7164_bcount = ARRAY_SIZE(saa7164_boards); | 507 | const unsigned int saa7164_bcount = ARRAY_SIZE(saa7164_boards); |
452 | 508 | ||
@@ -490,6 +546,10 @@ struct saa7164_subid saa7164_subids[] = { | |||
490 | .subvendor = 0x0070, | 546 | .subvendor = 0x0070, |
491 | .subdevice = 0x8940, | 547 | .subdevice = 0x8940, |
492 | .card = SAA7164_BOARD_HAUPPAUGE_HVR2200_4, | 548 | .card = SAA7164_BOARD_HAUPPAUGE_HVR2200_4, |
549 | }, { | ||
550 | .subvendor = 0x0070, | ||
551 | .subdevice = 0x8953, | ||
552 | .card = SAA7164_BOARD_HAUPPAUGE_HVR2200_5, | ||
493 | }, | 553 | }, |
494 | }; | 554 | }; |
495 | const unsigned int saa7164_idcount = ARRAY_SIZE(saa7164_subids); | 555 | const unsigned int saa7164_idcount = ARRAY_SIZE(saa7164_subids); |
@@ -534,6 +594,7 @@ void saa7164_gpio_setup(struct saa7164_dev *dev) | |||
534 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_2: | 594 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_2: |
535 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_3: | 595 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_3: |
536 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_4: | 596 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_4: |
597 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_5: | ||
537 | case SAA7164_BOARD_HAUPPAUGE_HVR2250: | 598 | case SAA7164_BOARD_HAUPPAUGE_HVR2250: |
538 | case SAA7164_BOARD_HAUPPAUGE_HVR2250_2: | 599 | case SAA7164_BOARD_HAUPPAUGE_HVR2250_2: |
539 | case SAA7164_BOARD_HAUPPAUGE_HVR2250_3: | 600 | case SAA7164_BOARD_HAUPPAUGE_HVR2250_3: |
@@ -615,6 +676,7 @@ void saa7164_card_setup(struct saa7164_dev *dev) | |||
615 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_2: | 676 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_2: |
616 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_3: | 677 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_3: |
617 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_4: | 678 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_4: |
679 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_5: | ||
618 | case SAA7164_BOARD_HAUPPAUGE_HVR2250: | 680 | case SAA7164_BOARD_HAUPPAUGE_HVR2250: |
619 | case SAA7164_BOARD_HAUPPAUGE_HVR2250_2: | 681 | case SAA7164_BOARD_HAUPPAUGE_HVR2250_2: |
620 | case SAA7164_BOARD_HAUPPAUGE_HVR2250_3: | 682 | case SAA7164_BOARD_HAUPPAUGE_HVR2250_3: |
diff --git a/drivers/media/video/saa7164/saa7164-dvb.c b/drivers/media/video/saa7164/saa7164-dvb.c index d3779379197f..5c5cc3ebf9bd 100644 --- a/drivers/media/video/saa7164/saa7164-dvb.c +++ b/drivers/media/video/saa7164/saa7164-dvb.c | |||
@@ -476,6 +476,7 @@ int saa7164_dvb_register(struct saa7164_port *port) | |||
476 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_2: | 476 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_2: |
477 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_3: | 477 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_3: |
478 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_4: | 478 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_4: |
479 | case SAA7164_BOARD_HAUPPAUGE_HVR2200_5: | ||
479 | i2c_bus = &dev->i2c_bus[port->nr + 1]; | 480 | i2c_bus = &dev->i2c_bus[port->nr + 1]; |
480 | switch (port->nr) { | 481 | switch (port->nr) { |
481 | case 0: | 482 | case 0: |
diff --git a/drivers/media/video/saa7164/saa7164.h b/drivers/media/video/saa7164/saa7164.h index 35b64306ba95..742b34103b5d 100644 --- a/drivers/media/video/saa7164/saa7164.h +++ b/drivers/media/video/saa7164/saa7164.h | |||
@@ -83,6 +83,7 @@ | |||
83 | #define SAA7164_BOARD_HAUPPAUGE_HVR2250_2 7 | 83 | #define SAA7164_BOARD_HAUPPAUGE_HVR2250_2 7 |
84 | #define SAA7164_BOARD_HAUPPAUGE_HVR2250_3 8 | 84 | #define SAA7164_BOARD_HAUPPAUGE_HVR2250_3 8 |
85 | #define SAA7164_BOARD_HAUPPAUGE_HVR2200_4 9 | 85 | #define SAA7164_BOARD_HAUPPAUGE_HVR2200_4 9 |
86 | #define SAA7164_BOARD_HAUPPAUGE_HVR2200_5 10 | ||
86 | 87 | ||
87 | #define SAA7164_MAX_UNITS 8 | 88 | #define SAA7164_MAX_UNITS 8 |
88 | #define SAA7164_TS_NUMBER_OF_LINES 312 | 89 | #define SAA7164_TS_NUMBER_OF_LINES 312 |