]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: claim autodetected PCM interfaces all at once
authorClemens Ladisch <clemens@ladisch.de>
Thu, 4 Apr 2013 19:43:57 +0000 (21:43 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Thu, 27 Jun 2013 19:59:49 +0000 (21:59 +0200)
commitab766c66d81d59af00021a5af1916928f9ffa789
tree09e6fd2e2f1d81e54e52789ad1baf3eee2992b81
parent6311b87941ce63ab1c84b6a95add7d48b8b7d2b6
ALSA: usb-audio: claim autodetected PCM interfaces all at once

snd_card_register() registers all devices newly added since the last
call.  However, the playback/capture streams are handled as one ALSA
device, so the second /dev device will not be registered if the PCM
streams are added in two steps.

QUIRK_AUTODETECT caused the probe callback to be called once for each
interface, which triggered this problem.  Work around this by handling
this like the composite quirk, i.e., autodetecting all other interfaces
that might be used for PCM or MIDI.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/usb/quirks.c