ALSA: hda/tas2781: Use correct endian conversion
authorTakashi Iwai <tiwai@suse.de>
Wed, 14 Aug 2024 10:04:59 +0000 (12:04 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Aug 2024 14:58:26 +0000 (16:58 +0200)
commit829e2a23121fb36ee30ea5145c2a85199f68e2c8
treee0cc03ed35e7034cb6f1ab852fde308e7c23a471
parentc286f204ce6ba7b48e3dcba53eda7df8eaa64dd9
ALSA: hda/tas2781: Use correct endian conversion

The data conversion is done rather by a wrong function.  We convert to
BE32, not from BE32.  Although the end result must be same, this was
complained by the compiler.

Fix the code again and align with another similar function
tas2563_apply_calib() that does already right.

Fixes: 3beddef84d90 ("ALSA: hda/tas2781: fix wrong calibrated data order")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202408141630.DiDUB8Z4-lkp@intel.com/
Link: https://patch.msgid.link/20240814100500.1944-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/tas2781_hda_i2c.c