Skip to content
Snippets Groups Projects
Commit e6354316 authored by Andrew Chant's avatar Andrew Chant Committed by Thierry Strudel
Browse files

BACKPORT: 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.

(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: default avatarAndrew Chant <achant@google.com>
parent 75079d80
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment