Skip to content

Commit dcaca1b

Browse files
soyersoyertiwai
authored andcommitted
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: c3ca445 ("ALSA: hda/tas2781: add TAS2563 support for 14ARB7") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Gergo Koteles <[email protected]> Link: https://lore.kernel.org/r/3852ff28ea7d5d8f2086d8dd78aeff8d1d984991.1704748435.git.soyer@irl.hu Signed-off-by: Takashi Iwai <[email protected]>
1 parent 6b3d14b commit dcaca1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/pci/hda/tas2781_hda_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,8 @@ static const struct snd_kcontrol_new tas2781_dsp_conf_ctrl = {
424424

425425
static void tas2563_apply_calib(struct tasdevice_priv *tas_priv)
426426
{
427-
unsigned int data;
428427
int offset = 0;
428+
__be32 data;
429429
int ret;
430430

431431
for (int i = 0; i < tas_priv->ndev; i++) {

0 commit comments

Comments
 (0)