mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
ASoC: update token mask for port id in adm callback
With hs tdm port ids extension, the total port ids exceed 256 and mask 0xFF is not enough to get hs tdm port ids in adm open callback which cause adm open timeout issue. Change-Id: I73f3468677433d060f9585a213dea6828d6e16e1 Signed-off-by: Cong Tang <congt@codeaurora.org>
This commit is contained in:
parent
5d2599a9f0
commit
1a11bc825f
1 changed files with 1 additions and 1 deletions
|
|
@ -1597,7 +1597,7 @@ static int32_t adm_callback(struct apr_client_data *data, void *priv)
|
|||
adm_callback_debug_print(data);
|
||||
if (data->payload_size >= sizeof(uint32_t)) {
|
||||
copp_idx = (data->token) & 0XFF;
|
||||
port_idx = ((data->token) >> 16) & 0xFF;
|
||||
port_idx = ((data->token) >> 16) & 0xFFFF;
|
||||
client_id = ((data->token) >> 8) & 0xFF;
|
||||
if (port_idx < 0 || port_idx >= AFE_MAX_PORTS) {
|
||||
pr_err("%s: Invalid port idx %d token %d\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue