]> www.infradead.org Git - users/hch/dma-mapping.git/commit
ASoC: qcom: sc7280: Fix missing Soundwire runtime stream alloc
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 12 Oct 2024 10:11:08 +0000 (12:11 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 22 Oct 2024 20:00:38 +0000 (21:00 +0100)
commitdb7e59e6a39a4d3d54ca8197c796557e6d480b0d
tree4af95865b3148a6e0355e6dd84381ca4af03a6dc
parentb9a8ecf81066e01e8a3de35517481bc5aa0439e5
ASoC: qcom: sc7280: Fix missing Soundwire runtime stream alloc

Commit 15c7fab0e047 ("ASoC: qcom: Move Soundwire runtime stream alloc to
soundcards") moved the allocation of Soundwire stream runtime from the
Qualcomm Soundwire driver to each individual machine sound card driver,
except that it forgot to update SC7280 card.

Just like for other Qualcomm sound cards using Soundwire, the card
driver should allocate and release the runtime.  Otherwise sound
playback will result in a NULL pointer dereference or other effect of
uninitialized memory accesses (which was confirmed on SDM845 having
similar issue).

Cc: stable@vger.kernel.org
Cc: Alexey Klimov <alexey.klimov@linaro.org>
Cc: Steev Klimaszewski <steev@kali.org>
Fixes: 15c7fab0e047 ("ASoC: qcom: Move Soundwire runtime stream alloc to soundcards")
Link: https://lore.kernel.org/r/20241010054109.16938-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20241012101108.129476-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/Kconfig
sound/soc/qcom/sc7280.c