]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: nau8325: Add software reset during probe
authorNeo Chang <YLCHANG2@nuvoton.com>
Wed, 8 Apr 2026 05:26:39 +0000 (13:26 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 8 Apr 2026 12:01:06 +0000 (13:01 +0100)
commitf4c90fb761f696ebbcf1e8fb7f83d83cbb30cb0c
tree695677571c715117e86e8c81a7a0ae97bc622323
parentc5408d818316061d6063c11a4f47f1ba25a3a708
ASoC: nau8325: Add software reset during probe

Currently, the driver only performs a hardware reset during the I2C probe
sequence. To ensure all internal states of the codec are properly cleared
without affecting the configuration registers, a software reset is also
required.

According to the hardware specification, writing to the Software Reset
register (R01) twice will reset all internal states safely.

This patch adds the nau8325_software_reset() function, executes it right
after the hardware reset in the probe function, and marks the R01 register
as writeable in the regmap configuration.

Signed-off-by: Neo Chang <YLCHANG2@nuvoton.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20260408052639.187149-1-YLCHANG2@nuvoton.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8325.c