diff options
author | Gergo Koteles <soyer@irl.hu> | 2024-01-08 22:16:46 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-01-09 15:13:09 +0100 |
commit | dcaca1b5f0d47f4ed59f606795df531cc8a2d7d2 (patch) | |
tree | 3d0a5ecaeed15ab949c7586396f8efed205a29a4 /sound | |
parent | 6b3d14b7f9b1acaf7303d8499836bf78ee9c470c (diff) | |
download | linux-stable-dcaca1b5f0d47f4ed59f606795df531cc8a2d7d2.tar.gz linux-stable-dcaca1b5f0d47f4ed59f606795df531cc8a2d7d2.tar.bz2 linux-stable-dcaca1b5f0d47f4ed59f606795df531cc8a2d7d2.zip |
ALSA: hda/tas2781: annotate calibration data endianness
Sparse reports an endian mismatch.
The amplifier expects the calibration data as big-endian.
Use the __be32 type to express endianness better.
Fixes: c3ca4458cc2f ("ALSA: hda/tas2781: add TAS2563 support for 14ARB7")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202401072137.Oc7pQgRW-lkp@intel.com/
Signed-off-by: Gergo Koteles <soyer@irl.hu>
Link: https://lore.kernel.org/r/3852ff28ea7d5d8f2086d8dd78aeff8d1d984991.1704748435.git.soyer@irl.hu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/tas2781_hda_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c index 4805cf0b6480..2dd809de62e5 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -424,8 +424,8 @@ static const struct snd_kcontrol_new tas2781_dsp_conf_ctrl = { static void tas2563_apply_calib(struct tasdevice_priv *tas_priv) { - unsigned int data; int offset = 0; + __be32 data; int ret; for (int i = 0; i < tas_priv->ndev; i++) { |