ASoC: dmaengine_pcm: Allow passing component name via config
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Tue, 19 Mar 2024 08:22:36 +0000 (10:22 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 25 Mar 2024 00:49:47 +0000 (00:49 +0000)
commitcee28113db17f0de58df0eaea4e2756c404ee01f
treee5441b1e375b41a09731190a67e1be544177f8f0
parent4cece764965020c22cff7665b18a012006359095
ASoC: dmaengine_pcm: Allow passing component name via config

At the moment we cannot instantiate two dmaengine_pcms with the same
parent device, as the components will be named the same, leading to
conflicts.

Add 'name' field to the snd_dmaengine_pcm_config, and use that (if
defined) as the component name instead of deriving the component name
from the device.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://msgid.link/r/20240319-xilinx-dp-audio-v2-1-92d6d3a7ca7e@ideasonboard.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/dmaengine_pcm.h
sound/soc/soc-core.c
sound/soc/soc-generic-dmaengine-pcm.c