• Andrew Chant's avatar
    ALSA: usb-audio: fix uac control query argument · 21e9b3e9
    Andrew Chant authored
    This patch fixes code readability and should have no functional change.
    
    Correct uac control query functions to account for the 1-based indexing
    of USB Audio Class control identifiers.
    
    The function parameter, u8 control, should be the
    constant defined in audio-v2.h to identify the control to be checked for
    readability or writeability.
    
    This patch fixes all callers that had adjusted, and makes explicit
    the mapping between audio_feature_info[] array index and the associated
    control identifier.
    Signed-off-by: default avatarAndrew Chant <achant@google.com>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    21e9b3e9
audio-v2.h 13.2 KB