From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: "Andrea.Amorosi76@gmail.com" <Andrea.Amorosi76@gmail.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: How can I add IR remote to this new device (DIKOM DK300)?
Date: Mon, 25 Jan 2010 10:40:15 -0200 [thread overview]
Message-ID: <4B5D912F.6000609@redhat.com> (raw)
In-Reply-To: <4B51132A.1000606@gmail.com>
Hi Andrea,
Andrea.Amorosi76@gmail.com wrote:
> 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.
This basically depends on the chipset found on your device. Newer em28xx
devices have the IR decoding logic inside the chip. So, all you need is to
create a table with your IR codes and point to it at the board entry. You'll
need to discover what kind of IR protocol is used: NEC or RC5.
For example, adding this to the board description:
.ir_codes = &ir_codes_rc5_hauppauge_new_table,
Will program your chip to use RC5 protocol with the Hauppauge table.
Of course, your IR has a different table, so you'll need to load em28xx module
with ir_debug=1, and type every key of your keyboard, associating a keycode
with the scancode and writing a new table (or using an existing one, if equal).
Then, add the corresponding table at ir-keymaps.c.
> 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).
Please, create a separate entry for your board, since your card is different.
Unfortunately, since both Kworld 323UR and Dikom dk300 share the same USB ID,
autodetection between the two is not possible, so a modprobe parameter will
be needed to differentiate between the two.
> 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 <Andrea.Amorosi76@gmail.com>
>
> 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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-01-25 12:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-16 1:15 How can I add IR remote to this new device (DIKOM DK300)? Andrea.Amorosi76
2010-01-25 12:40 ` Mauro Carvalho Chehab [this message]
[not found] ` <4B5F6914.4080502@gmail.com>
2010-01-26 22:24 ` Mauro Carvalho Chehab
[not found] ` <4B61E759.5000707@gmail.com>
2010-01-29 17:10 ` Mauro Carvalho Chehab
2010-02-04 19:15 ` Andrea.Amorosi76
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B5D912F.6000609@redhat.com \
--to=mchehab@redhat.com \
--cc=Andrea.Amorosi76@gmail.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox