[<prev] [next>] [day] [month] [year] [list]
Message-Id: <a6d0c6cf16c9a77b25d2747296b74d3344f81f0a.1545915989.git.ek5.chimenti@gmail.com>
Date: Thu, 27 Dec 2018 14:06:35 +0100
From: Ettore Chimenti <ek5.chimenti@...il.com>
To: unlisted-recipients:; (no To-header on input)
Cc: hverkuil@...all.nl, luca.pisani@...o.org, jose.abreu@...opsys.com,
sean@...s.org, sakari.ailus@...ux.intel.com,
Ettore Chimenti <ek5.chimenti@...il.com>, jacopo@...ndi.org,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] 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@...il.com>
---
drivers/media/platform/seco-cec/seco-cec.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.20.1
Powered by blists - more mailing lists