| From 8c225c390d7f7990380e2e91217ca1fe3cae2863 Mon Sep 17 00:00:00 2001 | |
| From: Sasha Levin <sashal@kernel.org> | |
| Date: Mon, 2 Nov 2026 12:36:52 +0900 | |
| Subject: ALSA: firewire: fix inverted streaming speed between tx and rx | |
| streams | |
| From: Takashi Sakamoto <o-takashi@sakamocchi.jp> | |
| [ Upstream commit 64d3a2c8e7bc0d3cf144d71ee2fb357c15b6c71f ] | |
| ALSA firewire-tascam driver uses inverted streaming speed when reserving | |
| isochronous resources between tx and rx streams. | |
| Correct the streaming speeds. This has no impact on existing | |
| functionality, as both streams are always reserved together when handling | |
| PCM substreams. | |
| Fixes: dbd0cf204fe6 ("ALSA: firewire-tascam: reserve resources for transferred isochronous packets at S400") | |
| Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> | |
| Link: https://patch.msgid.link/20261102033652.1184893-1-o-takashi@sakamocchi.jp | |
| Signed-off-by: Takashi Iwai <tiwai@suse.de> | |
| Signed-off-by: Sasha Levin <sashal@kernel.org> | |
| --- | |
| sound/firewire/tascam/tascam-stream.c | 4 ++-- | |
| 1 file changed, 2 insertions(+), 2 deletions(-) | |
| diff --git a/sound/firewire/tascam/tascam-stream.c b/sound/firewire/tascam/tascam-stream.c | |
| index 4ecd151a46c19..462766946e94e 100644 | |
| --- a/sound/firewire/tascam/tascam-stream.c | |
| +++ b/sound/firewire/tascam/tascam-stream.c | |
| @@ -287,10 +287,10 @@ static int keep_resources(struct snd_tscm *tscm, unsigned int rate, | |
| if (stream == &tscm->tx_stream) { | |
| resources = &tscm->tx_resources; | |
| - speed = fw_parent_device(tscm->unit)->max_speed; | |
| + speed = SCODE_400; | |
| } else { | |
| resources = &tscm->rx_resources; | |
| - speed = SCODE_400; | |
| + speed = fw_parent_device(tscm->unit)->max_speed; | |
| } | |
| err = amdtp_tscm_set_parameters(stream, rate); | |
| -- | |
| 2.53.0 | |