From 1a0d676e282624a9ac1539c90caea055297f1ea5 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 30 Dec 2010 08:01:01 -0300 Subject: [PATCH] --- yaml --- r: 226399 b: refs/heads/master c: b22374544b981b82f7319a02e6b718fc796e9cfa h: refs/heads/master i: 226397: 3555ecbbd2fde41e3a650f164ba33f84bbdef6fd 226395: 30cef43158a49d45df6e51f48b194403d7b3a287 226391: 2c0adc75bce0d4b58d8c4baf61d1fc760212836f 226383: 444ab7909e8a26eadb6b99c33192c7a6f38efb9c 226367: 6bb6b77debfa82ce8bcace6f572244e3762fe93a v: v3 --- [refs] | 2 +- trunk/drivers/media/video/bt8xx/bttv-input.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 1f13f9507ad3..3a183778ae94 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 61ea3aa5bf309333c6655ccef825b4a765bff219 +refs/heads/master: b22374544b981b82f7319a02e6b718fc796e9cfa diff --git a/trunk/drivers/media/video/bt8xx/bttv-input.c b/trunk/drivers/media/video/bt8xx/bttv-input.c index 7f48306133be..97793b960600 100644 --- a/trunk/drivers/media/video/bt8xx/bttv-input.c +++ b/trunk/drivers/media/video/bt8xx/bttv-input.c @@ -354,6 +354,18 @@ static int get_key_pv951(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw) return 0; dprintk(KERN_INFO DEVNAME ": key %02x\n", b); + /* + * NOTE: + * lirc_i2c maps the pv951 code as: + * addr = 0x61D6 + * cmd = bit_reverse (b) + * So, it seems that this device uses NEC extended + * I decided to not fix the table, due to two reasons: + * 1) Without the actual device, this is only a guess; + * 2) As the addr is not reported via I2C, nor can be changed, + * the device is bound to the vendor-provided RC. + */ + *ir_key = b; *ir_raw = b; return 1;