]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit0f2a3b02274c02eb97697c4d89c019d1d21ac225
tree8a40ecae3c310c8603ee09d7f8a270d438977dd5
parentd0c56b307f37fd21e2424d3c210e5d85831dd132
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