ASoC: nau8540: Add self recovery to improve capture quility
authorDavid Lin <CTLIN0@nuvoton.com>
Wed, 8 Nov 2023 06:16:59 +0000 (14:16 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 8 Nov 2023 13:21:05 +0000 (13:21 +0000)
commita60a609b7f548050d1e84c7aa1c0a57d5d7e22d5
tree96c53f9d76f7f6dbb825ce6e4e5f87c080712904
parent45f2f28bd498fb697d07a38775d55f0f50fee5ca
ASoC: nau8540: Add self recovery to improve capture quility

Reading the peak data to detect abnormal data in the ADC channel.
If abnormal data occurs, the driver takes recovery actions to
refresh the ADC channel.

Signed-off-by: David Lin <CTLIN0@nuvoton.com>
Link: https://lore.kernel.org/r/20231108061658.1265065-1-CTLIN0@nuvoton.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8540.c
sound/soc/codecs/nau8540.h