diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-12 09:41:29 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-12 09:41:29 -0200 |
commit | ae39f27bbdb9e06fee01813e98aef9499e409e59 (patch) | |
tree | c6839da4916b7a0ac2f18c6b9e37d7dab3a68a54 /linux/drivers/media/video/em28xx/em28xx-video.c | |
parent | 9fb707ad2afd41671c63bd89eed17ee20d37546e (diff) | |
download | mediapointer-dvb-s2-ae39f27bbdb9e06fee01813e98aef9499e409e59.tar.gz mediapointer-dvb-s2-ae39f27bbdb9e06fee01813e98aef9499e409e59.tar.bz2 |
em28xx: Properly implement poll support for IR's
From: Mauro Carvalho Chehab <mchehab@redhat.com>
The first em28xx were based on i2c IR's. However, some newer designs
are coming with a polling-based IR. Those are done by reading a register
set at em28xx.
This patch adds core polling support for those devices. Later patches will
add support for some device-specific IR's.
This patch adds the same basic IR polling code used by bttv, cx88 and saa7134, and
shares the common getkey masks defined at ir-common.
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/em28xx/em28xx-video.c')
-rw-r--r-- | linux/drivers/media/video/em28xx/em28xx-video.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-video.c b/linux/drivers/media/video/em28xx/em28xx-video.c index 19684ad45..09886d567 100644 --- a/linux/drivers/media/video/em28xx/em28xx-video.c +++ b/linux/drivers/media/video/em28xx/em28xx-video.c @@ -1659,6 +1659,10 @@ static void em28xx_release_resources(struct em28xx *dev) list_del(&dev->devlist); if (dev->sbutton_input_dev) em28xx_deregister_snapshot_button(dev); + + if (dev->ir) + em28xx_ir_fini(dev); + if (dev->radio_dev) { if (-1 != dev->radio_dev->minor) video_unregister_device(dev->radio_dev); |