mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
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>
This commit is contained in:
parent
c54dbfcda3
commit
88903a1abd
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user