mirror of https://github.com/thesofproject/sof.git
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:
parent
1a643ca4b0
commit
cbba56a121
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue