diff options
| author | Takashi Iwai <tiwai@suse.de> | 2026-10-07 19:20:40 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-10-08 08:47:06 +0200 |
| commit | c01fb2ed90c0770560ea9cc1644f205956b26a70 (patch) | |
| tree | 7d5d269f20a5c9a053692683c8a9c7a4175ae5b2 /tools/lib/python | |
| parent | 27cee4141c8de82cf051104ca830c3a209816033 (diff) | |
ALSA: usb-audio: Fix invalid UAC2/3 mixer unit matrix evaluation
The bitmap matrix in the mixer unit descriptor for UAC2 and UAC3 has
rather the size of input-pins x output-pins, while the current
USB-audio driver code wrongly assumes the UAC1 bitmap matrix size,
which is input-channels x output-pins. That is, when input pins have
multiple channels, the column size differs and it leads to the
accesses at a wrong position.
This patch corrects the access of the bitmap matrix for UAC2/UAC3.
For making the code cleaner, split the parser to UAC1 and UAC2/3, too.
Reported-by: Sashiko <sashiko-bot@kernel.org>
Fixes: 23caaf19b11e ("ALSA: usb-mixer: Add support for Audio Class v2.0")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20261007172051.13240-5-tiwai@suse.de
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
