Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40430de5 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents da560216 1a11bc82
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1597,7 +1597,7 @@ static int32_t adm_callback(struct apr_client_data *data, void *priv)
	adm_callback_debug_print(data);
	adm_callback_debug_print(data);
	if (data->payload_size >= sizeof(uint32_t)) {
	if (data->payload_size >= sizeof(uint32_t)) {
		copp_idx = (data->token) & 0XFF;
		copp_idx = (data->token) & 0XFF;
		port_idx = ((data->token) >> 16) & 0xFF;
		port_idx = ((data->token) >> 16) & 0xFFFF;
		client_id = ((data->token) >> 8) & 0xFF;
		client_id = ((data->token) >> 8) & 0xFF;
		if (port_idx < 0 || port_idx >= AFE_MAX_PORTS) {
		if (port_idx < 0 || port_idx >= AFE_MAX_PORTS) {
			pr_err("%s: Invalid port idx %d token %d\n",
			pr_err("%s: Invalid port idx %d token %d\n",