Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH] ALSA: usb-audio fix uac2 clock source
@ 2025-11-25 14:41 René Rebe
  2025-11-25 14:55 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: René Rebe @ 2025-11-25 14:41 UTC (permalink / raw)
  To: linux-sound; +Cc: Takashi Iwai

Since 8b3a087f7f65 ("ALSA: usb-audio: Unify virtual type units type to
UAC3 values") usb-audio is using UAC3_CLOCK_SOURCE instead of
bDescriptorSubtype, later refactored with e0ccdef9265 ("ALSA: usb-audio:
Clean up check_input_term()") into parse_term_uac2_clock_source().

This breaks the clock source selection for at least my
1397:0003 BEHRINGER International GmbH FCA610 Pro.

Fix by using UAC2_CLOCK_SOURCE in parse_term_uac2_clock_source().

Fixes: 8b3a087f7f65 ("ALSA: usb-audio: Unify virtual type units type to UAC3 values")
Signed-off-by: René Rebe <rene@exactco.de>
---
Tested and shipped since 2022-07-24 in T2/Linux.
---
 sound/usb/mixer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c
index 72b900505d2c..3af71d42b9b9 100644
--- a/sound/usb/mixer.c
+++ b/sound/usb/mixer.c
@@ -921,7 +921,7 @@ static int parse_term_uac2_clock_source(struct mixer_build *state,
 {
 	struct uac_clock_source_descriptor *d = p1;
 
-	term->type = UAC3_CLOCK_SOURCE << 16; /* virtual type */
+	term->type = UAC2_CLOCK_SOURCE << 16; /* virtual type */
 	term->id = id;
 	term->name = d->iClockSource;
 	return 0;
-- 
2.46.0

-- 
René Rebe, ExactCODE GmbH, Berlin, Germany
https://exactco.dehttps://t2linux.comhttps://patreon.com/renerebe

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

* Re: [PATCH] ALSA: usb-audio fix uac2 clock source
  2025-11-25 14:41 [PATCH] ALSA: usb-audio fix uac2 clock source René Rebe
@ 2025-11-25 14:55 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2025-11-25 14:55 UTC (permalink / raw)
  To: René Rebe; +Cc: linux-sound, Takashi Iwai

On Tue, 25 Nov 2025 15:41:49 +0100,
René Rebe wrote:
> 
> Since 8b3a087f7f65 ("ALSA: usb-audio: Unify virtual type units type to
> UAC3 values") usb-audio is using UAC3_CLOCK_SOURCE instead of
> bDescriptorSubtype, later refactored with e0ccdef9265 ("ALSA: usb-audio:
> Clean up check_input_term()") into parse_term_uac2_clock_source().
> 
> This breaks the clock source selection for at least my
> 1397:0003 BEHRINGER International GmbH FCA610 Pro.
> 
> Fix by using UAC2_CLOCK_SOURCE in parse_term_uac2_clock_source().
> 
> Fixes: 8b3a087f7f65 ("ALSA: usb-audio: Unify virtual type units type to UAC3 values")
> Signed-off-by: René Rebe <rene@exactco.de>
> ---
> Tested and shipped since 2022-07-24 in T2/Linux.

Applied now.  Thanks.


Takashi

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

end of thread, other threads:[~2025-11-25 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-25 14:41 [PATCH] ALSA: usb-audio fix uac2 clock source René Rebe
2025-11-25 14:55 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox