diff options
| author | 2022-09-06 18:01:04 +0100 | |
|---|---|---|
| committer | 2022-09-23 14:25:01 +0100 | |
| commit | 1c6a7f5250ce81f11a248f9bf88fdbca8b6b0b5d (patch) | |
| tree | 83814801cb7afaf738c33d4fa861438a5adf4b50 /lib/math/git:/ssh:/git@git.zx2c4.com | |
| parent | ASoC: codecs: tx-macro: handle swr_reset correctly (diff) | |
| download | linux-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 'lib/math/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
