mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
FROMGIT: ASoC: qcom: sdm845: Fix array out of range on rx slim channels
WCD934x has only 13 RX SLIM ports however we are setting it as 16
in set_channel_map, this will lead to array out of bounds error!
Orignally caught by enabling USBAN array out of bounds check:
Fixes: 5caf64c633 ("ASoC: qcom: sdm845: add support to DB845c and Lenovo Yoga")
Reported-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210309142129.14182-3-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: Iff65dcb62082807b29b1cbfb098932617a918fb0
(cherry picked from commit 3ed85d1e1aa53db6fa4398846fbd213a7d87ceac
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next)
This commit is contained in:
committed by
Todd Kjos
parent
560455b925
commit
eb59d74b1e
@@ -27,7 +27,7 @@
|
||||
#define SPK_TDM_RX_MASK 0x03
|
||||
#define NUM_TDM_SLOTS 8
|
||||
#define SLIM_MAX_TX_PORTS 16
|
||||
#define SLIM_MAX_RX_PORTS 16
|
||||
#define SLIM_MAX_RX_PORTS 13
|
||||
#define WCD934X_DEFAULT_MCLK_RATE 9600000
|
||||
|
||||
struct sdm845_snd_data {
|
||||
|
||||
Reference in New Issue
Block a user