Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] ALSA: 6fire: avoid resubmitting an active URB
@ 2026-11-23  8:48 YuanZhe Liu
  2026-11-23  8:48 ` [PATCH 1/2] ALSA: 6fire: Don't resubmit an active MIDI URB YuanZhe Liu
  2026-11-23  8:48 ` [PATCH 2/2] ALSA: 6fire: Don't resubmit an active PCM out URB YuanZhe Liu
  0 siblings, 2 replies; 4+ messages in thread
From: YuanZhe Liu @ 2026-11-23  8:48 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Jaroslav Kysela, linux-sound, linux-kernel, Bin Yu, Cheng Wen

The 6fire driver submits URBs from callbacks that do not own them, and the
USB core complains when the URB is still queued:

  URB 000000003ec29e65 submitted while active
  WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb

There are two independent paths.  The MIDI output resubmits rt->out_urb
after the stream was stopped while the previous transfer was still in
flight, and the PCM capture handler unconditionally resubmits the
playback URB paired with the capture URB that has just completed.

Both patches make the driver check whether the URB is still queued, as
sound/usb/midi.c does with active_urbs, and leave the data to the
completion handler instead of submitting an active URB.


YuanZhe Liu (2):
  ALSA: 6fire: Don't resubmit an active MIDI URB
  ALSA: 6fire: Don't resubmit an active PCM out URB

 sound/usb/6fire/midi.c | 21 +++++++++++++++++----
 sound/usb/6fire/midi.h |  1 +
 sound/usb/6fire/pcm.c  | 16 +++++++++++++++-
 sound/usb/6fire/pcm.h  |  2 ++
 4 files changed, 35 insertions(+), 5 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-23  8:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23  8:48 [PATCH 0/2] ALSA: 6fire: avoid resubmitting an active URB YuanZhe Liu
2026-11-23  8:48 ` [PATCH 1/2] ALSA: 6fire: Don't resubmit an active MIDI URB YuanZhe Liu
2026-11-23  8:56   ` sashiko-bot
2026-11-23  8:48 ` [PATCH 2/2] ALSA: 6fire: Don't resubmit an active PCM out URB YuanZhe Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox