diff options
| author | Zak Brighton Knight <zakbrightonknight@gmail.com> | 2026-10-26 14:09:34 +0000 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-10-27 08:28:54 +0100 |
| commit | 379ba557f555245eb9cb6c2a9d7a1eef704c786f (patch) | |
| tree | 80e2f4d1dc93cd66515cc6b18959abd66cacfa40 /scripts/patch-kernel | |
| parent | 8d61d55bedb7e1ee553ec3f43a9dc0feecb9da3c (diff) | |
| download | linux-379ba557f555245eb9cb6c2a9d7a1eef704c786f.tar.gz linux-379ba557f555245eb9cb6c2a9d7a1eef704c786f.zip | |
ALSA: usb-audio: Skip probe-time interface setup for MSI MAG X570S ALC4080
The Realtek ALC4080 USB audio on the MSI MAG X570S Tomahawk Max WiFi
(USB ID 0db0:a073, the same ID as the MAG X570S Torpedo Max mixer map)
has six streaming interfaces with 68 altsettings in total. For each of
them, __snd_usb_parse_audio_interface() switches the interface to alt 0,
initialises pitch and the sample rate and switches back, which costs
about 64 ms per altsetting here, mostly spent inside usb_set_interface().
Probing the card therefore takes about 6.4 seconds, on every boot.
That setup is redundant with snd_usb_endpoint_prepare() at stream-open
time, so set QUIRK_FLAG_SKIP_IFACE_SETUP for this device.
Tested on 7.2.11 with the equivalent quirk_flags=0db0:a073:skip_iface_setup
module option, re-probing the device via its sysfs "authorized"
attribute: probe time went from 6.45 s to 0.57 s, all 68 altsettings
are still listed in /proc/asound/cardX/stream*, and playback and
capture work.
Assisted-by: LLM
Signed-off-by: Zak Brighton Knight <zakbrightonknight@gmail.com>
Link: https://patch.msgid.link/20261026140934.3575940-1-zakbrightonknight@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
