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: Alexy Joseph <alexyj@codeaurora.org>
This commit is contained in:
Alexy Joseph 2015-07-10 12:30:22 -07:00 committed by Gerrit - the friendly Code Review server
parent a08cfd699c
commit c1129954e4
1 changed files with 5 additions and 4 deletions

View File

@ -509,12 +509,13 @@ 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
eagle_postcache_dbg("%s: valid port idx %d for port_id %#x set to %i",
__func__, index, port_id, copp_idx);
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;
mask = _get_dev_mask_for_pid(port_id);