[PATCH 0/3] ALSA: usb: Avoid embedded URBs

Takashi Iwai posted 3 patches 3 weeks, 1 day ago
There is a newer version of this series
sound/usb/6fire/comm.c |  35 +++++++-----
sound/usb/6fire/comm.h |   2 +-
sound/usb/6fire/midi.c |  36 ++++++++-----
sound/usb/6fire/midi.h |   2 +-
sound/usb/6fire/pcm.c  | 120 +++++++++++++++++++++++------------------
sound/usb/6fire/pcm.h  |   5 +-
sound/usb/hiface/pcm.c |  22 ++++----
sound/usb/misc/ua101.c | 102 ++++++++++++++++++-----------------
8 files changed, 184 insertions(+), 140 deletions(-)
[PATCH 0/3] ALSA: usb: Avoid embedded URBs
Posted by Takashi Iwai 3 weeks, 1 day ago
As the recent fix for caiaq driver showed, some other USB drivers need
to be fixed for their use of embedded URBs, too.
In this patch series, those are converted to the dynamically allocated
ones via usb_alloc_urb().


Takashi

===

Takashi Iwai (3):
  ALSA: usb: ua101: Avoid embedded URBs
  ALSA: usb: hiface: Avoid embedded URBs
  ALSA: usb: 6fire: Avoid embedded URBs

 sound/usb/6fire/comm.c |  35 +++++++-----
 sound/usb/6fire/comm.h |   2 +-
 sound/usb/6fire/midi.c |  36 ++++++++-----
 sound/usb/6fire/midi.h |   2 +-
 sound/usb/6fire/pcm.c  | 120 +++++++++++++++++++++++------------------
 sound/usb/6fire/pcm.h  |   5 +-
 sound/usb/hiface/pcm.c |  22 ++++----
 sound/usb/misc/ua101.c | 102 ++++++++++++++++++-----------------
 8 files changed, 184 insertions(+), 140 deletions(-)

-- 
2.55.0
Re: [PATCH 0/3] ALSA: usb: Avoid embedded URBs
Posted by Takashi Iwai 3 weeks, 1 day ago
On Thu, 03 Sep 2026 16:56:42 +0200,
Takashi Iwai wrote:
> 
> As the recent fix for caiaq driver showed, some other USB drivers need
> to be fixed for their use of embedded URBs, too.
> In this patch series, those are converted to the dynamically allocated
> ones via usb_alloc_urb().

It turned out that 6fire patch had a serious mistake about copying the
data.  Will be fixed in v2.

Also, I cleaned up the resource release code in hiface driver in v2,
too, for avoiding silly mistakes.


Takashi