summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAlvin Šipraga <alvin.sipraga@analog.com>2026-10-06 14:55:57 +0200
committerMark Brown <broonie@kernel.org>2026-10-06 17:21:05 +0200
commit36d0e05815ce84266c8b138cd4f84c3feeaf15f4 (patch)
tree793be2ea38bc3992aaf92ee7b54e064e403170c8 /tools/lib/python
parent64dd172bbffe6135d79a06ddad53dd2da4d8bd62 (diff)
downloadlinux-next-36d0e05815ce84266c8b138cd4f84c3feeaf15f4.tar.gz
linux-next-36d0e05815ce84266c8b138cd4f84c3feeaf15f4.zip
ASoC: adau1372: fix invalid default state of output ASRC and DAC muxes
The chip has strange power-on reset values for the registers that control the output ASRC and DAC source muxes - the values are actually marked "Reserved" in the datasheet [1]. This means that until the underlying kcontrols are modified, the codec will not function as expected. The registers in question are: register / field reset value valid values ASRCO_SOURCE_0_1 0x10 ASRC_OUT_SOURCE0 0 4 .. 16 ASRC_OUT_SOURCE1 1 4 .. 16 ASRCO_SOURCE_2_3 0x10 ASRC_OUT_SOURCE2 2 4 .. 16 ASRC_OUT_SOURCE3 3 4 .. 16 DAC_SOURCE_0_1 0x10 DAC_SOURCE_0 0 12 .. 13 DAC_SOURCE_1 1 12 .. 13 Set some sane defaults during the driver probe: ADC Decimator0 -> Output ASRC0 ADC Decimator1 -> Output ASRC1 ADC Decimator2 -> Output ASRC2 ADC Decimator3 -> Output ASRC3 Input ASRC0 -> DAC0 Input ASRC1 -> DAC1 With this, the chip will behave as advertised by the default kcontrol state exposed by the driver. [1] https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1372.pdf Fixes: 6cd4c6459e47 ("ASoC: Add ADAU1372 audio CODEC support") Signed-off-by: Alvin Šipraga <alvin.sipraga@analog.com> Acked-by: Nuno Sá <nuno.sa@analog.com> Link: https://patch.msgid.link/20261006-asoc-adau1372-fixes-v1-2-599cc17fb5f6@analog.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions