]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codecs: lpass-wsa-macro: Do not hard-code dai in VI mixer
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 23 Jul 2024 14:46:07 +0000 (16:46 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Jul 2024 00:18:39 +0000 (01:18 +0100)
commitb3f35bae68c0ff9b9339b819ec5f5f341d798bbe
tree4cad977ff388ced9890fabc86f2dc434376f5092
parent3ff810b9bebe5578a245cfa97c252ab602e703f1
ASoC: codecs: lpass-wsa-macro: Do not hard-code dai in VI mixer

The wsa_macro_vi_feed_mixer_put() callback for setting VI feedback mixer
value could be used for different DAIs (planned in the future CPS DAI),
so make the code a bit more generic by using DAI ID from widget->shift,
instead of hard-coding it.  The get() callback already follows such
convention.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240723144607.123240-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-wsa-macro.c