copier: move free multiple endpoint buffer to dai

Only dai have multiendpoint case, so move it to dai component.

Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
This commit is contained in:
Baofeng Tian 2023-05-25 17:11:58 +08:00 committed by Kai Vehmanen
parent 1a643ca4b0
commit cbba56a121
2 changed files with 3 additions and 3 deletions

View File

@ -178,9 +178,6 @@ static void copier_free(struct comp_dev *dev)
break;
}
if (cd->multi_endpoint_buffer)
buffer_free(cd->multi_endpoint_buffer);
rfree(cd);
rfree(dev);
}

View File

@ -290,6 +290,9 @@ void copier_dai_free(struct copier_data *cd)
dai_zephyr_free(cd->dd[i]);
rfree(cd->dd[i]);
}
/* only dai have multi endpoint case */
if (cd->multi_endpoint_buffer)
buffer_free(cd->multi_endpoint_buffer);
}
int copier_dai_prepare(struct comp_dev *dev, struct copier_data *cd)