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.
(backported from
commit 21e9b3e931f7 ("ALSA: usb-audio: fix uac control query argument")
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next)
Bug: 70632415
Change-Id: I3b2f96969050434da1a6c859d8c30b735bae58f1
Signed-off-by: Andrew Chant <achant@google.com>
(cherry picked from commit cb5710c04c1297c7b0ad7e24ddb466b323ad2c02)