ALSA: hda/tas2781: Fix the order of TAS2563 calibrated-data
Subsystems (2)
Shenghao Ding
maintainerPATCH 1/1 ALSA: hda/tas2781: Fix the order of TAS2563 calibrated-data
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.
--- sound/hda/codecs/side-codecs/tas2781_hda_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/hda/codecs/side-codecs/tas2781_hda_i2c.c +1 -1
@@ -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 ;
Signature · 1 line
2.43.0
Hi Shenghao,
Quoted 4 lines · 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.
A similar fix is already in Takashi's tree for tas2563.
https://lore.kernel.org/all/[email protected]/
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
Quoted 11 lines · Gergo Koteles
Hi Shenghao,
Quoted 4 lines · 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.
A similar fix is already in Takashi's tree for tas2563.
https://lore.kernel.org/all/[email protected]/
Right, I already took Gergo's fix on for-linus branch. Likely included in 6.17-rc5.
Quoted 3 lines
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