linux_dsm_epyc7002/sound/soc/qcom
Stephan Gerhold 1b839d3e15
ASoC: qcom: common: Parse auxiliary devices from device tree
In some cases we need to probe additional audio components that do
not appear as part of the DAI links specified in the device tree.
Examples for this are auxiliary devices such as analog amplifiers
or codecs.

The ASoC core provides a way to probe these components by adding
them to snd_soc_card->aux_dev. We can use the snd_soc_of_parse_aux_devs()
function to parse them from the device tree.

As an example for this, some MSM8916 smartphones have an analog
speaker amplifier connected to the HPHR output. With the new property
this can be modelled as follows:

	speaker-amp: audio-amplifier {
		compatible = "simple-audio-amplifier";
		enable-gpios = <&msmgpio 114 GPIO_ACTIVE_HIGH>;
		sound-name-prefix = "Speaker Amp";
	};

	&sound {
		aux-devs = <&speaker_amp>;
		audio-routing = "Speaker Amp IN", "HPHR";
	};

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20200826095141.94017-3-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-09-08 15:37:50 +01:00
..
qdsp6 ASoC: q6asm-dai: add support to copy callback 2020-08-17 18:29:38 +01:00
apq8016_sbc.c ASoC: qcom: apq8016_sbc: Use qcom_snd_parse_of() 2020-07-24 15:01:19 +01:00
apq8096.c ASoC: qcom: Use devm for resource management 2020-07-24 15:01:15 +01:00
common.c ASoC: qcom: common: Parse auxiliary devices from device tree 2020-09-08 15:37:50 +01:00
common.h ASoC: qcom: remove unused header files from common.h 2018-08-06 12:50:07 +01:00
Kconfig Merge series "ASoC: qcom: Add support for SC7180 lpass variant" from Rohit kumar <rohitkr@codeaurora.org>: 2020-08-18 14:52:57 +01:00
lpass-apq8016.c ASoC: qcom: add missing out of memory check on drvdata->clks allocation 2020-08-20 20:30:33 +01:00
lpass-cpu.c ASoC: qcom: lpass-cpu: Use platform_get_resource 2020-08-17 14:39:32 +01:00
lpass-ipq806x.c ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers 2020-08-17 14:39:29 +01:00
lpass-lpaif-reg.h ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers 2020-08-17 14:39:29 +01:00
lpass-platform.c ASoC: qcom: lpass-platform: Use platform_get_irq 2020-08-17 14:39:33 +01:00
lpass-sc7180.c ASoC: qcom: lpass-sc7180: Add platform driver for lpass audio 2020-08-17 14:39:31 +01:00
lpass.h ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers 2020-08-17 14:39:29 +01:00
Makefile ASoC: qcom: lpass-sc7180: Add platform driver for lpass audio 2020-08-17 14:39:31 +01:00
sdm845.c ASoC: qcom: Use devm for resource management 2020-07-24 15:01:15 +01:00
storm.c ASoC: qcom: use asoc_substream_to_rtd() 2020-07-23 19:07:33 +01:00