aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/adi
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2022-09-06 18:01:04 +0100
committerMark Brown <broonie@kernel.org>2022-09-23 14:25:01 +0100
commit1c6a7f5250ce81f11a248f9bf88fdbca8b6b0b5d (patch)
tree83814801cb7afaf738c33d4fa861438a5adf4b50 /sound/soc/adi
parentASoC: codecs: tx-macro: handle swr_reset correctly (diff)
downloadlinux-dev-1c6a7f5250ce81f11a248f9bf88fdbca8b6b0b5d.tar.xz
linux-dev-1c6a7f5250ce81f11a248f9bf88fdbca8b6b0b5d.zip
ASoC: codecs: tx-macro: fix active_decimator array
currently active_decimator[] is unsigned long however we store negative values when there is no decimator setup -1. This is first bug, and the second bug is that we do not check if the decimator is valid before writing to register using decimator as offset in CDC_TXn_TX_PATH_CTL() Fix these both by making active_decimator as integer array and adding check in tx_macro_digital_mute() before accessing CDC_TXn_TX_PATH_CTL() register. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20220906170112.1984-5-srinivas.kandagatla@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/adi')
0 files changed, 0 insertions, 0 deletions