diff options
| author | Takashi Iwai <tiwai@suse.de> | 2026-09-30 17:53:52 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-09-30 17:56:14 +0200 |
| commit | 8b4d98aad61c3a9a5e01e0840470f9d7f32bc339 (patch) | |
| tree | 8cbe3ee7a618805e8472858aa22e693e0a379286 /tools/lib/python/kdoc | |
| parent | 0458d97859840506c3688a963dcd4f72b4a23083 (diff) | |
ALSA: usb-audio: Optimize min/max/res parse for UAC2
UAC2 feature and mixer units provide the mixer information about
minimum and max channels as well as the resolution in a single
UAC2_CS_RANGE request, but the current code tries to extract each of
them in an old way of UAC1.
This patch refactors the code to optimize the range info extraction
for UAC2. Now the code for obtaining min/max/res info is done in
get_ctl_range() function. For UAC1, this will call UAC_GET_MIN,
UAC_GET_MAX and UAC_GET_RES requests, while it calls a single
UAC2_CS_RANGE for UAC2/3.
Link: https://lore.kernel.org/d46fcac6-bd7e-4fc4-95e1-4e8d39f92ad3@zipdox.net
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260930155356.348608-4-tiwai@suse.de
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
