[PATCH v2 0/2] ASoC: tas27{64,70}: Fixes for hwmon temperature readout

From: James Calligeros

Date: Sun May 03 2026 - 08:29:33 EST


Hi folks,

This series makes some fixes to the hwmon temperature reading
functionality added as part of [1].

- The arithmetic for TAS2770 was incorrect, leading to readings
which deviated from the true value sampled by the ADC.
- TAS2764 was returning the cached value for each read after the
first register sampling.
- Both chips were returning nonsense values before the ADC was
fully powered up, causing issues with some monitoring software.

Regards,
James

[1]: https://lore.kernel.org/all/20250406-apple-codec-changes-v5-0-50a00ec850a3@xxxxxxxxx/

Signed-off-by: James Calligeros <jcalligeros99@xxxxxxxxx>
---
Changes in v2:
- Drop applied commits
- Respect non-ENODATA error codes when checking for a fault condition
- Link to v1: https://patch.msgid.link/20260425-tas27xx-hwmon-fixes-v1-0-83c13b8e8f54@xxxxxxxxx

To: Shenghao Ding <shenghao-ding@xxxxxx>
To: Kevin Lu <kevin-lu@xxxxxx>
To: Baojun Xu <baojun.xu@xxxxxx>
To: Sen Wang <sen@xxxxxx>
To: Liam Girdwood <lgirdwood@xxxxxxxxx>
To: Mark Brown <broonie@xxxxxxxxxx>
To: Jaroslav Kysela <perex@xxxxxxxx>
To: Takashi Iwai <tiwai@xxxxxxxx>
To: James Calligeros <jcalligeros99@xxxxxxxxx>
To: Martin Povišer <povik+lin@xxxxxxxxxxx>
Cc: linux-sound@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx

---
James Calligeros (2):
ASoC: tas2764: Deal with bogus initial temperature register value
ASoC: tas2770: Deal with bogus initial temperature value

sound/soc/codecs/tas2764.c | 35 +++++++++++++++++++------
sound/soc/codecs/tas2770.c | 23 +++++++++++++++-
2 files changed, 49 insertions(+), 9 deletions(-)
---
base-commit: 425b3a9530f53cfa5f156ab69228a5e0b8de1667
change-id: 20260425-tas27xx-hwmon-fixes-fc8540e81950

Best regards,
--
James Calligeros <jcalligeros99@xxxxxxxxx>