diff options
| author | Dylan Robinson <dylan_robinson@motu.com> | 2025-11-24 16:05:18 -0500 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2025-11-25 07:58:42 +0100 |
| commit | a748e1dbb2df11fb55ee32a56270341195260b15 (patch) | |
| tree | e4710a3ebe74e9229f05f57352e48d388a272534 /scripts/generate_rust_analyzer.py | |
| parent | 9ef1203fc73570290e09be65b15df84815ca4089 (diff) | |
ALSA: usb-audio: Fix max bytes-per-interval calculation
The maxpacksize field in struct audioformat represents the maximum number
of bytes per isochronous interval. The current implementation only
special-cases high-speed endpoints and does not account for the different
computations required for SuperSpeed, SuperSpeedPlus, or eUSB2. As a
result, USB audio class devices operating at these speeds may fail to
stream correctly. The issue was observed on a MOTU 16A (2025) interface,
which requires more than 1024 bytes per interval at SuperSpeed.
This patch replaces the existing logic with a helper that computes the
correct maximum bytes-per-interval for all USB speeds, borrowing the logic
used in drivers/usb/core/urb.c.
Signed-off-by: Dylan Robinson <dylan_robinson@motu.com>
Link: https://patch.msgid.link/20251124210518.90054-1-dylan_robinson@motu.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions