]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wsa881x: mark read_only_wordlength flag
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 14 Apr 2020 11:03:47 +0000 (12:03 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 14 Apr 2020 14:45:28 +0000 (15:45 +0100)
commitfb68e4ae7fb31707cd3195f737f56d492706510b
tree8a40ecae3c310c8603ee09d7f8a270d438977dd5
parent2ca3aa2d5de4ef036a23ac6f9ab86d31c214879c
ASoC: wsa881x: mark read_only_wordlength flag

WSA881x works in PDM mode so the wordlength is fixed, which also makes
the only field "WordLength" in DPN_BlockCtrl1 register a read-only.
Writing to this register will throw up errors with Qualcomm Controller.
So use ro_blockctrl1_reg flag to mark this field as read-only so that
core will not write to this register.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20200414110347.23829-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wsa881x.c