mirror of https://github.com/thesofproject/sof.git
codec_adapter: cadence: Fix API func search
Existing code returns every time the API function at index 0, which works now because we support only a single API function. But, this will break when patches adding multiple Cadence codec types will be merged. Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
parent
7712d96a18
commit
2b10b49a8e
|
@ -50,7 +50,7 @@ int cadence_codec_init(struct comp_dev *dev)
|
|||
/* Find and assign API function */
|
||||
for (i = 0; i < no_of_api; i++) {
|
||||
if (cadence_api_table[i].id == api_id) {
|
||||
cd->api = cadence_api_table[0].api;
|
||||
cd->api = cadence_api_table[i].api;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue