Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: dice: fix stream format at middle sampling rate for Alesis iO 26

Alesis iO 26 FireWire has two pairs of digital optical interface. It
delivers PCM frames from the interfaces by second isochronous packet
streaming. Although both of the interfaces are available at 44.1/48.0
kHz, first one of them is only available at 88.2/96.0 kHz. It reduces
the number of PCM samples to 4 in Multi Bit Linear Audio data channel
of data blocks on the second isochronous packet streaming.

This commit fixes hardcoded stream formats.

Cc: <stable@vger.kernel.org>
Fixes: 28b208f600a3 ("ALSA: dice: add parameters of stream formats for models produced by Alesis")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210513125652.110249-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Takashi Sakamoto and committed by
Takashi Iwai
1b660489 f2be77fe

+1 -1
+1 -1
sound/firewire/dice/dice-alesis.c
··· 16 16 static const unsigned int 17 17 alesis_io26_tx_pcm_chs[MAX_STREAMS][SND_DICE_RATE_MODE_COUNT] = { 18 18 {10, 10, 4}, /* Tx0 = Analog + S/PDIF. */ 19 - {16, 8, 0}, /* Tx1 = ADAT1 + ADAT2. */ 19 + {16, 4, 0}, /* Tx1 = ADAT1 + ADAT2 (available at low rate). */ 20 20 }; 21 21 22 22 int snd_dice_detect_alesis_formats(struct snd_dice *dice)