thesofproject / sof

Sound Open Firmware
Other
513 stars 302 forks source link

[BUG] dai-zephyr.c: remove DAI driver specific logic from COMP_TRIGGER_RELEASE code #9002

Open kv2019i opened 3 months ago

kv2019i commented 3 months ago

Describe the bug Follow-up to https://github.com/thesofproject/sof/pull/8995

The code on SOF side should not have conditional logic based on DAI type . The DAI interface should abstract the pause/resume behaviour so that SOF side code should be uniform.

Core in question

    if (!(dd->dai->dma_caps & DMA_CAP_HDA))
            audio_stream_reset(&dd->dma_buffer->stream);
lgirdwood commented 2 months ago

@abonislawski @softwarecki fyi - will need to move into Zephyr.