ASoC: Intel: avs: Store pointer to link_stream in dma_data
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 26 Apr 2024 09:57:32 +0000 (11:57 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Apr 2024 15:09:51 +0000 (00:09 +0900)
commitcdcb770a60e8e6b9fbb737ebe21b2daadaba1744
tree61ee8d594fd0afe5a77e6ee382f186eea358a8a3
parent0f8843ca4f6cbf0efb8c2d5516a3b92fb2771a04
ASoC: Intel: avs: Store pointer to link_stream in dma_data

While the HDAudio codec driver expectations must be met - store valid
pointer to HDAudio LINK stream in substream->runtime->private_data - the
code is more readable and easier to maintain if dma_data stores pointers
to both HOST and LINK stream.

DAI BE operations can refer to the LINK stream with data->link_stream,
similarly to how DAI FE operations access the HOST stream with
data->host_stream.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20240426095733.3946951-8-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/pcm.c