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

James Calligeros posted 2 patches 1 month, 1 week ago
sound/soc/codecs/tas2764.c | 35 +++++++++++++++++++------
sound/soc/codecs/tas2770.c | 23 +++++++++++++++-
2 files changed, 49 insertions(+), 9 deletions(-)
[PATCH v2 0/2] ASoC: tas27{64,70}: Fixes for hwmon temperature readout
Posted by James Calligeros 1 month, 1 week 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>
---
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@gmail.com

To: Shenghao Ding <shenghao-ding@ti.com>
To: Kevin Lu <kevin-lu@ti.com>
To: Baojun Xu <baojun.xu@ti.com>
To: Sen Wang <sen@ti.com>
To: Liam Girdwood <lgirdwood@gmail.com>
To: Mark Brown <broonie@kernel.org>
To: Jaroslav Kysela <perex@perex.cz>
To: Takashi Iwai <tiwai@suse.com>
To: James Calligeros <jcalligeros99@gmail.com>
To: Martin Povišer <povik+lin@cutebit.org>
Cc: linux-sound@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

---
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@gmail.com>

Re: [PATCH v2 0/2] ASoC: tas27{64,70}: Fixes for hwmon temperature readout
Posted by Mark Brown 1 month, 1 week ago
On Sun, 03 May 2026 22:23:22 +1000, James Calligeros wrote:
> 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.
> 
> [...]

Applied to

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

Thanks!

[1/2] ASoC: tas2764: Deal with bogus initial temperature register value
      https://git.kernel.org/broonie/misc/c/915f9860fe1c
[2/2] ASoC: tas2770: Deal with bogus initial temperature value
      https://git.kernel.org/broonie/misc/c/d0771f4995d3

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