Skip to content

Commit fdc4d94

Browse files
rxrblngregkh
authored andcommitted
ALSA: usb-audio: fix uac2 clock source at terminal parser
[ Upstream commit d26e9f669cc0a6a85cf17180c09a6686db9f4002 ] Since 8b3a087 ("ALSA: usb-audio: Unify virtual type units type to UAC3 values") usb-audio is using UAC3_CLOCK_SOURCE instead of bDescriptorSubtype, later refactored with e0ccdef ("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: 8b3a087 ("ALSA: usb-audio: Unify virtual type units type to UAC3 values") Signed-off-by: René Rebe <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 4a6f3df commit fdc4d94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/usb/mixer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ static int parse_term_uac2_clock_source(struct mixer_build *state,
930930
{
931931
struct uac_clock_source_descriptor *d = p1;
932932

933-
term->type = UAC3_CLOCK_SOURCE << 16; /* virtual type */
933+
term->type = UAC2_CLOCK_SOURCE << 16; /* virtual type */
934934
term->id = id;
935935
term->name = d->iClockSource;
936936
return 0;

0 commit comments

Comments
 (0)