Re: DIKOM DK300: Kernel hangs after suspend to ram
Hi! I've tried to add the no_console_suspend=1 to the grub boot line using the command editor at startup, but switching to the first console and trying to suspend, the console went away as it does if the above option is not present so I was unable to read anything when the kernel crashed at resume. Is there something wrong? Andrea Amorosi Il 10/09/2010 16:41, Johannes Stezenbach ha scritto: On Tue, Sep 07, 2010 at 10:47:55PM +0200, andrea.amoros...@gmail.com wrote: I'm trying to use my Dikom DK-300 usb dvb-t device connected to an old laptop used as media player. The device works well but if I suspend the pc to ram (S3) when the Dikom usb stick is plugged in, the system hangs during the resume phase. So I've tried to create two scripts. The first one removes the driver before sleeping (the script is in the /etc/acpi/suspend.d directory) and the second one reloads it during the resume phase (this script is in /etc/acpi/resume.d directory). I've also inserted in the scripts some logs and it seems that the driver is correctly removed before the suspension, but then the pc hangs when resuming. Do you have some suggestion on how to resolve? I suspect that something in the GPIO setting is not corrected, but I don't know very well how to check that (now I've access to a windows xp virtualbox machine and a real windows vista system which maybe I can use to test/debug the correctness of the patch I postes some time ago). Can't help you with the driver, but for general suspend/resume debug: Did you try no_console_suspend to see if there are any errors? See Documentation/kernel-parameters.txt for more info. There are also some debugging hints in Documentation/power/s2ram.txt and basic-pm-debugging.txt. HTH Johannes -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
DIKOM DK300: Kernel hangs after suspend to ram
Hi to all! I'm trying to use my Dikom DK-300 usb dvb-t device connected to an old laptop used as media player. The device works well but if I suspend the pc to ram (S3) when the Dikom usb stick is plugged in, the system hangs during the resume phase. So I've tried to create two scripts. The first one removes the driver before sleeping (the script is in the /etc/acpi/suspend.d directory) and the second one reloads it during the resume phase (this script is in /etc/acpi/resume.d directory). I've also inserted in the scripts some logs and it seems that the driver is correctly removed before the suspension, but then the pc hangs when resuming. Do you have some suggestion on how to resolve? I suspect that something in the GPIO setting is not corrected, but I don't know very well how to check that (now I've access to a windows xp virtualbox machine and a real windows vista system which maybe I can use to test/debug the correctness of the patch I postes some time ago). Thank you, Andrea Amorosi -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Kernel hangs after suspend to ram
Can you help me, please? Andrea Amorosi Il 01/09/2010 22:32, Andrea Amorosi ha scritto: Hi to all! I'm trying to use my Dikom DK-300 usb dvb-t device connected to an old laptop used as media player. The device works well but if I suspend the pc to ram (S3) when the Dikom usb stick is plugged in, the system hangs during the resume phase. So I've tried to create two scripts. The first one removes the driver before sleeping (the script is in the /etc/acpi/suspend.d directory) and the second one reloads it during the resume phase (this script is in /etc/acpi/resume.d directory). I've also inserted in the scripts some logs and it seems that the driver is correctly removed before the suspension, but then the pc hangs when resuming. Do you have some sugestion on how to resolve? Thank you, Andrea Amorosi -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Error building v4l
Ok! Now it works! Thank you very much, Xwang Il 16/08/2010 04:59, Douglas Schilling Landgraf ha scritto: Hello, On Sat, Aug 14, 2010 at 3:34 AM, andrea.amoros...@gmail.com wrote: Building the v4l, I obtain the following error: home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l/mceusb.c: In function 'mceusb_dev_probe': /home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l/mceusb.c:923: error: implicit declaration of function 'usb_alloc_coherent' /home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l/mceusb.c:923: warning: assignment makes pointer from integer without a cast /home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l/mceusb.c:1003: error: implicit declaration of function 'usb_free_coherent' make[3]: *** [/home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l/mceusb.o] Error 1 make[2]: *** [_module_/home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l] Error 2 make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-24-generic' make[1]: *** [default] Errore 2 make[1]: uscita dalla directory «/home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l» make: *** [all] Errore 2 My system is a Kubuntu 10.04 amd64 with kernel 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010 x86_64 GNU/Linux How can I solve? Please download the new patches available and try again. Cheers Douglas -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Error building v4l
Building the v4l, I obtain the following error: home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l/mceusb.c: In function 'mceusb_dev_probe': /home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l/mceusb.c:923: error: implicit declaration of function 'usb_alloc_coherent' /home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l/mceusb.c:923: warning: assignment makes pointer from integer without a cast /home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l/mceusb.c:1003: error: implicit declaration of function 'usb_free_coherent' make[3]: *** [/home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l/mceusb.o] Error 1 make[2]: *** [_module_/home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l] Error 2 make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-24-generic' make[1]: *** [default] Errore 2 make[1]: uscita dalla directory «/home/andreak/src/v4l-dvb-src/v4l-dvb-main/v4l-dvb/v4l» make: *** [all] Errore 2 My system is a Kubuntu 10.04 amd64 with kernel 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010 x86_64 GNU/Linux How can I solve? Thank you, Xwang -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
How to test s-video em28xx card input?
Hi, I would like to know how can I test the svideo input of a em28xx usb card. The svideo has a round 9-pin female connector so, if I'm not wrong, it should have also the audio in. Is it correct? Thank you, Andrea -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Reinitialize an usb device
Hi to all, I've discovered thet mine dikom dk-300 usb device has a weird behaviour. If I connect it to the pc it works well both in digital and analogue mode, but after some time it is connected, without being in use, the analogue sound stops to work. The only way to have it working again is to unplug and replug the device. I wonder if there is a command to reinitialize without the need to phisically unplug and replug it. Thank you, Andrea -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Analog TV issue with Empire Dual TV (probably wrong GPIO analogue setting)
Hi to all, I've tried my Empire Dual TV usb device which is supported and correctly recognized by the kernel. Digital TV works, but analogue tv is slow and with no audio. I suppose that there is something wrong in the GPIO analogue setting. I would like to know what I can do to solve the issue. I can take an usbsnoop using windows XP virtualized with virtualbox (if feasible it is my first choice) or under windows Vista. In any case I need to know if, using usbsnoop, it is sufficient to open the program used to watch analogue tv or it is needed to tune a channel to obtain the data needed to reverse engineering the GPIO analogue setting. Finally, even if I obtain the correct usbsnoop, I'm not able to read it to extract GPIO. Is there somewhere an howto? Thank you, Andrea -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] em28xx: add Dikom DK300 hybrid USB tuner
Mauro Carvalho Chehab ha scritto: andrea.amoros...@gmail.com wrote: This patch add the Dikom DK300 hybrid usb card. The patch adds digital and analogue tv support. Not working: remote controller diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.cSat Jan 30 01:27:34 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.cSat Jan 30 18:04:13 2010 +0100 Your patch got mangled by Thunderbird. You should or use Asalted Patches plugin: https://hg.mozilla.org/users/clarkbw_gnome.org/asalted-patches/ or use another emailer. Without the above plugin, long lines are broken, damaging your patch. Cheers, Mauro Is it ok now? Andrea This patch add the Dikom DK300 hybrid usb card. The patch adds digital and analogue tv support. Not working: remote controller To be done: it seems that with the proposed patch the digital demodulator remains activated if the tuner is switched from digital to analogue mode. Workaorund is to unplug and replug the device when switching from digital to analogue. If someone can explain how to verify the gpio settings using the usbsnoop, the above issue perhaps can be resolved. Signed-off-by: Andrea Amorosi diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.c Sat Jan 30 01:27:34 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.c Sat Jan 30 18:04:13 2010 +0100 @@ -245,6 +245,12 @@ { -1, -1, -1, -1}, }; +static struct em28xx_reg_seq dikom_dk300_digital[] = { + {EM28XX_R08_GPIO, 0x6e, ~EM_GPIO_4, 10}, + {EM2880_R04_GPO,0x08, 0xff, 10}, + { -1, -1, -1, -1}, +}; + /* * Board definitions @@ -1673,6 +1679,22 @@ .tuner_gpio= reddo_dvb_c_usb_box, .has_dvb = 1, }, + [EM2882_BOARD_DIKOM_DK300] = { + .name = "Dikom DK300", + .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 = dikom_dk300_digital, + .input= { { + .type = EM28XX_VMUX_TELEVISION, + .vmux = TVP5150_COMPOSITE0, + .amux = EM28XX_AMUX_VIDEO, + .gpio = default_analog, + } }, + }, }; const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards); @@ -1812,6 +1834,7 @@ {0xcee44a99, EM2882_BOARD_EVGA_INDTUBE, TUNER_XC2028}, {0xb8846b20, EM2881_BOARD_PINNACLE_HYBRID_PRO, TUNER_XC2028}, {0x63f653bd, EM2870_BOARD_REDDO_DVB_C_USB_BOX, TUNER_ABSENT}, + {0x4e913442, EM2882_BOARD_DIKOM_DK300, TUNER_XC2028}, }; /* I2C devicelist hash table for devices with generic USB IDs */ @@ -2168,6 +2191,7 @@ ctl->demod = XC3028_FE_DEFAULT; break; case EM2883_BOARD_KWORLD_HYBRID_330U: + case EM2882_BOARD_DIKOM_DK300: ctl->demod = XC3028_FE_CHINA; ctl->fname = XC2028_DEFAULT_FIRMWARE; break; @@ -2480,6 +2504,31 @@ em28xx_gpio_set(dev, dev->board.tuner_gpio); em28xx_set_mode(dev, EM28XX_ANALOG_MODE); break; + +/* +* The Dikom DK300 is detected as an Kworld VS-DVB-T 323UR. +* +* This occurs because they share identical USB vendor and +* product IDs. +* +* What we do here is look up the EEPROM hash of the Dikom +* and if it is found then we decide that we do not have +* a Kworld and reset the device to the Dikom instead. +* +* This solution is only valid if they do not share eeprom +* hash identities which has not been determined as yet. +*/ + case EM2882_BOARD_KWORLD_VS_DVBT: + if (!em28xx_hint_board(dev)) + em28xx_set_model(dev); + + /* In cases where we had to use a board hint, the call to + em28xx_set_mode() in em28xx_pre_card_setup() was a no-op, + so make the call now so the analog GPIOs are set properly + before probing the i2c bus. */ + em28xx_gpio_set(dev, dev->board.tuner_gpio); + em28xx_set_mode(dev, EM28XX_ANALOG_MODE); + break; } #if defined(CONFIG_MODULES) && defined(MODULE) diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx-dvb.c --- a/linux/drivers/media/video/em28xx/em28xx-dvb.c Sat Jan 30
Re: [PATCH] em28xx: add Dikom DK300 hybrid USB tuner
Mauro Carvalho Chehab ha scritto: andrea.amoros...@gmail.com wrote: This patch add the Dikom DK300 hybrid usb card. The patch adds digital and analogue tv support. Not working: remote controller diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.cSat Jan 30 01:27:34 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.cSat Jan 30 18:04:13 2010 +0100 Your patch got mangled by Thunderbird. You should or use Asalted Patches plugin: https://hg.mozilla.org/users/clarkbw_gnome.org/asalted-patches/ or use another emailer. Without the above plugin, long lines are broken, damaging your patch. Cheers, Mauro Hi Mauro, I've tried to install the extension, but it is not compatible with mine tb version (which is the one from kubuntu repositories 2.0.0.23). Do you know if there is any tb config that can be manually changed to solve the problem. If not, do you know if seamonkey has the same issue (in case I have to chenge to another mail program this is my first choose)? Thank you, Xwang -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] em28xx: add Dikom DK300 hybrid USB tuner
This patch add the Dikom DK300 hybrid usb card. The patch adds digital and analogue tv support. Not working: remote controller To be done: it seems that with the proposed patch the digital demodulator remains activated if the tuner is switched from digital to analogue mode. Workaorund is to unplug and replug the device when switching from digital to analogue. If someone can explain how to verify the gpio settings using the usbsnoop, the above issue perhaps can be resolved. Signed-off-by: Andrea Amorosi diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.c Sat Jan 30 01:27:34 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.c Sat Jan 30 18:04:13 2010 +0100 @@ -245,6 +245,12 @@ { -1, -1, -1, -1}, }; +static struct em28xx_reg_seq dikom_dk300_digital[] = { + {EM28XX_R08_GPIO, 0x6e, ~EM_GPIO_4, 10}, + {EM2880_R04_GPO,0x08, 0xff, 10}, + { -1, -1, -1, -1}, +}; + /* * Board definitions @@ -1673,6 +1679,22 @@ .tuner_gpio= reddo_dvb_c_usb_box, .has_dvb = 1, }, + [EM2882_BOARD_DIKOM_DK300] = { + .name = "Dikom DK300", + .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 = dikom_dk300_digital, + .input= { { + .type = EM28XX_VMUX_TELEVISION, + .vmux = TVP5150_COMPOSITE0, + .amux = EM28XX_AMUX_VIDEO, + .gpio = default_analog, + } }, + }, }; const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards); @@ -1812,6 +1834,7 @@ {0xcee44a99, EM2882_BOARD_EVGA_INDTUBE, TUNER_XC2028}, {0xb8846b20, EM2881_BOARD_PINNACLE_HYBRID_PRO, TUNER_XC2028}, {0x63f653bd, EM2870_BOARD_REDDO_DVB_C_USB_BOX, TUNER_ABSENT}, + {0x4e913442, EM2882_BOARD_DIKOM_DK300, TUNER_XC2028}, }; /* I2C devicelist hash table for devices with generic USB IDs */ @@ -2168,6 +2191,7 @@ ctl->demod = XC3028_FE_DEFAULT; break; case EM2883_BOARD_KWORLD_HYBRID_330U: + case EM2882_BOARD_DIKOM_DK300: ctl->demod = XC3028_FE_CHINA; ctl->fname = XC2028_DEFAULT_FIRMWARE; break; @@ -2480,6 +2504,31 @@ em28xx_gpio_set(dev, dev->board.tuner_gpio); em28xx_set_mode(dev, EM28XX_ANALOG_MODE); break; + +/* +* The Dikom DK300 is detected as an Kworld VS-DVB-T 323UR. +* +* This occurs because they share identical USB vendor and +* product IDs. +* +* What we do here is look up the EEPROM hash of the Dikom +* and if it is found then we decide that we do not have +* a Kworld and reset the device to the Dikom instead. +* +* This solution is only valid if they do not share eeprom +* hash identities which has not been determined as yet. +*/ + case EM2882_BOARD_KWORLD_VS_DVBT: + if (!em28xx_hint_board(dev)) + em28xx_set_model(dev); + + /* In cases where we had to use a board hint, the call to + em28xx_set_mode() in em28xx_pre_card_setup() was a no-op, + so make the call now so the analog GPIOs are set properly + before probing the i2c bus. */ + em28xx_gpio_set(dev, dev->board.tuner_gpio); + em28xx_set_mode(dev, EM28XX_ANALOG_MODE); + break; } #if defined(CONFIG_MODULES) && defined(MODULE) diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx-dvb.c --- a/linux/drivers/media/video/em28xx/em28xx-dvb.c Sat Jan 30 01:27:34 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c Sat Jan 30 18:04:13 2010 +0100 @@ -504,6 +504,7 @@ break; case EM2880_BOARD_TERRATEC_HYBRID_XS: case EM2881_BOARD_PINNACLE_HYBRID_PRO: + case EM2882_BOARD_DIKOM_DK300: dvb->frontend = dvb_attach(zl10353_attach, &em28xx_zl10353_xc3028_no_i2c_gate, &dev->i2c_adap); diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx.h --- a/linux/drivers/media/video/em28xx/em28xx.h Sat Jan 30 01:27:34 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx.h Sat Jan 30 18:04:13 2010 +0100 @@ -112,6 +112,7 @@ #define EM2861_BOARD_GADMEI_UTV330PLUS
Re: How can I add IR remote to this new device (DIKOM DK300)?
Mauro Carvalho Chehab ha scritto: andrea.amoros...@gmail.com wrote: Mauro Carvalho Chehab ha scritto: andrea.amoros...@gmail.com wrote: So since it is necessary to create a new entry, is there any rules to follow to choose it? Just use the existing entry as an example. You'll need to put your card name at the entry, and add a new #define at em28xx.h. Cheers, Mauro Ok! As far as the auto detection issue is concerned, can I add the EEPROM ID and hash so that to use such data to detect the DIKOM device? I've seen that the same numbers are not present for other devices, so I think adding them should not create problems with other devices, but I'm not sure regard that. Yes, but the code will need to be changed a little bit, since the eeprom id detection happens only for some specific usb id's. Cheers, Mauro Hi Mauro, since I was not able to have my remote controller working (maybe it does not work at all), I've send a new version of the patch which should solve all the issue you pointed by creating a new entry and using the eeprom id to detect the card. That patch still does not appear in patchwork. Can you have a look at it, please? I've send it yesterday with this object "[PATCH] em28xx: add Dikom DK300 hybrid USB tuner" which is clearer than this mail one. Thank you, Andrea -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] em28xx: add Dikom DK300 hybrid USB tuner
This patch add the Dikom DK300 hybrid usb card. The patch adds digital and analogue tv support. Not tested: remote controller To be done: it seems that with the proposed patch the digital demodulator remains activated if the tuner is switched from digital to analogue mode. Workaorund is to unplug and replug the device when switching from digital to analogue. If someone can explain how to verify the gpio settings using the usbsnoop, the above issue perhaps can be resolved. I attach the usbsnoop obtained some month ago using windows xp. Signed-off-by: Andrea Amorosi diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.c Sat Jan 30 01:27:34 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.c Sat Jan 30 18:04:13 2010 +0100 @@ -245,6 +245,12 @@ { -1, -1, -1, -1}, }; +static struct em28xx_reg_seq dikom_dk300_digital[] = { + {EM28XX_R08_GPIO, 0x6e, ~EM_GPIO_4, 10}, + {EM2880_R04_GPO,0x08, 0xff, 10}, + { -1, -1, -1, -1}, +}; + /* * Board definitions @@ -1673,6 +1679,22 @@ .tuner_gpio= reddo_dvb_c_usb_box, .has_dvb = 1, }, + [EM2882_BOARD_DIKOM_DK300] = { + .name = "Dikom DK300", + .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 = dikom_dk300_digital, + .input= { { + .type = EM28XX_VMUX_TELEVISION, + .vmux = TVP5150_COMPOSITE0, + .amux = EM28XX_AMUX_VIDEO, + .gpio = default_analog, + } }, + }, }; const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards); @@ -1812,6 +1834,7 @@ {0xcee44a99, EM2882_BOARD_EVGA_INDTUBE, TUNER_XC2028}, {0xb8846b20, EM2881_BOARD_PINNACLE_HYBRID_PRO, TUNER_XC2028}, {0x63f653bd, EM2870_BOARD_REDDO_DVB_C_USB_BOX, TUNER_ABSENT}, + {0x4e913442, EM2882_BOARD_DIKOM_DK300, TUNER_XC2028}, }; /* I2C devicelist hash table for devices with generic USB IDs */ @@ -2168,6 +2191,7 @@ ctl->demod = XC3028_FE_DEFAULT; break; case EM2883_BOARD_KWORLD_HYBRID_330U: + case EM2882_BOARD_DIKOM_DK300: ctl->demod = XC3028_FE_CHINA; ctl->fname = XC2028_DEFAULT_FIRMWARE; break; @@ -2480,6 +2504,31 @@ em28xx_gpio_set(dev, dev->board.tuner_gpio); em28xx_set_mode(dev, EM28XX_ANALOG_MODE); break; + +/* +* The Dikom DK300 is detected as an Kworld VS-DVB-T 323UR. +* +* This occurs because they share identical USB vendor and +* product IDs. +* +* What we do here is look up the EEPROM hash of the Dikom +* and if it is found then we decide that we do not have +* a Kworld and reset the device to the Dikom instead. +* +* This solution is only valid if they do not share eeprom +* hash identities which has not been determined as yet. +*/ + case EM2882_BOARD_KWORLD_VS_DVBT: + if (!em28xx_hint_board(dev)) + em28xx_set_model(dev); + + /* In cases where we had to use a board hint, the call to + em28xx_set_mode() in em28xx_pre_card_setup() was a no-op, + so make the call now so the analog GPIOs are set properly + before probing the i2c bus. */ + em28xx_gpio_set(dev, dev->board.tuner_gpio); + em28xx_set_mode(dev, EM28XX_ANALOG_MODE); + break; } #if defined(CONFIG_MODULES) && defined(MODULE) diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx-dvb.c --- a/linux/drivers/media/video/em28xx/em28xx-dvb.c Sat Jan 30 01:27:34 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c Sat Jan 30 18:04:13 2010 +0100 @@ -504,6 +504,7 @@ break; case EM2880_BOARD_TERRATEC_HYBRID_XS: case EM2881_BOARD_PINNACLE_HYBRID_PRO: + case EM2882_BOARD_DIKOM_DK300: dvb->frontend = dvb_attach(zl10353_attach, &em28xx_zl10353_xc3028_no_i2c_gate, &dev->i2c_adap); diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx.h --- a/linux/drivers/media/video/em28xx/em28xx.h Sat Jan 30 01:27:34 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx.h Sat Jan 30 18:04:13 2010 +0100 @@ -1
[PATCH] em28xx: add Dikom DK300 hybrid USB tuner
This patch add the Dikom DK300 hybrid usb card. The patch adds digital and analogue tv support. Not tested: remote controller To be done: it seems that with the proposed patch the digital demodulator remains activated if the tuner is switched from digital to analogue mode. Workaorund is to unplug and replug the device when switching from digital to analogue. If someone can explain how to verify the gpio settings using the usbsnoop, the above issue perhaps can be resolved. I attach the usbsnoop obtained some month ago using windows xp. Signed-off-by: Andrea Amorosi diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.c Sat Jan 30 01:27:34 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.c Sat Jan 30 18:04:13 2010 +0100 @@ -245,6 +245,12 @@ { -1, -1, -1, -1}, }; +static struct em28xx_reg_seq dikom_dk300_digital[] = { + {EM28XX_R08_GPIO, 0x6e, ~EM_GPIO_4, 10}, + {EM2880_R04_GPO,0x08, 0xff, 10}, + { -1, -1, -1, -1}, +}; + /* * Board definitions @@ -1673,6 +1679,22 @@ .tuner_gpio= reddo_dvb_c_usb_box, .has_dvb = 1, }, + [EM2882_BOARD_DIKOM_DK300] = { + .name = "Dikom DK300", + .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 = dikom_dk300_digital, + .input= { { + .type = EM28XX_VMUX_TELEVISION, + .vmux = TVP5150_COMPOSITE0, + .amux = EM28XX_AMUX_VIDEO, + .gpio = default_analog, + } }, + }, }; const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards); @@ -1812,6 +1834,7 @@ {0xcee44a99, EM2882_BOARD_EVGA_INDTUBE, TUNER_XC2028}, {0xb8846b20, EM2881_BOARD_PINNACLE_HYBRID_PRO, TUNER_XC2028}, {0x63f653bd, EM2870_BOARD_REDDO_DVB_C_USB_BOX, TUNER_ABSENT}, + {0x4e913442, EM2882_BOARD_DIKOM_DK300, TUNER_XC2028}, }; /* I2C devicelist hash table for devices with generic USB IDs */ @@ -2168,6 +2191,7 @@ ctl->demod = XC3028_FE_DEFAULT; break; case EM2883_BOARD_KWORLD_HYBRID_330U: + case EM2882_BOARD_DIKOM_DK300: ctl->demod = XC3028_FE_CHINA; ctl->fname = XC2028_DEFAULT_FIRMWARE; break; @@ -2480,6 +2504,31 @@ em28xx_gpio_set(dev, dev->board.tuner_gpio); em28xx_set_mode(dev, EM28XX_ANALOG_MODE); break; + +/* +* The Dikom DK300 is detected as an Kworld VS-DVB-T 323UR. +* +* This occurs because they share identical USB vendor and +* product IDs. +* +* What we do here is look up the EEPROM hash of the Dikom +* and if it is found then we decide that we do not have +* a Kworld and reset the device to the Dikom instead. +* +* This solution is only valid if they do not share eeprom +* hash identities which has not been determined as yet. +*/ + case EM2882_BOARD_KWORLD_VS_DVBT: + if (!em28xx_hint_board(dev)) + em28xx_set_model(dev); + + /* In cases where we had to use a board hint, the call to + em28xx_set_mode() in em28xx_pre_card_setup() was a no-op, + so make the call now so the analog GPIOs are set properly + before probing the i2c bus. */ + em28xx_gpio_set(dev, dev->board.tuner_gpio); + em28xx_set_mode(dev, EM28XX_ANALOG_MODE); + break; } #if defined(CONFIG_MODULES) && defined(MODULE) diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx-dvb.c --- a/linux/drivers/media/video/em28xx/em28xx-dvb.c Sat Jan 30 01:27:34 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c Sat Jan 30 18:04:13 2010 +0100 @@ -504,6 +504,7 @@ break; case EM2880_BOARD_TERRATEC_HYBRID_XS: case EM2881_BOARD_PINNACLE_HYBRID_PRO: + case EM2882_BOARD_DIKOM_DK300: dvb->frontend = dvb_attach(zl10353_attach, &em28xx_zl10353_xc3028_no_i2c_gate, &dev->i2c_adap); diff -r d6520e486ee6 linux/drivers/media/video/em28xx/em28xx.h --- a/linux/drivers/media/video/em28xx/em28xx.h Sat Jan 30 01:27:34 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx.h Sat Jan 30 18:04:13 2010 +0100 @@ -112,6 +11
How can I add IR remote to this new device (DIKOM DK300)?
Hi to all, I'm trying to use my Dikom DK300, my old notebook and an external monitor to create a media centre (I'm mostly interested in TV and TV recording). The problem is that, even if I have managed to have the device working with the following patch, I can't still use the IR remote control shipped with it. Can you give me some suggestion in order to have also the remote controller working? Otherwise is it easier to buy another remote with a dedicated receiver? Moreover, since the digital demodulator remains activated when the tuner is switched from digital to analogue mode or when kaffeine (which actually I'm using to see digital tv) is closed, I wonder if someone can explain me how to verify the gpio settings using the usbsnoop (which I've done some times ago under win XP) to solve the issue. If it is not possible, is there any way to deactivate the usb port and reactivate it when the device is in needed? Meantime this it the patch that fixes the Dikom DK300 hybrid USB card which is recognized as a Kworld VS-DVB-T 323UR (card=54). The patch adds digital TV and solves analogue TV audio bad quality issue. Moreover it removes the composite and s-video analogue inputs which are not present on the board. Not working: remote controller Signed-off-by: Andrea Amorosi diff -r 59e746a1c5d1 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.c Wed Dec 30 09:10:33 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.c Tue Jan 12 21:58:30 2010 +0100 @@ -1447,19 +1447,25 @@ .tuner_type = TUNER_XC2028, .tuner_gpio = default_tuner_gpio, .decoder = EM28XX_TVP5150, + .mts_firmware = 1, + .has_dvb = 1, + .dvb_gpio = kworld_330u_digital, .input= { { .type = EM28XX_VMUX_TELEVISION, .vmux = TVP5150_COMPOSITE0, .amux = EM28XX_AMUX_VIDEO, - }, { + .gpio = default_analog, + },/* { .type = EM28XX_VMUX_COMPOSITE1, .vmux = TVP5150_COMPOSITE1, .amux = EM28XX_AMUX_LINE_IN, + .gpio = kworld_330u_analog, }, { .type = EM28XX_VMUX_SVIDEO, .vmux = TVP5150_SVIDEO, .amux = EM28XX_AMUX_LINE_IN, - } }, + .gpio = kworld_330u_analog, + } */}, }, [EM2882_BOARD_TERRATEC_HYBRID_XS] = { .name = "Terratec Hybrid XS (em2882)", @@ -2168,6 +2174,7 @@ ctl->demod = XC3028_FE_DEFAULT; break; case EM2883_BOARD_KWORLD_HYBRID_330U: + case EM2882_BOARD_KWORLD_VS_DVBT: ctl->demod = XC3028_FE_CHINA; ctl->fname = XC2028_DEFAULT_FIRMWARE; break; diff -r 59e746a1c5d1 linux/drivers/media/video/em28xx/em28xx-dvb.c --- a/linux/drivers/media/video/em28xx/em28xx-dvb.c Wed Dec 30 09:10:33 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c Tue Jan 12 21:58:30 2010 +0100 @@ -504,6 +504,7 @@ break; case EM2880_BOARD_TERRATEC_HYBRID_XS: case EM2881_BOARD_PINNACLE_HYBRID_PRO: + 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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] em28xx: fix for Dikom DK300 hybrid USB tuner (aka Kworld VS-DVB-T 323UR )
This patch fix the Dikom DK300 hybrid usb card which is recognized as a Kworld VS-DVB-T 323UR (card=54). The patch adds digital tv and solves analogue tv audio bad quality issue. Moreover it removes the composite and s-video analogue inputs which are not present on the board. Not tested: remote controller To be done: I attach the usbsnoop obtained some month ago using windows xp. It seems that with the proposed patch the digital demodulator remains activated if the tuner is switched from digital to analogue mode. Workaorund is to unplug and replug the device when switching from digital to analogue. If someone can explain how to verify the gpio settings using the usbsnoop, the above issue perhaps can be resolved. Signed-off-by: Andrea Amorosi diff -r aba823ecaea6 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.c Thu Nov 12 12:21:05 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.c Sun Nov 22 11:50:29 2009 +0100 @@ -1422,19 +1422,25 @@ .tuner_type = TUNER_XC2028, .tuner_gpio = default_tuner_gpio, .decoder = EM28XX_TVP5150, +.mts_firmware = 1, +.has_dvb = 1, +.dvb_gpio = kworld_330u_digital, .input= { { .type = EM28XX_VMUX_TELEVISION, .vmux = TVP5150_COMPOSITE0, .amux = EM28XX_AMUX_VIDEO, - }, { + .gpio = default_analog, + },/* { .type = EM28XX_VMUX_COMPOSITE1, .vmux = TVP5150_COMPOSITE1, .amux = EM28XX_AMUX_LINE_IN, + .gpio = kworld_330u_analog, }, { .type = EM28XX_VMUX_SVIDEO, .vmux = TVP5150_SVIDEO, .amux = EM28XX_AMUX_LINE_IN, - } }, + .gpio = kworld_330u_analog, + } */}, }, [EM2882_BOARD_TERRATEC_HYBRID_XS] = { .name = "Terratec Hybrid XS (em2882)", @@ -2143,6 +2149,7 @@ ctl->demod = XC3028_FE_DEFAULT; break; case EM2883_BOARD_KWORLD_HYBRID_330U: + case EM2882_BOARD_KWORLD_VS_DVBT: ctl->demod = XC3028_FE_CHINA; ctl->fname = XC2028_DEFAULT_FIRMWARE; break; diff -r aba823ecaea6 linux/drivers/media/video/em28xx/em28xx-dvb.c --- a/linux/drivers/media/video/em28xx/em28xx-dvb.c Thu Nov 12 12:21:05 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c Sun Nov 22 11:50:29 2009 +0100 @@ -504,6 +504,7 @@ break; case EM2880_BOARD_TERRATEC_HYBRID_XS: case EM2881_BOARD_PINNACLE_HYBRID_PRO: + case EM2882_BOARD_KWORLD_VS_DVBT: dvb->frontend = dvb_attach(zl10353_attach, &em28xx_zl10353_xc3028_no_i2c_gate, &dev->i2c_adap); parsed_UsbSnoop.log.tar.gz Description: application/gzip
Re: [PATCH] em28xx: fix for Dikom DK300 hybrid USB tuner (aka Kworld VS-DVB-T 323UR ) (digital mode)
Devin Heitmueller ha scritto: On Mon, Nov 16, 2009 at 3:49 PM, andrea.amoros...@gmail.com wrote: The usb is the following: Bus 002 Device 010: ID eb1a:e312 eMPIA Technology, Inc. (I don't remember what it was previously, but it seems wrong how can I be sure about that?). I have put back the driver to the original state, but still it doesn't work. Did I have to reprogram the eprom? If so, it is possible via usb? Thank you, Andrea PS I've found an old dmesg. The USB ID is wrong! The old one was eb1a:e323 Ok, so that confirms that indeed the eeprom was corrupted. I would suggest you hack the USB_DEVICE() entry in em28xx-cards.c to be eb1a:e312. This will allow the driver to load and the i2c device to be setup. Then use the eeprom repair script to rewrite the eeprom. At that point you should be able to remove the hack, because the USB ID will be back to eb1a:e323. Devin Ok Devin! It works again!!! If you come in Trieste, let me know and I'll pay you a beer :-) I can also confirm that the digital_defaul gpio does not work so the kworld_330u_digital gpio is needed. In any case I've an usbsnoop of this device but I don't know what I've to search in that 125Mb log text file. I've parsed it with the parse _snifusb2.pl tool and the result is the attached files. Still I don't know what to search to extract the gpio for analog and digital tv. If someone can explain me some basis, maybe I can validate the actual assumptions made in the driver as far as the gpio is concerned. In particular I suspect that the digital demodulator remains active when switching from digital to analog tv. Andrea parsed_UsbSnoop.log.tar.gz Description: application/gzip
No analog audio for the Empire Dual Pen: request for help and suggestions!!!
I would like to solve this analog audio issue (this device would be useful in the future thanks to the 9 pin s-video input which, I think can take the output of an external dvb-t decoder so that to be able to see cripted digital tv or from consoles to play and use notebook display as a tv). Following the (little) expertise gained with the Dikom DK300, I think that the default_analog gpio is not correct for the device. Can I try with others gpio or a wrong gpio can phisically break the device? Otherwise how can I create a correct gpio for this device? Thank you, Andrea (Xwang was my nickname) xwang1...@email.it ha scritto: When you want we can check the audio issue. Consider that actually I've installed the latest main v4l-dvb (to test if all the patches have been ported to themain tree) and it's ok. However I have no problem to install your tree driver again to test whatever is needed to have a fully functional device. Xwang PS the device has also a s-video (9 pin) input. In case I can test it, but I prefer to do that after the analog audio isssue has been solved Douglas Schilling Landgraf ha scritto: Hello Xwang, On Wed, 12 Aug 2009 00:51:13 +0200 xwang1...@email.it wrote: I've used the rewrite_eeprom_v_1_4 which you send me 5 month ago when the eprom got corrupted for the first time. Great, now it's available at v4l-dvb tree. Anyway, now we need to check the audio issue. Thanks! Douglas Xwang Douglas Schilling Landgraf ha scritto: Hello Xwang, On Tue, 11 Aug 2009 23:46:43 +0200 xwang1...@email.it wrote: Ok! I've restored the eprom and now it is recognised again. Just to confirm, did you the rewrite_eeprom tool? The only not working part is analog tv audio which doesn't work even if I use the sox command. Ok. Douglas, in a few minutes I am leaving town for the next five days. Can you help Xwang out to restore his eeprom content using your tool? Sure Devin. Cheers, Douglas -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] em28xx: fix for Dikom DK300 hybrid USB tuner (aka Kworld VS-DVB-T 323UR )
andrea.amoros...@gmail.com wrote: This patch fix the Dikom DK300 hybrid usb card which is recognized as a Kworld VS-DVB-T 323UR (card=54). The patch adds digital tv and solves analog tv audio bad quality issue. Signed-off-by: Andrea Amorosi diff -r aba823ecaea6 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.cThu Nov 12 12:21:05 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.cSat Nov 14 23:10:47 2009 +0100 @@ -1422,18 +1422,24 @@ .tuner_type = TUNER_XC2028, .tuner_gpio = default_tuner_gpio, .decoder = EM28XX_TVP5150, +.mts_firmware = 1, +.has_dvb = 1, +.dvb_gpio = kworld_330u_digital, .input= { { .type = EM28XX_VMUX_TELEVISION, .vmux = TVP5150_COMPOSITE0, .amux = EM28XX_AMUX_VIDEO, +.gpio = default_analog, }, { .type = EM28XX_VMUX_COMPOSITE1, .vmux = TVP5150_COMPOSITE1, .amux = EM28XX_AMUX_LINE_IN, +.gpio = default_analog, }, { .type = EM28XX_VMUX_SVIDEO, .vmux = TVP5150_SVIDEO, .amux = EM28XX_AMUX_LINE_IN, +.gpio = default_analog, } }, }, [EM2882_BOARD_TERRATEC_HYBRID_XS] = { @@ -2143,6 +2149,7 @@ ctl->demod = XC3028_FE_DEFAULT; break; case EM2883_BOARD_KWORLD_HYBRID_330U: +case EM2882_BOARD_KWORLD_VS_DVBT: ctl->demod = XC3028_FE_CHINA; ctl->fname = XC2028_DEFAULT_FIRMWARE; break; diff -r aba823ecaea6 linux/drivers/media/video/em28xx/em28xx-dvb.c --- a/linux/drivers/media/video/em28xx/em28xx-dvb.cThu Nov 12 12:21:05 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.cSat Nov 14 23:10:47 2009 +0100 @@ -504,6 +504,7 @@ break; case EM2880_BOARD_TERRATEC_HYBRID_XS: case EM2881_BOARD_PINNACLE_HYBRID_PRO: +case EM2882_BOARD_KWORLD_VS_DVBT: dvb->frontend = dvb_attach(zl10353_attach, &em28xx_zl10353_xc3028_no_i2c_gate, &dev->i2c_adap); Should I remove the" .valid= EM28XX_BOARD_NOT_VALIDATED," line from the device, since I have successfully tested it or the maintainer will remove it after having received positive feedbacks from other users/developers? For the sake of completeness, the device has a strange behaviour of its two blue LEDs (whose light is visible because the upper part of the device is semi transparent): when the device is connected they turn on and then turn off after less than a second; if I see analogue TV with Mplayer, one of them turn on and remain in such a state till Mplayer is closed. if I see digital TV with Kaffeine, the other led remains off till I select digital TV and a channel, but then it turns on and remain active even if I close Kaffeine and open Mplayer to see analogue tv. In such a case both the LEDs are turned on and the analogue one continue to behave correctly because if I close mplayer it turns off. The digital led turns off only if I reopen Kaffeine without selecting the digital TV. May this strange behaviour be the symptom of an incorrect switch off of the digital part of the tuner when it is not used any more by some programs? Even my previous device (Empire dual pen) had such a strange behaviour as far as the light is concerned, so I don't think it is a real problem. However if someone knows how to solve this, it is better. Best regards, Andrea -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] em28xx: fix for Dikom DK300 hybrid USB tuner (aka Kworld VS-DVB-T 323UR )
This patch fix the Dikom DK300 hybrid usb card which is recognized as a Kworld VS-DVB-T 323UR (card=54). The patch adds digital tv and solves analog tv audio bad quality issue. Signed-off-by: Andrea Amorosi diff -r aba823ecaea6 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.cThu Nov 12 12:21:05 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.cSat Nov 14 23:10:47 2009 +0100 @@ -1422,18 +1422,24 @@ .tuner_type = TUNER_XC2028, .tuner_gpio = default_tuner_gpio, .decoder = EM28XX_TVP5150, +.mts_firmware = 1, +.has_dvb = 1, +.dvb_gpio = kworld_330u_digital, .input= { { .type = EM28XX_VMUX_TELEVISION, .vmux = TVP5150_COMPOSITE0, .amux = EM28XX_AMUX_VIDEO, +.gpio = default_analog, }, { .type = EM28XX_VMUX_COMPOSITE1, .vmux = TVP5150_COMPOSITE1, .amux = EM28XX_AMUX_LINE_IN, +.gpio = default_analog, }, { .type = EM28XX_VMUX_SVIDEO, .vmux = TVP5150_SVIDEO, .amux = EM28XX_AMUX_LINE_IN, +.gpio = default_analog, } }, }, [EM2882_BOARD_TERRATEC_HYBRID_XS] = { @@ -2143,6 +2149,7 @@ ctl->demod = XC3028_FE_DEFAULT; break; case EM2883_BOARD_KWORLD_HYBRID_330U: +case EM2882_BOARD_KWORLD_VS_DVBT: ctl->demod = XC3028_FE_CHINA; ctl->fname = XC2028_DEFAULT_FIRMWARE; break; diff -r aba823ecaea6 linux/drivers/media/video/em28xx/em28xx-dvb.c --- a/linux/drivers/media/video/em28xx/em28xx-dvb.cThu Nov 12 12:21:05 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.cSat Nov 14 23:10:47 2009 +0100 @@ -504,6 +504,7 @@ break; case EM2880_BOARD_TERRATEC_HYBRID_XS: case EM2881_BOARD_PINNACLE_HYBRID_PRO: +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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] em28xx: fix for Dikom DK300 hybrid USB tuner (aka Kworld VS-DVB-T 323UR ) (digital mode)
Continuing the testing for the analog part of the device, I've discovered that the main kernel driver (the one without the proposed patch) works better, even if not perfectly, as far as analog tv is concerned. In detail analog sound is present but is very low and noisy (it seems to be listening to a very distant radio station). So there is something in the patch that breaks the analog tv sound (which however is not very usable in the main driver being so noisy). Which one of the modified setting can interfer with the analog tv sound? Thank you, Andrea andrea.amoros...@gmail.com ha scritto: This patch fix the Dikom DK300 hybrid usb card which is recognized as a Kworld VS-DVB-T 323UR (card=54) by the main driver, but with no tv available in Kaffeine. The patch solves the problem for the digital part of the tuner. Analog tv has no audio (both video e audio devices are created but mplayer complains with the following message: Error reading audio: Input/output error). Moreover the /dev/video sometime is not deleted when the device is unplugged. Signed-off-by: Andrea Amorosi diff -r aba823ecaea6 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.cThu Nov 12 12:21:05 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.cSat Nov 14 00:33:49 2009 +0100 @@ -1422,6 +1422,9 @@ .tuner_type = TUNER_XC2028, .tuner_gpio = default_tuner_gpio, .decoder = EM28XX_TVP5150, +.mts_firmware = 1, +.has_dvb = 1, +.dvb_gpio = kworld_330u_digital, .input= { { .type = EM28XX_VMUX_TELEVISION, .vmux = TVP5150_COMPOSITE0, @@ -2143,6 +2146,7 @@ ctl->demod = XC3028_FE_DEFAULT; break; case EM2883_BOARD_KWORLD_HYBRID_330U: +case EM2882_BOARD_KWORLD_VS_DVBT: ctl->demod = XC3028_FE_CHINA; ctl->fname = XC2028_DEFAULT_FIRMWARE; break; diff -r aba823ecaea6 linux/drivers/media/video/em28xx/em28xx-dvb.c --- a/linux/drivers/media/video/em28xx/em28xx-dvb.cThu Nov 12 12:21:05 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.cSat Nov 14 00:33:49 2009 +0100 @@ -504,6 +504,7 @@ break; case EM2880_BOARD_TERRATEC_HYBRID_XS: case EM2881_BOARD_PINNACLE_HYBRID_PRO: +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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] em28xx: fix for Dikom DK300 hybrid USB tuner (aka Kworld VS-DVB-T 323UR ) (digital mode)
This patch fix the Dikom DK300 hybrid usb card which is recognized as a Kworld VS-DVB-T 323UR (card=54) by the main driver, but with no tv available in Kaffeine. The patch solves the problem for the digital part of the tuner. Analog tv has no audio (both video e audio devices are created but mplayer complains with the following message: Error reading audio: Input/output error). Moreover the /dev/video sometime is not deleted when the device is unplugged. Signed-off-by: Andrea Amorosi diff -r aba823ecaea6 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.c Thu Nov 12 12:21:05 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.c Sat Nov 14 00:33:49 2009 +0100 @@ -1422,6 +1422,9 @@ .tuner_type = TUNER_XC2028, .tuner_gpio = default_tuner_gpio, .decoder = EM28XX_TVP5150, +.mts_firmware = 1, +.has_dvb = 1, +.dvb_gpio = kworld_330u_digital, .input= { { .type = EM28XX_VMUX_TELEVISION, .vmux = TVP5150_COMPOSITE0, @@ -2143,6 +2146,7 @@ ctl->demod = XC3028_FE_DEFAULT; break; case EM2883_BOARD_KWORLD_HYBRID_330U: + case EM2882_BOARD_KWORLD_VS_DVBT: ctl->demod = XC3028_FE_CHINA; ctl->fname = XC2028_DEFAULT_FIRMWARE; break; diff -r aba823ecaea6 linux/drivers/media/video/em28xx/em28xx-dvb.c --- a/linux/drivers/media/video/em28xx/em28xx-dvb.c Thu Nov 12 12:21:05 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c Sat Nov 14 00:33:49 2009 +0100 @@ -504,6 +504,7 @@ break; case EM2880_BOARD_TERRATEC_HYBRID_XS: case EM2881_BOARD_PINNACLE_HYBRID_PRO: + 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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html