[alsa-devel] usb-audio: check_input_term (mixer.c) iterating to clock selectors?
Johan Aires Rastén
johan at oljud.se
Sat Nov 15 16:57:05 CET 2014
Hi everybody! I've just started looking at ALSA because I want to get the
mic working with my Asus Xonar U7. Some of you might have seen me on IRC as
johanar.
I'm wondering about check_input_term(...) in sound/usb/mixer.c, which for
case UAC_INPUT_TERMINAL and UAC_VERSION_2 will recursively go into the
clock source. Is this correct behaviour? For my card both mic and line will
show up as "Unit 22" when I call "amixer contents" since the two inputs
have the same unnamed clock source (they also share physical connector).
However, if I comment out the recursive call they show up as "mic" and
"line" as they're supposed to.
Btw, if this is correct, couldn't we set id = d->bCSourceID and break; in
the same way that case UAC_FEATURE_UNIT does?
//Johan Rastén
More information about the Alsa-devel
mailing list