Skip to contentSkip to conversation

em28xx: Support for Kworld VS-DVB-T 323UR

PATCH In review Antonio Larrosa 2 participants 2 messages Mar 5, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 em28xx: Support for Kworld VS-DVB-T 323UR

em28xx: Support for Kworld VS-DVB-T 323UR

From: Antonio Larrosa <[email protected]>

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.

Priority: normal

linux/drivers/media/video/em28xx/em28xx-cards.c +6 -1
diff -r 41c5482f2dac linux/drivers/media/video/em28xx/em28xx-cards.c
@@ -1456,10 +1456,14 @@
 	},
 	[EM2882_BOARD_KWORLD_VS_DVBT] = {
 		.name         = "Kworld VS-DVB-T 323UR",
-		.valid        = EM28XX_BOARD_NOT_VALIDATED,
 		.tuner_type   = TUNER_XC2028,
 		.tuner_gpio   = default_tuner_gpio,
 		.decoder      = EM28XX_TVP5150,
+		.mts_firmware = 1,
+		.has_dvb      = 1,
+		.dvb_gpio     = kworld_330u_digital,
+		.xclk         = EM28XX_XCLK_FREQUENCY_12MHZ, /* NEC IR */
+		.ir_codes     = &ir_codes_kworld_315u_table,
 		.input        = { {
 			.type     = EM28XX_VMUX_TELEVISION,
 			.vmux     = TVP5150_COMPOSITE0,
@@ -2198,6 +2202,7 @@
 		break;
 	case EM2883_BOARD_KWORLD_HYBRID_330U:
 	case EM2882_BOARD_DIKOM_DK300:
+	case EM2882_BOARD_KWORLD_VS_DVBT:
 		ctl->demod = XC3028_FE_CHINA;
 		ctl->fname = XC2028_DEFAULT_FIRMWARE;
 		break;
linux/drivers/media/video/em28xx/em28xx-dvb.c +1 -0
diff -r 41c5482f2dac linux/drivers/media/video/em28xx/em28xx-dvb.c
@@ -506,6 +506,7 @@
 	case EM2880_BOARD_TERRATEC_HYBRID_XS_FR:
 	case EM2881_BOARD_PINNACLE_HYBRID_PRO:
 	case EM2882_BOARD_DIKOM_DK300:
+	case EM2882_BOARD_KWORLD_VS_DVBT:
 		dvb->frontend = dvb_attach(zl10353_attach,
 					   &em28xx_zl10353_xc3028_no_i2c_gate,
 					   &dev->i2c_adap);
Acked-by on v1 1/1
#1 lore raw
Quoted 51 lines · Antonio Larrosa

em28xx: Support for Kworld VS-DVB-T 323UR

From: Antonio Larrosa <[email protected]>

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.

Priority: normal

diff -r 41c5482f2dac linux/drivers/media/video/em28xx/em28xx-cards.c

linux/drivers/media/video/em28xx/em28xx-cards.c   Fri Mar 05 01:41:46 2010 +0100 renamed from linux/drivers/media/video/em28xx/em28xx-cards.c   Thu Mar 04 02:49:46 2010 -0300 +5 -1
@@ -1456,10 +1456,14 @@
        },
        [EM2882_BOARD_KWORLD_VS_DVBT] = {
                .name         = "Kworld VS-DVB-T 323UR",
-               .valid        = EM28XX_BOARD_NOT_VALIDATED,
                .tuner_type   = TUNER_XC2028,
                .tuner_gpio   = default_tuner_gpio,
                .decoder      = EM28XX_TVP5150,
+               .mts_firmware = 1,
+               .has_dvb      = 1,
+               .dvb_gpio     = kworld_330u_digital,
+               .xclk         = EM28XX_XCLK_FREQUENCY_12MHZ, /* NEC IR */
+               .ir_codes     = &ir_codes_kworld_315u_table,
                .input        = { {
                        .type     = EM28XX_VMUX_TELEVISION,
                        .vmux     = TVP5150_COMPOSITE0,
@@ -2198,6 +2202,7 @@
                break;

       case EM2883_BOARD_KWORLD_HYBRID_330U:
       case EM2882_BOARD_DIKOM_DK300:
+       case EM2882_BOARD_KWORLD_VS_DVBT:
               ctl->demod = XC3028_FE_CHINA;
               ctl->fname = XC2028_DEFAULT_FIRMWARE; break;
diff -r 41c5482f2dac linux/drivers/media/video/em28xx/em28xx-dvb.c

linux/drivers/media/video/em28xx/em28xx-dvb.c     Fri Mar 05 01:41:46 2010 +0100 renamed from linux/drivers/media/video/em28xx/em28xx-dvb.c     Thu Mar 04 02:49:46 2010 -0300 +0 -0
@@ -506,6 +506,7 @@

       case EM2880_BOARD_TERRATEC_HYBRID_XS_FR:
       case EM2881_BOARD_PINNACLE_HYBRID_PRO:
       case EM2882_BOARD_DIKOM_DK300:

Quoted 9 lines

+       case EM2882_BOARD_KWORLD_VS_DVBT:
               dvb->frontend = dvb_attach(zl10353_attach, &em28xx_zl10353_xc3028_no_i2c_gate, &dev->i2c_adap);
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com