mirror of https://github.com/thesofproject/sof.git
copier: Use dai_zephyr_free() for multi endpoint DAIs
In preparation removing the creating of DAI devices for multiple endpoint DAIs, replace the call to the endpoint device's free op with dai_zephyr_free(). Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
parent
c9820ccd47
commit
cbbd3d17b6
|
@ -819,7 +819,9 @@ static void copier_free(struct comp_dev *dev)
|
|||
rfree(cd->dd[0]);
|
||||
} else {
|
||||
for (i = 0; i < cd->endpoint_num; i++) {
|
||||
cd->endpoint[i]->drv->ops.free(cd->endpoint[i]);
|
||||
dai_zephyr_free(cd->dd[i]);
|
||||
rfree(cd->dd[i]);
|
||||
rfree(cd->endpoint[i]);
|
||||
buffer_free(cd->endpoint_buffer[i]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue