linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] ALSA: hda/tas2781: Fix the order of TAS2563 calibrated-data
@ 2025-08-31 12:43 Shenghao Ding
  2025-09-01  6:18 ` Gergo Koteles
  0 siblings, 1 reply; 3+ messages in thread
From: Shenghao Ding @ 2025-08-31 12:43 UTC (permalink / raw)
  To: tiwai
  Cc: broonie, andriy.shevchenko, 13564923607, 13916275206, alsa-devel,
	linux-kernel, baojun.xu, Baojun.Xu, Shenghao Ding

A bug reported by one of my customers that the order of TAS2563
calibrated-data is incorrect, the correct way is to move R0_Low_%d
and insert it between R0_%d and InvR0_%d.

Fixes: 4fe238513407 ("ALSA: hda/tas2781: Move and unified the calibrated-data getting function for SPI and I2C into the tas2781_hda lib")
Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
---
 sound/hda/codecs/side-codecs/tas2781_hda_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/hda/codecs/side-codecs/tas2781_hda_i2c.c b/sound/hda/codecs/side-codecs/tas2781_hda_i2c.c
index dbd71e173119..853ff5d87966 100644
--- a/sound/hda/codecs/side-codecs/tas2781_hda_i2c.c
+++ b/sound/hda/codecs/side-codecs/tas2781_hda_i2c.c
@@ -313,7 +313,7 @@ static int tas2563_save_calibration(struct tas2781_hda *h)
 {
 	efi_guid_t efi_guid = tasdev_fct_efi_guid[LENOVO];
 	char *vars[TASDEV_CALIB_N] = {
-		"R0_%d", "InvR0_%d", "R0_Low_%d", "Power_%d", "TLim_%d"
+		"R0_%d", "R0_Low_%d", "InvR0_%d", "Power_%d", "TLim_%d"
 	};
 	efi_char16_t efi_name[TAS2563_CAL_VAR_NAME_MAX];
 	unsigned long max_size = TAS2563_CAL_DATA_SIZE;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] ALSA: hda/tas2781: Fix the order of TAS2563 calibrated-data
  2025-08-31 12:43 [PATCH v1] ALSA: hda/tas2781: Fix the order of TAS2563 calibrated-data Shenghao Ding
@ 2025-09-01  6:18 ` Gergo Koteles
  2025-09-01  6:55   ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Gergo Koteles @ 2025-09-01  6:18 UTC (permalink / raw)
  To: Shenghao Ding, tiwai
  Cc: broonie, andriy.shevchenko, 13564923607, 13916275206, alsa-devel,
	linux-kernel, baojun.xu, Baojun.Xu

Hi Shenghao,

On Sun, 2025-08-31 at 20:43 +0800, Shenghao Ding wrote:
> A bug reported by one of my customers that the order of TAS2563
> calibrated-data is incorrect, the correct way is to move R0_Low_%d
> and insert it between R0_%d and InvR0_%d.
> 

A similar fix is ​​already in Takashi's tree for tas2563.
https://lore.kernel.org/all/20250829160450.66623-1-soyer@irl.hu/

But I think, tas2781 also needs one for the order and one for the
endianness.
I left it out because it's easier for you with documentation.

Gergo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] ALSA: hda/tas2781: Fix the order of TAS2563 calibrated-data
  2025-09-01  6:18 ` Gergo Koteles
@ 2025-09-01  6:55   ` Takashi Iwai
  0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2025-09-01  6:55 UTC (permalink / raw)
  To: Gergo Koteles
  Cc: Shenghao Ding, broonie, andriy.shevchenko, 13564923607,
	13916275206, alsa-devel, linux-kernel, baojun.xu, Baojun.Xu

On Mon, 01 Sep 2025 08:18:06 +0200,
Gergo Koteles wrote:
> 
> Hi Shenghao,
> 
> On Sun, 2025-08-31 at 20:43 +0800, Shenghao Ding wrote:
> > A bug reported by one of my customers that the order of TAS2563
> > calibrated-data is incorrect, the correct way is to move R0_Low_%d
> > and insert it between R0_%d and InvR0_%d.
> > 
> 
> A similar fix is ​​already in Takashi's tree for tas2563.
> https://lore.kernel.org/all/20250829160450.66623-1-soyer@irl.hu/

Right, I already took Gergo's fix on for-linus branch.
Likely included in 6.17-rc5.

> But I think, tas2781 also needs one for the order and one for the
> endianness.
> I left it out because it's easier for you with documentation.

If anything is missing for 6.17, please submit the fix ASAP.


thanks,

Takashi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-01  6:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-31 12:43 [PATCH v1] ALSA: hda/tas2781: Fix the order of TAS2563 calibrated-data Shenghao Ding
2025-09-01  6:18 ` Gergo Koteles
2025-09-01  6:55   ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).