: "rawusb" aka hwdep_pcm patch for snd-usb-usx2y >= 0.8.6
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=607>
======================================================================
Reported By: karsten Assigned To: karsten ====================================================================== Project: ALSA - driver Issue ID: 607 Category: USB - usb-usx2y Reproducibility: sometimes Severity: feature Priority: normal Status: assigned Distribution: Kernel Version: ====================================================================== Date Submitted: 10-26-2004 21:36 CEST Last Modified: 10-27-2004 02:26 CEST
======================================================================
Summary: "rawusb" aka hwdep_pcm patch for snd-usb-usx2y >=
0.8.6
Description:
Its usb's unableness to atomically handle power of 2 period sized data chuncs,
what led to:
This usx2y-alsa-jack driver pair uses a hardware dependant alsa-device for
mmaped pcm transport.
Advantage achieved:
The usb_hcd places reads/writes pcm data into dma-memory. That memory is mmaped by jack's usx2y driver.
Jack's usx2y driver is the first/last to read/write pcm data. Read/write is a combination of power of 2 period shaping and float/int conversation.
Compared to mainline alsa/jack we leave out power of 2 period
shaping inside
snd-usb-* which needs memcpy() and additional buffers. As a side effect possible unwanted pcm-data coruption resulting of plain alsa's snd-usb-usx2y period shaping scheme falls away. Result is sane jack operation at buffering schemes down to
128frames,
2 periods.
plain usx2y alsa mode is able to achieve 64frames, 4periods, but
only at the
cost of easier triggered i.e. aeolus xruns (128 or 256frames, 2periods works but is useless cause of crackling).
New functionality would possibly be better integrated into mainlines at more
apropriate places.
Target could be: jack mmaping power of 2 period sized float-pcm buffers and
letting alsa (snd-usb-lib - alsa-lib - plugin) do power of 2 period shaping
and float/int conversation.
======================================================================
----------------------------------------------------------------------
karsten - 10-26-04 21:39
----------------------------------------------------------------------
uploaded snd-usb-usx2y.patch.0.8.6+hwdep_pcm.bz2 for use with alsa-kernel cvs head.
----------------------------------------------------------------------
rncbc - 10-27-04 02:26
----------------------------------------------------------------------
OK. This is working fairly well, like a charm.
I've uploaded my rearranged kernel patches, just for the record.
For linux 2.6.9 (vanilla):
+ linux-2.6.9-usx2y-0.8.6.patch.gz
+ linux-2.6.9-usx2y-0.8.6-rawusb.patch.gz
For linux 2.6.9-mm1 (develop):
+ linux-2.6.9-mm1_usx2y-0.8.6.patch.gz
+ linux-2.6.9-mm1_usx2y-0.8.6-rawusb.patch.gz
Each pair of patches are to be applied with 'patch -p1' under the kernel source tree, and on top of the other.
Common to all above is linux-2.6.9-ohci-hcd.patch.gz which is intended to fix an OHCI issue regarding the nrpacks=3 setting.
I'm also personally maintaining some stuff for JACK, including this new experimental usx2y backend, which takes advantage of this new rawusb hwdep_pcm interface. Check this out under:
http://www.rncbc.org/usx2y/
This directory includes the just uploaded kernel patches, but most importantly the JACK patch(es), source and RPM packages for Mandrake 10.1c (jackit) and SUSE 9.1Pro (jack), which includes the usx2y backend.
Not surprisingly, latest qjackctl is usx2y ready ;)
Take care. My US-224 never worked so happily, and where it ought to: on my laptop ;)
Issue History
Date Modified Username Field Change
======================================================================
10-26-04 21:36 karsten New Issue
10-26-04 21:36 karsten File Added:
snd-usb-usx2y.patch.0.8.6+hwdep_pcm.bz2
10-26-04 21:39 karsten Note Added: 0002265
10-27-04 02:01 rncbc File Added: linux-2.6.9-ohci-hcd.patch.gz
10-27-04 02:01 rncbc File Added: linux-2.6.9-usx2y-0.8.6.patch.gz
10-27-04 02:02 rncbc File Added:
linux-2.6.9-usx2y-0.8.6-rawusb.patch.gz
10-27-04 02:02 rncbc File Added: linux-2.6.9-mm1_usx2y-0.8.6.patch.gz
10-27-04 02:03 rncbc File Added:
linux-2.6.9-mm1_usx2y-0.8.6-rawusb.patch.gz
10-27-04 02:26 rncbc Note Added: 0002269
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click