Merge "ASoC: update token mask for port id in adm callback"

This commit is contained in:
qctecmdr 2021-06-02 10:29:38 -07:00 • committed by Gerrit - the friendly Code Review server
commit 40430de537

View file

@ -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",