alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [alsa-devel] [PATCH] ALSA: dice: fix wrong packet parameter for Alesis iO26
@ 2019-09-16 10:18 Takashi Sakamoto
  2019-09-16 21:46 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Takashi Sakamoto @ 2019-09-16 10:18 UTC (permalink / raw)
  To: clemens, tiwai; +Cc: alsa-devel, stable

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: 28b208f600a3 ("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>
---
 sound/firewire/dice/dice-alesis.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/firewire/dice/dice-alesis.c b/sound/firewire/dice/dice-alesis.c
index 218292bdace6..f5b325263b67 100644
--- a/sound/firewire/dice/dice-alesis.c
+++ b/sound/firewire/dice/dice-alesis.c
@@ -15,7 +15,7 @@ alesis_io14_tx_pcm_chs[MAX_STREAMS][SND_DICE_RATE_MODE_COUNT] = {
 
 static const unsigned int
 alesis_io26_tx_pcm_chs[MAX_STREAMS][SND_DICE_RATE_MODE_COUNT] = {
-	{10, 10, 8},	/* Tx0 = Analog + S/PDIF. */
+	{10, 10, 4},	/* Tx0 = Analog + S/PDIF. */
 	{16, 8, 0},	/* Tx1 = ADAT1 + ADAT2. */
 };
 
-- 
2.20.1

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [alsa-devel] [PATCH] ALSA: dice: fix wrong packet parameter for Alesis iO26
  2019-09-16 10:18 [alsa-devel] [PATCH] ALSA: dice: fix wrong packet parameter for Alesis iO26 Takashi Sakamoto
@ 2019-09-16 21:46 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2019-09-16 21:46 UTC (permalink / raw)
  To: Takashi Sakamoto; +Cc: alsa-devel, clemens, stable

On Mon, 16 Sep 2019 12:18:51 +0200,
Takashi Sakamoto wrote:
> 
> 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: 28b208f600a3 ("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>

Applied, thanks.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-16 21:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-16 10:18 [alsa-devel] [PATCH] ALSA: dice: fix wrong packet parameter for Alesis iO26 Takashi Sakamoto
2019-09-16 21:46 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).