Skip to content

Commit 325735e

Browse files
jimxbj-dottiwai
authored andcommitted
ALSA: hda/tas2781: Fix index issue in tas2781 hda SPI driver
Correct wrong mask for device index. Signed-off-by: Baojun Xu <baojun.xu@ti.com> Fixes: bb5f86e ("ALSA: hda/tas2781: Add tas2781 hda SPI driver") Link: https://patch.msgid.link/20250214013021.6072-1-baojun.xu@ti.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent c5a9df9 commit 325735e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sound/pci/hda/tas2781_spi_fwlib.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// TAS2781 HDA SPI driver
44
//
5-
// Copyright 2024 Texas Instruments, Inc.
5+
// Copyright 2024-2025 Texas Instruments, Inc.
66
//
77
// Author: Baojun Xu <baojun.xu@ti.com>
88

@@ -771,19 +771,19 @@ static int tasdevice_process_block(void *context, unsigned char *data,
771771
switch (subblk_typ) {
772772
case TASDEVICE_CMD_SING_W:
773773
subblk_offset = tasdevice_single_byte_wr(tas_priv,
774-
dev_idx & 0x4f, data, sublocksize);
774+
dev_idx & 0x3f, data, sublocksize);
775775
break;
776776
case TASDEVICE_CMD_BURST:
777777
subblk_offset = tasdevice_burst_wr(tas_priv,
778-
dev_idx & 0x4f, data, sublocksize);
778+
dev_idx & 0x3f, data, sublocksize);
779779
break;
780780
case TASDEVICE_CMD_DELAY:
781781
subblk_offset = tasdevice_delay(tas_priv,
782-
dev_idx & 0x4f, data, sublocksize);
782+
dev_idx & 0x3f, data, sublocksize);
783783
break;
784784
case TASDEVICE_CMD_FIELD_W:
785785
subblk_offset = tasdevice_field_wr(tas_priv,
786-
dev_idx & 0x4f, data, sublocksize);
786+
dev_idx & 0x3f, data, sublocksize);
787787
break;
788788
default:
789789
subblk_offset = 2;

0 commit comments

Comments
 (0)