aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorMichel Garnier <catimimi@orange.fr>2010-10-16 13:42:01 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-21 11:37:33 -0400
commitcec4e6c113d490c227819da98d541e6156ed6ce2 (patch)
tree9f25cf6afdeb3f03dcb4f83102375faeabcc0670 /drivers/media/video
parent74c4792c8789a165ed41ef3b9c12084c6491cadf (diff)
[media] em28xx: Add dvb support for Terratec Cinergy Hybrid T USB XS FR
Signed-off-by: Michel Garnier <catimimi@orange.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
index e7efb4bffabd..f6dbb2148060 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -187,6 +187,18 @@ static struct em28xx_reg_seq pinnacle_hybrid_pro_digital[] = {
187 { -1, -1, -1, -1}, 187 { -1, -1, -1, -1},
188}; 188};
189 189
190static struct em28xx_reg_seq terratec_cinergy_USB_XS_FR_analog[] = {
191 {EM28XX_R08_GPIO, 0x6d, ~EM_GPIO_4, 10},
192 {EM2880_R04_GPO, 0x00, 0xff, 10},
193 { -1, -1, -1, -1},
194};
195
196static struct em28xx_reg_seq terratec_cinergy_USB_XS_FR_digital[] = {
197 {EM28XX_R08_GPIO, 0x6e, ~EM_GPIO_4, 10},
198 {EM2880_R04_GPO, 0x08, 0xff, 10},
199 { -1, -1, -1, -1},
200};
201
190/* eb1a:2868 Reddo DVB-C USB TV Box 202/* eb1a:2868 Reddo DVB-C USB TV Box
191 GPIO4 - CU1216L NIM 203 GPIO4 - CU1216L NIM
192 Other GPIOs seems to be don't care. */ 204 Other GPIOs seems to be don't care. */
@@ -781,22 +793,22 @@ struct em28xx_board em28xx_boards[] = {
781 .tuner_gpio = default_tuner_gpio, 793 .tuner_gpio = default_tuner_gpio,
782 .decoder = EM28XX_TVP5150, 794 .decoder = EM28XX_TVP5150,
783 .has_dvb = 1, 795 .has_dvb = 1,
784 .dvb_gpio = default_digital, 796 .dvb_gpio = terratec_cinergy_USB_XS_FR_digital,
785 .input = { { 797 .input = { {
786 .type = EM28XX_VMUX_TELEVISION, 798 .type = EM28XX_VMUX_TELEVISION,
787 .vmux = TVP5150_COMPOSITE0, 799 .vmux = TVP5150_COMPOSITE0,
788 .amux = EM28XX_AMUX_VIDEO, 800 .amux = EM28XX_AMUX_VIDEO,
789 .gpio = default_analog, 801 .gpio = terratec_cinergy_USB_XS_FR_analog,
790 }, { 802 }, {
791 .type = EM28XX_VMUX_COMPOSITE1, 803 .type = EM28XX_VMUX_COMPOSITE1,
792 .vmux = TVP5150_COMPOSITE1, 804 .vmux = TVP5150_COMPOSITE1,
793 .amux = EM28XX_AMUX_LINE_IN, 805 .amux = EM28XX_AMUX_LINE_IN,
794 .gpio = default_analog, 806 .gpio = terratec_cinergy_USB_XS_FR_analog,
795 }, { 807 }, {
796 .type = EM28XX_VMUX_SVIDEO, 808 .type = EM28XX_VMUX_SVIDEO,
797 .vmux = TVP5150_SVIDEO, 809 .vmux = TVP5150_SVIDEO,
798 .amux = EM28XX_AMUX_LINE_IN, 810 .amux = EM28XX_AMUX_LINE_IN,
799 .gpio = default_analog, 811 .gpio = terratec_cinergy_USB_XS_FR_analog,
800 } }, 812 } },
801 }, 813 },
802 [EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900] = { 814 [EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900] = {
@@ -2168,6 +2180,7 @@ static void em28xx_setup_xc3028(struct em28xx *dev, struct xc2028_ctrl *ctl)
2168 ctl->demod = XC3028_FE_ZARLINK456; 2180 ctl->demod = XC3028_FE_ZARLINK456;
2169 break; 2181 break;
2170 case EM2880_BOARD_TERRATEC_HYBRID_XS: 2182 case EM2880_BOARD_TERRATEC_HYBRID_XS:
2183 case EM2880_BOARD_TERRATEC_HYBRID_XS_FR:
2171 case EM2881_BOARD_PINNACLE_HYBRID_PRO: 2184 case EM2881_BOARD_PINNACLE_HYBRID_PRO:
2172 ctl->demod = XC3028_FE_ZARLINK456; 2185 ctl->demod = XC3028_FE_ZARLINK456;
2173 break; 2186 break;