aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx
diff options
context:
space:
mode:
authorAntonio Larrosa <larrosa@kde.org>2010-03-04 20:19:48 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-17 23:46:34 -0400
commit811fab623f435932f2a26aa64b40ec6102618cc6 (patch)
tree3ee82c626b0893ede05f46534949af7fb07891ce /drivers/media/video/em28xx
parent4de39f5d6f8267a0b062cba70eaa84fb161007e4 (diff)
V4L/DVB: em28xx: Support for Kworld VS-DVB-T 323UR
This patch adapts the changes submitted by Dainius Ridzevicius to the linux-media mailing list on 8/14/09, to the current sources in order to make the Kworld VS-DVB-T 323UR usb device work. I also removed the "not validated" flag since I own the device and validated that it works fine after the patch is applied. Thanks to Devin Heitmueller for his guidance with the code. Signed-off-by: Antonio Larrosa <larrosa@kde.org> Acked-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c7
-rw-r--r--drivers/media/video/em28xx/em28xx-dvb.c1
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
index b0fb08337710..5ed834ee7569 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -1404,10 +1404,14 @@ struct em28xx_board em28xx_boards[] = {
1404 }, 1404 },
1405 [EM2882_BOARD_KWORLD_VS_DVBT] = { 1405 [EM2882_BOARD_KWORLD_VS_DVBT] = {
1406 .name = "Kworld VS-DVB-T 323UR", 1406 .name = "Kworld VS-DVB-T 323UR",
1407 .valid = EM28XX_BOARD_NOT_VALIDATED,
1408 .tuner_type = TUNER_XC2028, 1407 .tuner_type = TUNER_XC2028,
1409 .tuner_gpio = default_tuner_gpio, 1408 .tuner_gpio = default_tuner_gpio,
1410 .decoder = EM28XX_TVP5150, 1409 .decoder = EM28XX_TVP5150,
1410 .mts_firmware = 1,
1411 .has_dvb = 1,
1412 .dvb_gpio = kworld_330u_digital,
1413 .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, /* NEC IR */
1414 .ir_codes = &ir_codes_kworld_315u_table,
1411 .input = { { 1415 .input = { {
1412 .type = EM28XX_VMUX_TELEVISION, 1416 .type = EM28XX_VMUX_TELEVISION,
1413 .vmux = TVP5150_COMPOSITE0, 1417 .vmux = TVP5150_COMPOSITE0,
@@ -2138,6 +2142,7 @@ static void em28xx_setup_xc3028(struct em28xx *dev, struct xc2028_ctrl *ctl)
2138 break; 2142 break;
2139 case EM2883_BOARD_KWORLD_HYBRID_330U: 2143 case EM2883_BOARD_KWORLD_HYBRID_330U:
2140 case EM2882_BOARD_DIKOM_DK300: 2144 case EM2882_BOARD_DIKOM_DK300:
2145 case EM2882_BOARD_KWORLD_VS_DVBT:
2141 ctl->demod = XC3028_FE_CHINA; 2146 ctl->demod = XC3028_FE_CHINA;
2142 ctl->fname = XC2028_DEFAULT_FIRMWARE; 2147 ctl->fname = XC2028_DEFAULT_FIRMWARE;
2143 break; 2148 break;
diff --git a/drivers/media/video/em28xx/em28xx-dvb.c b/drivers/media/video/em28xx/em28xx-dvb.c
index bcd3c371009b..e7b3d5371558 100644
--- a/drivers/media/video/em28xx/em28xx-dvb.c
+++ b/drivers/media/video/em28xx/em28xx-dvb.c
@@ -506,6 +506,7 @@ static int dvb_init(struct em28xx *dev)
506 case EM2880_BOARD_TERRATEC_HYBRID_XS_FR: 506 case EM2880_BOARD_TERRATEC_HYBRID_XS_FR:
507 case EM2881_BOARD_PINNACLE_HYBRID_PRO: 507 case EM2881_BOARD_PINNACLE_HYBRID_PRO:
508 case EM2882_BOARD_DIKOM_DK300: 508 case EM2882_BOARD_DIKOM_DK300:
509 case EM2882_BOARD_KWORLD_VS_DVBT:
509 dvb->frontend = dvb_attach(zl10353_attach, 510 dvb->frontend = dvb_attach(zl10353_attach,
510 &em28xx_zl10353_xc3028_no_i2c_gate, 511 &em28xx_zl10353_xc3028_no_i2c_gate,
511 &dev->i2c_adap); 512 &dev->i2c_adap);