Added dma configuration parameters to rtd structure.
Moved dma configuration parameters initialization to
hw_params callback.
Removed hard coding in prepare and trigger callbacks.
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@xxxxxxx>
---
v1->v2 : Fixed capture stream wrong channel assignment
added comments in dma trigger api
sound/soc/amd/acp-pcm-dma.c | 103 ++++++++++++++++++--------------------------
sound/soc/amd/acp.h | 5 +++
2 files changed, 48 insertions(+), 60 deletions(-)