From: James Hogan Date: Mon, 20 Feb 2012 09:13:54 +0000 (-0300) Subject: [media] media: ir-sony-decoder: 15bit function decode fix X-Git-Tag: v3.4-rc1~110^2^2~104 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec9ee8e2ddb11deaf2b8c8fc703a86a8f815e64f;p=pandora-kernel.git [media] media: ir-sony-decoder: 15bit function decode fix The raw Sony IR decoder decodes 15bit messages slightly incorrectly. To decode the function number, it shifts the bits right by 7 so that the function is in bits 7:1, masks with 0xFD (0b11111101), and does an 8 bit reverse so it ends up in bits 6:0. The mask should be 0xFE to correspond with bits 7:1 (0b11111110). The old mask had the effect of dropping the MSB of the function number from bit 6, and leaving the LSB of the device number in bit 7. Signed-off-by: James Hogan Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed