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:
Ranjani Sridharan 2023-05-06 12:41:39 -07:00 committed by Kai Vehmanen
parent c9820ccd47
commit cbbd3d17b6
1 changed files with 3 additions and 1 deletions

View File

@ -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]);
}
}