ALSA: hda/tas2781: fix wrong calibrated data order
authorBaojun Xu <baojun.xu@ti.com>
Tue, 13 Aug 2024 04:37:48 +0000 (12:37 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Aug 2024 06:58:42 +0000 (08:58 +0200)
commit3beddef84d90590270465a907de1cfe2539ac70d
tree1a2d2d41f89801208ed627b8608cd34e2518ae1e
parent004eb8ba776ccd3e296ea6f78f7ae7985b12824e
ALSA: hda/tas2781: fix wrong calibrated data order

Wrong calibration data order cause sound too low in some device.
Fix wrong calibrated data order, add calibration data converssion
by get_unaligned_be32() after reading from UEFI.

Fixes: 5be27f1e3ec9 ("ALSA: hda/tas2781: Add tas2781 HDA driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Baojun Xu <baojun.xu@ti.com>
Link: https://patch.msgid.link/20240813043749.108-1-shenghao-ding@ti.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/tas2781_hda_i2c.c