Skip to content

snd-usb endpoint rework, take 5

Daniel Mack alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ALSA: snd-usb: add snd_usb_audio-wide mutexsound/usb/card.c sound/usb/usbaudio.h+3 -00 replies
2/5ALSA: snd-usb: implement new endpoint streaming modelsound/usb/card.h sound/usb/endpoint.c sound/usb/endpoint.h +1 more+1001 -116 replies
3/5ALSA: snd-usb: switch over to new endpoint streaming logicsound/usb/card.c sound/usb/card.h sound/usb/endpoint.c +3 more+381 -1190 replies
4/5ALSA: snd-usb: remove old streaming logicsound/usb/endpoint.c sound/usb/endpoint.h+8 -8580 replies
5/5ALSA: snd-usb: add support for implicit feedbacksound/usb/pcm.c+26 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] snd-usb endpoint rework, take 5

I actually wanted to wait for more input, but as the flaws reported so far were rather minor, I addressed to following details in this new round as mentioned by Takashi and Clemens:

- removed the faulty "(!u || u->urb)" check
- guard the result of min() with the spinlock inside next_packet_size()
- removed the tasklet and made the handler a function that is called in-place

Thanks again for the reviews, and keep them coming :)

Daniel

Daniel Mack (5):
ALSA: snd-usb: add snd_usb_audio-wide mutex
ALSA: snd-usb: implement new endpoint streaming model
ALSA: snd-usb: switch over to new endpoint streaming logic
ALSA: snd-usb: remove old streaming logic
ALSA: snd-usb: add support for implicit feedback

 sound/usb/card.c     |   10 +-
 sound/usb/card.h     |   62 +++
 sound/usb/endpoint.c | 1454 +++++++++++++++++++++++++------------------------
 sound/usb/endpoint.h |   32 +-
 sound/usb/pcm.c      |  437 +++++++++++++---
 sound/usb/stream.c   |   31 +-
 sound/usb/usbaudio.h |    2 +
 7 files changed, 1224 insertions(+), 804 deletions(-)
Signature · 1 line
1.7.5.4