]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: tas2770: Deal with bogus initial temperature value
authorJames Calligeros <jcalligeros99@gmail.com>
Sun, 3 May 2026 12:23:24 +0000 (22:23 +1000)
committerMark Brown <broonie@kernel.org>
Tue, 5 May 2026 01:49:21 +0000 (10:49 +0900)
commitd0771f4995d3285756bf496cf6e346df99481f83
tree61501bf9bde0531ce498b1a4078fe87f37c2018a
parent915f9860fe1c9f7eb6c48c299b2db64fd57ef32f
ASoC: tas2770: Deal with bogus initial temperature value

TAS2770 initialises the temperature readout registers to 0.
This value persists until the chip is fully powered up and
the ADC starts sampling. The ADC then persists the last sampled
temperature during software shutdown.

The ADC should therefore never return 0 in normal operating
conditions, so return -ENODATA and mark it as a fault condition
using HWMON_T_FAULT.

Fixes: ff73e2780169 ("ASoC: tas2770: expose die temp to hwmon")
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2770.c