• Alexander Tsoy's avatar
    ALSA: usb-audio: fix PCM device order · f7f53018
    Alexander Tsoy authored
    Some cards have alternate setting with non-PCM format as the first
    altsetting in the interface descriptors. This confuses userspace, since
    alsa-lib uses device 0 by default. So lets parse interfaces in two steps:
     1. Parse altsettings with PCM formats.
     2. Parse altsettings with non-PCM formats.
    
    This fixes at least following cards:
     - Audinst HUD-mx2
     - Audinst HUD-mini
    
    [ Adapted to 5.3 kernel by tiwai ]
    Signed-off-by: default avatarAlexander Tsoy <alexander@tsoy.me>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    f7f53018
stream.c 31.8 KB