Commit 88903a1a authored by Ettore Chimenti's avatar Ettore Chimenti Committed by Mauro Carvalho Chehab
Browse files

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: default avatarEttore Chimenti <ek5.chimenti@gmail.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent c54dbfcd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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