summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEttore Chimenti <ek5.chimenti@gmail.com>2018-12-27 16:06:35 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-01-16 19:44:50 +0300
commit88903a1abd00e051f3ddfe7b86949882260ddf86 (patch)
treef56146fc1fdfa969e910948b36f879a6c9d4bbdb
parentc54dbfcda3059c255f335e75a27d7f5c64e6549e (diff)
downloadlinux-88903a1abd00e051f3ddfe7b86949882260ddf86.tar.xz
media: secocec: fix ir address shift
The actual value of the RC5 System Number (address) is stored in the IR_READ_DATA common register masked with 0x1F00 so it have to be shifted by 8 bits. Signed-off-by: Ettore Chimenti <ek5.chimenti@gmail.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--drivers/media/platform/seco-cec/seco-cec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/seco-cec/seco-cec.h b/drivers/media/platform/seco-cec/seco-cec.h
index e632c4a2a044..843de8c7dfd4 100644
--- a/drivers/media/platform/seco-cec/seco-cec.h
+++ b/drivers/media/platform/seco-cec/seco-cec.h
@@ -106,7 +106,7 @@
#define SECOCEC_IR_COMMAND_MASK 0x007F
#define SECOCEC_IR_COMMAND_SHL 0
#define SECOCEC_IR_ADDRESS_MASK 0x1F00
-#define SECOCEC_IR_ADDRESS_SHL 7
+#define SECOCEC_IR_ADDRESS_SHL 8
#define SECOCEC_IR_TOGGLE_MASK 0x8000
#define SECOCEC_IR_TOGGLE_SHL 15