diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2008-03-29 20:37:01 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:56 -0400 |
commit | 58e6f95e613b37372a58fd504646ae1b1964c2ed (patch) | |
tree | 473c1ecb2fab26607bbd44b60e34e02a7493d104 /drivers/media/dvb/dvb-usb/dib0700.h | |
parent | 6ca8f0b97473dcef3a754bab5239dcfcdd00b244 (diff) |
V4L/DVB (7474): support key repeat with dib0700 ir receiver
This patch enables support for repeating last event when a key is holded
down with dib0700 devices. It works with rc5 and nec remotes.
It also fixes an annoying bug that floods kernel log with "Unknown key"
messages after each keypress. This happened because the driver was not
resetting infrared register after each poll so it kept polling last key
even if nothing was being pressed. Fixing this, (calling rc_setup after
each poll), permits to implement key repeat.
Signed-off-by: Filippo Argiolas <filippo.argiolas at gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dib0700.h')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dib0700.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/dib0700.h b/drivers/media/dvb/dvb-usb/dib0700.h index 4a903ea95896..66d4dc6ba46f 100644 --- a/drivers/media/dvb/dvb-usb/dib0700.h +++ b/drivers/media/dvb/dvb-usb/dib0700.h | |||
@@ -37,6 +37,7 @@ struct dib0700_state { | |||
37 | u8 channel_state; | 37 | u8 channel_state; |
38 | u16 mt2060_if1[2]; | 38 | u16 mt2060_if1[2]; |
39 | u8 rc_toggle; | 39 | u8 rc_toggle; |
40 | u8 rc_counter; | ||
40 | u8 is_dib7000pc; | 41 | u8 is_dib7000pc; |
41 | }; | 42 | }; |
42 | 43 | ||
@@ -44,12 +45,15 @@ extern int dib0700_set_gpio(struct dvb_usb_device *, enum dib07x0_gpios gpio, u8 | |||
44 | extern int dib0700_ctrl_clock(struct dvb_usb_device *d, u32 clk_MHz, u8 clock_out_gp3); | 45 | extern int dib0700_ctrl_clock(struct dvb_usb_device *d, u32 clk_MHz, u8 clock_out_gp3); |
45 | extern int dib0700_ctrl_rd(struct dvb_usb_device *d, u8 *tx, u8 txlen, u8 *rx, u8 rxlen); | 46 | extern int dib0700_ctrl_rd(struct dvb_usb_device *d, u8 *tx, u8 txlen, u8 *rx, u8 rxlen); |
46 | extern int dib0700_download_firmware(struct usb_device *udev, const struct firmware *fw); | 47 | extern int dib0700_download_firmware(struct usb_device *udev, const struct firmware *fw); |
48 | extern int dib0700_rc_setup(struct dvb_usb_device *d); | ||
47 | extern int dib0700_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff); | 49 | extern int dib0700_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff); |
48 | extern struct i2c_algorithm dib0700_i2c_algo; | 50 | extern struct i2c_algorithm dib0700_i2c_algo; |
49 | extern int dib0700_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props, | 51 | extern int dib0700_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props, |
50 | struct dvb_usb_device_description **desc, int *cold); | 52 | struct dvb_usb_device_description **desc, int *cold); |
51 | 53 | ||
52 | extern int dib0700_device_count; | 54 | extern int dib0700_device_count; |
55 | extern int dvb_usb_dib0700_ir_proto; | ||
53 | extern struct dvb_usb_device_properties dib0700_devices[]; | 56 | extern struct dvb_usb_device_properties dib0700_devices[]; |
54 | extern struct usb_device_id dib0700_usb_id_table[]; | 57 | extern struct usb_device_id dib0700_usb_id_table[]; |
58 | |||
55 | #endif | 59 | #endif |