]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: fix uac control query argument
authorAndrew Chant <achant@google.com>
Thu, 22 Mar 2018 21:39:55 +0000 (14:39 -0700)
committerTakashi Iwai <tiwai@suse.de>
Fri, 23 Mar 2018 09:25:03 +0000 (10:25 +0100)
commit1a7e7bdb7a2f61ff5c0aa775719b68f679d68a19
treeceafcd8610b694895129a9d52da56672229ac791
parentfa81571fdd239441629a8aa57a5a14aae8db690a
ALSA: usb-audio: fix uac control query argument

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: Andrew Chant <achant@google.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/linux/usb/audio-v2.h
sound/usb/clock.c
sound/usb/mixer.c