• Daniel Mack's avatar
    ALSA: usb-audio: Assume first control interface is for audio · 7b6717e1
    Daniel Mack authored
    For devices with more than one control interface, let's assume the first
    one contains the audio controls. Unfortunately, there is no field in any
    of the descriptors to tell us whether a control interface is for audio
    or MIDI controls, so a better check is not easy to implement.
    
    On a composite device with audio and MIDI functions, for example, the
    code currently overwrites chip->ctrl_intf, causing operations on the
    control interface to fail if they are issued after the device probe.
    Signed-off-by: default avatarDaniel Mack <daniel@caiaq.de>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    7b6717e1
card.c 17.4 KB