]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: qcom: x1e80100: Support boards with two speakers
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 23 Oct 2024 12:41:52 +0000 (14:41 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 5 Nov 2024 12:53:26 +0000 (12:53 +0000)
commit159098859bf6d46b34a1e1f7d44d28987b875878
treed4037f34ffe893aa33128ed1c37f659f6417e83e
parent8f5fab5329b7e966344d59fd1c17adbf9f025c52
ASoC: qcom: x1e80100: Support boards with two speakers

Some Qualcomm X1E laptops have only two speakers.  Regardless whether
this sound card driver is suitable for them (we could re-use one for
some older SoC), we should set reasonable channel map depending on the
number of channels, not always 4-speaker setup.

This change is necessary for bringing audio support on Lenovo Thinkpad
T14s with Qualcomm X1E78100 and only two speakers.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20241023124152.130706-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/x1e80100.c