diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-08-22 13:43:50 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:19:39 -0400 |
commit | ed44f66e4039dfc8fb7905078d546c83adf76811 (patch) | |
tree | 2298262ff3ee89ef5506346f50648587f461b9e0 | |
parent | 200e861c511ded56783a3032f9d41fc6f1474e7a (diff) |
V4L/DVB (12585): Add remote support to cph03x bttv card
Hello kernel developers.
I found a bug report from an user in launchpad. I just copy it here. It
includes patch.
I don't own the necessary hardware to test it but the patch looks
trivial.
I'm not subscribed to this list, so please CC me. Thanks!
Here is the text:
"""
remote control for my tv card doesnt work
I have Askey CPH03x TV Capturer.
When I load bttv module with "card=59" option which is proper for this
tv card,
I can watch tv with sound but my remote control doesnt work. There is no
ir
event in /proc/bus/input/device .
When bttv module is loaded with "card=137" option remote control works
very
well.
$ cat /proc/bus/input/devices
.......
........
: Bus=0001 Vendor=109e Product=0350 Version=0001
N: Name="bttv IR (card=137)"
P: Phys=pci-0000:00:0d.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:0d.0/input/input144
U: Uniq=
H: Handlers=kbd event6
B: EV=100003
B: KEY=2c0814 100004 0 0 0 4 2008000 2090 2001 1e0000 4400 0 ffc
Unfortunately there is no sound.
"""
https://bugs.launchpad.net/ubuntu/+bug/239733
http://bugzilla.kernel.org/show_bug.cgi?id=11995
--
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/bt8xx/bttv-cards.c | 1 | ||||
-rw-r--r-- | drivers/media/video/bt8xx/bttv-input.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/bt8xx/bttv-cards.c b/drivers/media/video/bt8xx/bttv-cards.c index ca6558c394be..b42251fa96ba 100644 --- a/drivers/media/video/bt8xx/bttv-cards.c +++ b/drivers/media/video/bt8xx/bttv-cards.c | |||
@@ -1274,6 +1274,7 @@ struct tvcard bttv_tvcards[] = { | |||
1274 | .pll = PLL_28, | 1274 | .pll = PLL_28, |
1275 | .tuner_type = TUNER_TEMIC_PAL, | 1275 | .tuner_type = TUNER_TEMIC_PAL, |
1276 | .tuner_addr = ADDR_UNSET, | 1276 | .tuner_addr = ADDR_UNSET, |
1277 | .has_remote = 1, | ||
1277 | }, | 1278 | }, |
1278 | 1279 | ||
1279 | /* ---- card 0x3c ---------------------------------- */ | 1280 | /* ---- card 0x3c ---------------------------------- */ |
diff --git a/drivers/media/video/bt8xx/bttv-input.c b/drivers/media/video/bt8xx/bttv-input.c index 2f289d981fe6..3e7b48e73b01 100644 --- a/drivers/media/video/bt8xx/bttv-input.c +++ b/drivers/media/video/bt8xx/bttv-input.c | |||
@@ -308,6 +308,7 @@ int bttv_input_init(struct bttv *btv) | |||
308 | ir->mask_keyup = 0x008000; | 308 | ir->mask_keyup = 0x008000; |
309 | ir->polling = 50; // ms | 309 | ir->polling = 50; // ms |
310 | break; | 310 | break; |
311 | case BTTV_BOARD_ASKEY_CPH03X: | ||
311 | case BTTV_BOARD_CONCEPTRONIC_CTVFMI2: | 312 | case BTTV_BOARD_CONCEPTRONIC_CTVFMI2: |
312 | case BTTV_BOARD_CONTVFMI: | 313 | case BTTV_BOARD_CONTVFMI: |
313 | ir_codes = ir_codes_pixelview; | 314 | ir_codes = ir_codes_pixelview; |