]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: dice: fix wrong packet parameter for Alesis iO26
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 16 Sep 2019 10:18:51 +0000 (19:18 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 16 Sep 2019 21:46:14 +0000 (23:46 +0200)
commitcc41ee4bfcd7f2a7112ac055fac9996f11db8080
treeb2a5f81d2cdb0bd19bd30f946834046b3f0dd633
parent309640eec5e1ad860f322546f7065c2241ba6afb
ALSA: dice: fix wrong packet parameter for Alesis iO26

At higher sampling rate (e.g. 192.0 kHz), Alesis iO26 transfers 4 data
channels per data block in CIP.

Both iO14 and iO26 have the same contents in their configuration ROM.
For this reason, ALSA Dice driver attempts to distinguish them according
to the value of TX0_AUDIO register at probe callback. Although the way is
valid at lower and middle sampling rate, it's lastly invalid at higher
sampling rate because because the two models returns the same value for
read transaction to the register.

In the most cases, users just plug-in the device and ALSA dice driver
detects it. In the case, the device runs at lower sampling rate and
the driver detects expectedly. For this reason, this commit leaves the
way to detect as is.

Fixes: 7e6581f2aaab ("ALSA: dice: add parameters of stream formats for models produced by Alesis")
Cc: <stable@vger.kernel.org> # v4.18+
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20190916101851.30409-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/dice/dice-alesis.c