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

Commit d68d6f3f authored by Alexy Joseph's avatar Alexy Joseph
Browse files

ASoC: msm: qdsp6v2: Handle error in eagle driver



ADM returns an error to dts eagle which is not being
handled properly. Fix this by handling the error
returned.

Change-Id: I63d609d7279c072311ce08a187fa93a743b70c47
Signed-off-by: default avatarAlexy Joseph <alexyj@codeaurora.org>
parent 162e9ed4
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -502,10 +502,11 @@ static int _sendcache_post(int port_id, int copp_idx, int topology)
	}

	index = adm_validate_and_get_port_index(port_id);
	if (index < 0)
	if (index < 0) {
		eagle_postcache_err("%s: Invalid port idx %d port_id %#x",
			__func__, index, port_id);
	else
		return -EINVAL;
	}
	eagle_postcache_dbg("%s: valid port idx %d for port_id %#x set to %i",
		__func__, index, port_id, copp_idx);
	_cidx[index] = copp_idx;