diff options
| author | Geoffrey D. Bennett <[email protected]> | 2025-04-16 18:49:23 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2025-04-20 08:38:46 +0000 |
| commit | f406005e162b660dc405b4f18bf7bcb93a515608 (patch) | |
| tree | a040abaa87e35975e96316a09eb76907ff18cfba /drivers/firmware/psci/psci.c | |
| parent | ALSA: hda/realtek - Enable speaker for HP platform (diff) | |
| download | kernel-f406005e162b660dc405b4f18bf7bcb93a515608.tar.gz kernel-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: [email protected]
Signed-off-by: Geoffrey D. Bennett <[email protected]>
Link: https://patch.msgid.link/Z//[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'drivers/firmware/psci/psci.c')
0 files changed, 0 insertions, 0 deletions
