diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 12:35:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 12:35:11 -0400 |
commit | 0851668fdd97e526b2a41f794b785c204dd3d3e0 (patch) | |
tree | 4ef7c20a8be8393006c6fe9627eb29dd30877d61 /drivers/media/video/saa7134/saa7134-input.c | |
parent | 00ebb6382b8d9c7c15b5f8ad230670d8161d38dd (diff) | |
parent | 7655e594945289b418af39f6669fea4666a7b520 (diff) |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (505 commits)
[media] af9015: Fix max I2C message size when used with tda18271
[media] IR: initialize ir_raw_event in few more drivers
[media] Guard a divide in v4l1 compat layer
[media] imon: fix nomouse modprobe option
[media] imon: remove redundant change_protocol call
[media] imon: fix my egregious brown paper bag w/rdev/idev split
[media] cafe_ccic: Configure ov7670 correctly
[media] ov7670: allow configuration of image size, clock speed, and I/O method
[media] af9015: support for DigitalNow TinyTwin v3 [1f4d:9016]
[media] af9015: map DigitalNow TinyTwin v2 remote
[media] DigitalNow TinyTwin remote controller
[media] af9015: RC fixes and improvements
videodev2.h.xml: Update to reflect the latest changes at videodev2.h
[media] v4l: document new Bayer and monochrome pixel formats
[media] DocBook/v4l: Add missing formats used on gspca cpia1 and sn9c2028
[media] firedtv: add parameter to fake ca_system_ids in CA_INFO
[media] tm6000: fix a macro coding style issue
tm6000: Remove some ugly debug code
[media] Nova-S-Plus audio line input
[media] [RFC,1/1] V4L2: Use new CAP bits in existing RDS capable drivers
...
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-input.c')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-input.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c index 0b336ca6d55b..46d31dfca7a3 100644 --- a/drivers/media/video/saa7134/saa7134-input.c +++ b/drivers/media/video/saa7134/saa7134-input.c | |||
@@ -429,7 +429,7 @@ static void saa7134_input_timer(unsigned long data) | |||
429 | mod_timer(&ir->timer, jiffies + msecs_to_jiffies(ir->polling)); | 429 | mod_timer(&ir->timer, jiffies + msecs_to_jiffies(ir->polling)); |
430 | } | 430 | } |
431 | 431 | ||
432 | void ir_raw_decode_timer_end(unsigned long data) | 432 | static void ir_raw_decode_timer_end(unsigned long data) |
433 | { | 433 | { |
434 | struct saa7134_dev *dev = (struct saa7134_dev *)data; | 434 | struct saa7134_dev *dev = (struct saa7134_dev *)data; |
435 | struct card_ir *ir = dev->remote; | 435 | struct card_ir *ir = dev->remote; |
@@ -550,7 +550,7 @@ static void saa7134_ir_close(void *priv) | |||
550 | } | 550 | } |
551 | 551 | ||
552 | 552 | ||
553 | int saa7134_ir_change_protocol(void *priv, u64 ir_type) | 553 | static int saa7134_ir_change_protocol(void *priv, u64 ir_type) |
554 | { | 554 | { |
555 | struct saa7134_dev *dev = priv; | 555 | struct saa7134_dev *dev = priv; |
556 | struct card_ir *ir = dev->remote; | 556 | struct card_ir *ir = dev->remote; |
@@ -772,8 +772,10 @@ int saa7134_input_init1(struct saa7134_dev *dev) | |||
772 | case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA: | 772 | case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA: |
773 | case SAA7134_BOARD_ASUSTeK_P7131_ANALOG: | 773 | case SAA7134_BOARD_ASUSTeK_P7131_ANALOG: |
774 | ir_codes = RC_MAP_ASUS_PC39; | 774 | ir_codes = RC_MAP_ASUS_PC39; |
775 | mask_keydown = 0x0040000; | 775 | mask_keydown = 0x0040000; /* Enable GPIO18 line on both edges */ |
776 | rc5_gpio = 1; | 776 | mask_keyup = 0x0040000; |
777 | mask_keycode = 0xffff; | ||
778 | raw_decode = 1; | ||
777 | break; | 779 | break; |
778 | case SAA7134_BOARD_ENCORE_ENLTV: | 780 | case SAA7134_BOARD_ENCORE_ENLTV: |
779 | case SAA7134_BOARD_ENCORE_ENLTV_FM: | 781 | case SAA7134_BOARD_ENCORE_ENLTV_FM: |
@@ -959,6 +961,11 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev) | |||
959 | dev->init_data.name = "MSI TV@nywhere Plus"; | 961 | dev->init_data.name = "MSI TV@nywhere Plus"; |
960 | dev->init_data.get_key = get_key_msi_tvanywhere_plus; | 962 | dev->init_data.get_key = get_key_msi_tvanywhere_plus; |
961 | dev->init_data.ir_codes = RC_MAP_MSI_TVANYWHERE_PLUS; | 963 | dev->init_data.ir_codes = RC_MAP_MSI_TVANYWHERE_PLUS; |
964 | /* | ||
965 | * MSI TV@nyware Plus requires more frequent polling | ||
966 | * otherwise it will miss some keypresses | ||
967 | */ | ||
968 | dev->init_data.polling_interval = 50; | ||
962 | info.addr = 0x30; | 969 | info.addr = 0x30; |
963 | /* MSI TV@nywhere Plus controller doesn't seem to | 970 | /* MSI TV@nywhere Plus controller doesn't seem to |
964 | respond to probes unless we read something from | 971 | respond to probes unless we read something from |