]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: qcom: apq8016_sbc: Allow routing audio through QDSP6
authorStephan Gerhold <stephan@gerhold.net>
Thu, 2 Dec 2021 14:55:05 +0000 (15:55 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 13 Dec 2021 22:44:02 +0000 (22:44 +0000)
commit4f67bcba78675488d0ee4950eceac6ed4bbb03cf
treedbb53157315acca8a2f4e685c756ce829f19efce
parent35c8e752e0c44bc96187de6e586b1471b16d04c8
ASoC: qcom: apq8016_sbc: Allow routing audio through QDSP6

The apq8016-sbc-sndcard is designed to be used with the LPASS drivers
(bypassing the combined audio/modem DSP in MSM8916/APQ8016).
Make it possible to use QDSP6 audio instead for the msm8916-qdsp6-sndcard.

This only requires adding some additional hooks that set up the DPCM
backends correctly. Similar code is already used in drivers for newer
SoCs such as apq8096.c, sdm845.c and sm8250.c.

A slightly different initialization sequence is used for the apq8016-sbc
and msm8916-qdsp6 sound card by defining the apq8016_sbc_add_ops()
function as device match data.

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20211202145505.58852-6-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/apq8016_sbc.c