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

James Calligeros posted 4 patches 1 month, 3 weeks ago
There is a newer version of this series
sound/soc/codecs/tas2764.c | 22 ++++++++++++++--------
sound/soc/codecs/tas2770.c | 13 ++++++++++---
2 files changed, 24 insertions(+), 11 deletions(-)
[PATCH 0/4] ASoC: tas27{64,70}: Fixes for hwmon temperature readout
Posted by James Calligeros 1 month, 3 weeks ago
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@gmail.com/

Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
---
James Calligeros (4):
      ASoC: tas2764: Mark die temp register as volatile
      ASoC: tas2764: Deal with bogus initial temperature register value
      ASoC: tas2770: Fix order of operations for temperature calculation
      ASoC: tas2770: Deal with bogus initial temperature value

 sound/soc/codecs/tas2764.c | 22 ++++++++++++++--------
 sound/soc/codecs/tas2770.c | 13 ++++++++++---
 2 files changed, 24 insertions(+), 11 deletions(-)
---
base-commit: 7a69564045595263837fbd57e9f67e0507b04d8c
change-id: 20260425-tas27xx-hwmon-fixes-fc8540e81950

Best regards,
--  
James Calligeros <jcalligeros99@gmail.com>
Re: (subset) [PATCH 0/4] ASoC: tas27{64,70}: Fixes for hwmon temperature readout
Posted by Mark Brown 1 month, 3 weeks ago
On Sat, 25 Apr 2026 10:44:02 +1000, James Calligeros wrote:
> ASoC: tas27{64,70}: Fixes for hwmon temperature readout
> 
> Hi folks,
> 
> This series makes some fixes to the hwmon temperature reading
> functionality added as part of [1].
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.1

Thanks!

[1/4] ASoC: tas2764: Mark die temp register as volatile
      https://git.kernel.org/broonie/sound/c/4cfb5971c2fb
[3/4] ASoC: tas2770: Fix order of operations for temperature calculation
      https://git.kernel.org/broonie/sound/c/c7ecb6a61908

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark