ALSA: usb-audio: Add duplex sound support for USB devices using implicit feedback
authorErwin Burema <e.burema@gmail.com>
Sun, 10 May 2020 18:29:11 +0000 (20:29 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 May 2020 17:14:29 +0000 (19:14 +0200)
commit10ce77e4817fef99e1166be7e6685a80c63bf77f
tree249422b14e8db6b079f8c5ee232fcb918cb9dded
parent47b4f5f5b65680fbef7a7a9a4796b35f38a6e43e
ALSA: usb-audio: Add duplex sound support for USB devices using implicit feedback

For USB sound devices using implicit feedback the endpoint used for
this feedback should be able to be opened twice, once for required
feedback and second time for audio data. This way these devices can be
put in duplex audio mode. Since this only works if the settings of the
endpoint don't change a check is included for this.

This fixes bug 207023 ("MOTU M2 regression on duplex audio") and
should also fix bug 103751 ("M-Audio Fast Track Ultra usb audio device
will not operate full-duplex")

Fixes: c249177944b6 ("ALSA: usb-audio: add implicit fb quirk for MOTU M Series")
Signed-off-by: Erwin Burema <e.burema@gmail.com>
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207023
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=103751
Link: https://lore.kernel.org/r/2410739.SCZni40SNb@alpha-wolf
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.h
sound/usb/endpoint.c
sound/usb/pcm.c