summaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorGeoffrey D. Bennett <g@b4.vu>2025-04-17 04:19:23 +0930
committerTakashi Iwai <tiwai@suse.de>2025-04-20 10:38:46 +0200
commitf406005e162b660dc405b4f18bf7bcb93a515608 (patch)
treea040abaa87e35975e96316a09eb76907ff18cfba /scripts/generate_rust_analyzer.py
parent494d0939b1bda4d4ddca7d52a6ce6f808ff2c9a5 (diff)
downloadlinux-f406005e162b660dc405b4f18bf7bcb93a515608.tar.gz
linux-f406005e162b660dc405b4f18bf7bcb93a515608.tar.bz2
linux-f406005e162b660dc405b4f18bf7bcb93a515608.zip
ALSA: usb-audio: Add retry on -EPROTO from usb_set_interface()
During initialisation of Focusrite USB audio interfaces, -EPROTO is sometimes returned from usb_set_interface(), which sometimes prevents the device from working: subsequent usb_set_interface() and uac_clock_source_is_valid() calls fail. This patch adds up to 5 retries in endpoint_set_interface(), with a delay starting at 5ms and doubling each time. 5 retries was chosen to allow for longer than expected waits for the interface to start responding correctly; in testing, a single 5ms delay was sufficient to fix the issue. Closes: https://github.com/geoffreybennett/fcp-support/issues/2 Cc: stable@vger.kernel.org Signed-off-by: Geoffrey D. Bennett <g@b4.vu> Link: https://patch.msgid.link/Z//7s9dKsmVxHzY2@m.b4.vu Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions