mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue