WSL2-Linux-Kernel/sound/soc/qcom
Stephan Gerhold 6fd8d2d275
ASoC: qcom: qdsp6: Move frontend AIFs to q6asm-dai
At the moment it is necessary to set up the DAPM routes between
front-end AIF<->DAI explicitly in the device tree, e.g. using

	audio-routing =
		"MM_DL1", "MultiMedia1 Playback",
		"MM_DL3", "MultiMedia3 Playback",
		"MM_DL4", "MultiMedia4 Playback",
		"MultiMedia2 Capture", "MM_UL2";

This is prone to mistakes and (sadly) there is no clear error if one
of these routes is missing. :(

Actually, this should not be necessary because the ASoC core normally
automatically links AIF<->DAI within snd_soc_dapm_link_dai_widgets().
This is done using the "stname" parameter of SND_SOC_DAPM_AIF_IN/OUT.

For SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
it should create the route from above: MM_DL1 <-> MultiMedia1 Playback.

This does not work at the moment because the AIF widget (MM_DL1)
and the DAI widget (MultiMedia1 Playback) belong to different
DAPM contexts (q6routing / q6asm-dai).

Fix this by declaring the AIF widgets in the same driver as the DAIs
(q6asm-dai). Now the routes above are created automatically
and no longer need to be specified in the device tree.

This is also more consistent with the back-end AIFs which are already
declared in q6afe-dais instead of q6routing. q6routing should only link
the components together using mixers.

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fixes: 2a9e92d371 ("ASoC: qdsp6: q6asm: Add q6asm dai driver")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20201211203255.148246-1-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-01-13 11:36:14 +00:00
..
qdsp6 ASoC: qcom: qdsp6: Move frontend AIFs to q6asm-dai 2021-01-13 11:36:14 +00:00
Kconfig ASoC: qcom: fix QDSP6 dependencies, attempt #3 2020-12-04 23:26:37 +00:00
Makefile ASoC: qcom: sc7180: Add machine driver for sound card registration 2020-10-27 14:05:46 +00:00
apq8016_sbc.c ASoC: qcom: mark OF related data as maybe unused 2020-11-26 13:07:06 +00:00
apq8096.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00
common.c ASoC: qcom: common: Fix refcounting in qcom_snd_parse_of() 2020-11-10 17:28:25 +00:00
common.h ASoC: qcom: remove unused header files from common.h 2018-08-06 12:50:07 +01:00
lpass-apq8016.c ASoC: qcom: mark OF related data as maybe unused 2020-11-26 13:07:06 +00:00
lpass-cpu.c ASoC: qcom: Fix incorrect volatile registers 2020-12-17 14:24:40 +00:00
lpass-hdmi.c ASoC: qcom: fix unsigned int bitwidth compared to less than zero 2020-10-28 21:33:22 +00:00
lpass-hdmi.h ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
lpass-ipq806x.c ASoC: qcom: mark OF related data as maybe unused 2020-11-26 13:07:06 +00:00
lpass-lpaif-reg.h ASoC: qcom: Fix enabling BCLK and LRCLK in LPAIF invalid state 2020-11-23 18:37:34 +00:00
lpass-platform.c ASoC: qcom: Add support for playback recover after resume 2020-12-17 14:24:41 +00:00
lpass-sc7180.c Merge branch 'for-5.10' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.11 2020-11-30 16:05:07 +00:00
lpass.h Merge branch 'for-5.10' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.11 2020-11-30 16:05:07 +00:00
sc7180.c ASoC: qcom: sc7180: fix 32 bit format for adau7002 2020-11-27 14:50:17 +00:00
sdm845.c ASoC: qcom: sdm845: set driver name correctly 2020-10-23 18:28:50 +01:00
sm8250.c ASoC: qcom: sm8250: fix HDMI audio playback 2020-11-20 16:08:38 +00:00
storm.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00