]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wcd9335: fix address map representation
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 6 Mar 2020 15:26:33 +0000 (15:26 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 6 Mar 2020 15:50:57 +0000 (15:50 +0000)
commitb8122b237068dd8075e334d1e4efc64000118964
tree99c6b0e3617555207d6800452315bcc697d2822e
parent4ae48b16db75564610ecddbc00e6a4801e396d82
ASoC: wcd9335: fix address map representation

slimbus addresses are 16 bit wide, masking page numbers
to wcd register at offset of 12 will limit the number for pages.
So it becomes impossible to write to page 0x10 registers.
Remove masking 0x800 (slimbus address range) from register address
and making use of window parameters in regmap config should fix it
and also will represent the registers exactly inline with Datasheet.

Remove this unnessary masking and make the registers be inline
with datasheet.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200306152633.25836-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd9335.c
sound/soc/codecs/wcd9335.h