mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
soc: swr-mstr: Support to execute commands on command ignore
If the optional commands/registers in soundwire slave(s) are not implemented, then soundwire bus will ignore the corresponding commands and executes the next commands in queue. Change-Id: I24dd929975218a150717f03f5c17c2be173a5005 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
This commit is contained in:
parent
bbcb107778
commit
63f4815535
2 changed files with 10 additions and 0 deletions
|
|
@ -1631,6 +1631,15 @@ static int swrm_master_init(struct swr_mstr_ctrl *swrm)
|
|||
|
||||
swr_master_bulk_write(swrm, reg, value, len);
|
||||
|
||||
/*
|
||||
* For SWR master version 1.5.1, continue
|
||||
* execute on command ignore.
|
||||
*/
|
||||
if (swrm->version == SWRM_VERSION_1_5_1)
|
||||
swr_master_write(swrm, SWRM_CMD_FIFO_CFG_ADDR,
|
||||
(swr_master_read(swrm,
|
||||
SWRM_CMD_FIFO_CFG_ADDR) | 0x80000000));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
#define SWRM_VERSION_1_2 0x01030000
|
||||
#define SWRM_VERSION_1_3 0x01040000
|
||||
#define SWRM_VERSION_1_5 0x01050000
|
||||
#define SWRM_VERSION_1_5_1 0x01050001
|
||||
|
||||
#define SWR_MAX_CH_PER_PORT 8
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue