Commit 2de841ef authored by Takashi Iwai's avatar Takashi Iwai

ALSA: usb-audio: Fix forgotten conversion of control query functions

The recent code refactoring made the argument for some helper
functions to be the explicit UAC_CS_* and UAC2_CS_* value instead of
0-based offset.  However, there was one place left forgotten, and it
caused a regression on some devices appearing as the inconsistent
mixer setup.

This patch corrects the forgotten conversion.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=199449
Fixes: 21e9b3e9 ("ALSA: usb-audio: fix uac control query argument")
Tested-by: default avatarNazar Mokrynskyi <nazar@mokrynskyi.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 1ba7862f
...@@ -1776,7 +1776,8 @@ static int parse_audio_feature_unit(struct mixer_build *state, int unitid, ...@@ -1776,7 +1776,8 @@ static int parse_audio_feature_unit(struct mixer_build *state, int unitid,
build_feature_ctl(state, _ftr, ch_bits, control, build_feature_ctl(state, _ftr, ch_bits, control,
&iterm, unitid, ch_read_only); &iterm, unitid, ch_read_only);
if (uac_v2v3_control_is_readable(master_bits, control)) if (uac_v2v3_control_is_readable(master_bits, control))
build_feature_ctl(state, _ftr, 0, i, &iterm, unitid, build_feature_ctl(state, _ftr, 0, control,
&iterm, unitid,
!uac_v2v3_control_is_writeable(master_bits, !uac_v2v3_control_is_writeable(master_bits,
control)); control));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment