• Takashi Iwai's avatar
    ALSA: usb-audio: Apply implicit feedback mode for BOSS devices · ebe8dc5a
    Takashi Iwai authored
    During the recent rewrite of the implicit feedback support, we've
    tested to apply the implicit fb on BOSS devices, but it failed, as the
    capture stream didn't start without the playback.  As the end result,
    it got another type of quirk for tying both streams but starts
    playback always (commit 6234fdc1
     "ALSA: usb-audio: Quirk for BOSS
    Meanwhile, Mike Oliphant has tested the real implicit feedback mode
    for the playback again with the latest code, and found out that it
    actually works if the initial feedback sync is skipped; that is, on
    those BOSS devices, the playback stream has to be started at first
    without waiting for the capture URB completions.  Otherwise it gets
    stuck.  In the rest operations after the capture stream processed, we
    can take them as the implicit feedback source.
    This patch is an attempt to improve the support for BOSS devices with
    the implicit feedback mode in the way described above.  It adds a new
    flag to snd_usb_audio, playback_first, indicating that the playback
    stream starts without sync with the initial capture completion.  This
    flag is set in the quirk table with the new IMPLICIT_FB_BOTH type.
    Reported-and-tested-by: default avatarMike Oliphant <oliphant@nostatic.org>
    Link: https://lore.kernel.org/r/20210414083255.9527-1-tiwai@suse.de
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>