All of lore.kernel.org
 help / color / mirror / Atom feed
* [ALSA - driver 0000607]: "rawusb" aka hwdep_pcm patch for snd-usb-usx2y >= 0.8.6
@ 2004-11-09 18:22 bugtrack
  0 siblings, 0 replies; 9+ messages in thread
From: bugtrack @ 2004-11-09 18:22 UTC (permalink / raw)
  To: alsa-devel


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:              11-09-2004 19:22 CET
======================================================================
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.

======================================================================

----------------------------------------------------------------------
 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 ;)

----------------------------------------------------------------------
 tiwai - 11-09-04 19:22 
----------------------------------------------------------------------
Is the patch ready for submission?

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                          
11-09-04 19:22 tiwai          Note Added: 0002346                          
======================================================================




-------------------------------------------------------
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

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

* [ALSA - driver 0000607]: "rawusb" aka hwdep_pcm patch for snd-usb-usx2y >= 0.8.6
@ 2005-05-31 16:01 bugtrack
  0 siblings, 0 replies; 9+ messages in thread
From: bugtrack @ 2005-05-31 16:01 UTC (permalink / raw)
  To: alsa-devel


The following issue has been CLOSED
======================================================================
<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:                     closed
Distribution:               
Kernel Version:             
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             10-26-2004 21:36 CEST
Last Modified:              05-31-2005 18:01 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.

======================================================================

----------------------------------------------------------------------
 rncbc - 12-10-04 23:49 
----------------------------------------------------------------------
Just uploaded my own kernel patch
    linux-2.6.10-rc2-mm3-usx2y-0.8.7.patch.gz
as for convenience, which should apply against 2.6.10-rc2-mm3, and fit
with latest Ingo's RT patch(es). It upgrades to the snd-usb-usx2y version
0.8.7, as current of alsa-kernel CVS HEAD.

My latest tests ran against my custom jack-0.99.28.3usx2y, that includes a
proper jackd usx2y backend, and went just fine. 

    (see http://www.rncbc.org/usx2y/)

With that, I could reach a brand new low-latency "record" as with:

    jackd -R -dusx2y -dhw:1,2 -r44100 -p64 -n2

without crackling nor (much) xruns. Tested under
2.6.10-rc2-mm-RT-V0.7.32-18 on a P4@2.5Ghz laptop. Never though this could
happen with a USB audio device upon jackd, ever. Am I alone? Thanks
Karsten, first you solved the ohci horror, now this... :)

Two things to note about using this new interface:

- hw:N,2 (N=0,1,... index of snd-usb-usx2y on the snd stack);
- nrpacks=1 (e.g. modprobe snd-usb-usx2y nrpacks=1) is mandatory for this
hwdep pcm interface being up and available.

Take care.

----------------------------------------------------------------------
 tiwai - 01-20-05 19:16 
----------------------------------------------------------------------
The patch was already in ALSA 1.0.8.

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                          
11-09-04 19:22 tiwai          Note Added: 0002346                          
12-02-04 20:19 karsten        Note Added: 0002697                          
12-03-04 14:06 tiwai          Note Added: 0002710                          
12-10-04 23:22 rncbc          File Added:
linux-2.6.10-rc2-mm3-usx2y-0.8.7.patch.gz                    
12-10-04 23:49 rncbc          Note Added: 0002809                          
01-20-05 19:16 tiwai          Status                   assigned => resolved
01-20-05 19:16 tiwai          Resolution               open => fixed       
01-20-05 19:16 tiwai          Note Added: 0003333                          
05-31-05 18:01 perex          Status                   resolved => closed  
======================================================================




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005

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

* [ALSA - driver 0000607]: "rawusb" aka hwdep_pcm patch for snd-usb-usx2y >= 0.8.6
@ 2005-01-20 18:16 bugtrack
  0 siblings, 0 replies; 9+ messages in thread
From: bugtrack @ 2005-01-20 18:16 UTC (permalink / raw)
  To: alsa-devel


The following issue has been RESOLVED.
======================================================================
<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:                     resolved
Distribution:               
Kernel Version:             
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             10-26-2004 21:36 CEST
Last Modified:              01-20-2005 19:16 CET
======================================================================
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.

======================================================================

----------------------------------------------------------------------
 rncbc - 12-10-04 23:49 
----------------------------------------------------------------------
Just uploaded my own kernel patch
    linux-2.6.10-rc2-mm3-usx2y-0.8.7.patch.gz
as for convenience, which should apply against 2.6.10-rc2-mm3, and fit
with latest Ingo's RT patch(es). It upgrades to the snd-usb-usx2y version
0.8.7, as current of alsa-kernel CVS HEAD.

My latest tests ran against my custom jack-0.99.28.3usx2y, that includes a
proper jackd usx2y backend, and went just fine. 

    (see http://www.rncbc.org/usx2y/)

With that, I could reach a brand new low-latency "record" as with:

    jackd -R -dusx2y -dhw:1,2 -r44100 -p64 -n2

without crackling nor (much) xruns. Tested under
2.6.10-rc2-mm-RT-V0.7.32-18 on a P4@2.5Ghz laptop. Never though this could
happen with a USB audio device upon jackd, ever. Am I alone? Thanks
Karsten, first you solved the ohci horror, now this... :)

Two things to note about using this new interface:

- hw:N,2 (N=0,1,... index of snd-usb-usx2y on the snd stack);
- nrpacks=1 (e.g. modprobe snd-usb-usx2y nrpacks=1) is mandatory for this
hwdep pcm interface being up and available.

Take care.

----------------------------------------------------------------------
 tiwai - 01-20-05 19:16 
----------------------------------------------------------------------
The patch was already in ALSA 1.0.8.

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                          
11-09-04 19:22 tiwai          Note Added: 0002346                          
12-02-04 20:19 karsten        Note Added: 0002697                          
12-03-04 14:06 tiwai          Note Added: 0002710                          
12-10-04 23:22 rncbc          File Added:
linux-2.6.10-rc2-mm3-usx2y-0.8.7.patch.gz                    
12-10-04 23:49 rncbc          Note Added: 0002809                          
01-20-05 19:16 tiwai          Status                   assigned => resolved
01-20-05 19:16 tiwai          Resolution               open => fixed       
01-20-05 19:16 tiwai          Note Added: 0003333                          
======================================================================




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

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

* [ALSA - driver 0000607]: "rawusb" aka hwdep_pcm patch for snd-usb-usx2y >= 0.8.6
@ 2004-12-10 22:49 bugtrack
  0 siblings, 0 replies; 9+ messages in thread
From: bugtrack @ 2004-12-10 22:49 UTC (permalink / raw)
  To: alsa-devel


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:              12-10-2004 23:49 CET
======================================================================
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.

======================================================================

----------------------------------------------------------------------
 tiwai - 12-03-04 14:06 
----------------------------------------------------------------------
Yes, it sounds fine.

----------------------------------------------------------------------
 rncbc - 12-10-04 23:49 
----------------------------------------------------------------------
Just uploaded my own kernel patch
    linux-2.6.10-rc2-mm3-usx2y-0.8.7.patch.gz
as for convenience, which should apply against 2.6.10-rc2-mm3, and fit
with latest Ingo's RT patch(es). It upgrades to the snd-usb-usx2y version
0.8.7, as current of alsa-kernel CVS HEAD.

My latest tests ran against my custom jack-0.99.28.3usx2y, that includes a
proper jackd usx2y backend, and went just fine. 

    (see http://www.rncbc.org/usx2y/)

With that, I could reach a brand new low-latency "record" as with:

    jackd -R -dusx2y -dhw:1,2 -r44100 -p64 -n2

without crackling nor (much) xruns. Tested under
2.6.10-rc2-mm-RT-V0.7.32-18 on a P4@2.5Ghz laptop. Never though this could
happen with a USB audio device upon jackd, ever. Am I alone? Thanks
Karsten, first you solved the ohci horror, now this... :)

Two things to note about using this new interface:

- hw:N,2 (N=0,1,... index of snd-usb-usx2y on the snd stack);
- nrpacks=1 (e.g. modprobe snd-usb-usx2y nrpacks=1) is mandatory for this
hwdep pcm interface being up and available.

Take care.

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                          
11-09-04 19:22 tiwai          Note Added: 0002346                          
12-02-04 20:19 karsten        Note Added: 0002697                          
12-03-04 14:06 tiwai          Note Added: 0002710                          
12-10-04 23:22 rncbc          File Added:
linux-2.6.10-rc2-mm3-usx2y-0.8.7.patch.gz                    
12-10-04 23:49 rncbc          Note Added: 0002809                          
======================================================================




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

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

* [ALSA - driver 0000607]: "rawusb" aka hwdep_pcm patch for snd-usb-usx2y >= 0.8.6
@ 2004-12-03 13:06 bugtrack
  0 siblings, 0 replies; 9+ messages in thread
From: bugtrack @ 2004-12-03 13:06 UTC (permalink / raw)
  To: alsa-devel


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:              12-03-2004 14:06 CET
======================================================================
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 - 12-02-04 20:19 
----------------------------------------------------------------------
some debug stuff has to be pulled out.
>From my point of view a patch for cvs would:
- only enable hwdep pcm when parameter nrpacks is 1
  or (USX2Y_NRPACKS_VARIABLE is undefined and USX2Y_NRPACKS is 1)
  Other cases are not lowlatency anyhow and
  are covered by the existing mode of operation.
- not add anything to the kernel config space.
Is that ok with you?

----------------------------------------------------------------------
 tiwai - 12-03-04 14:06 
----------------------------------------------------------------------
Yes, it sounds fine.

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                          
11-09-04 19:22 tiwai          Note Added: 0002346                          
12-02-04 20:19 karsten        Note Added: 0002697                          
12-03-04 14:06 tiwai          Note Added: 0002710                          
======================================================================




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

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

* [ALSA - driver 0000607]: "rawusb" aka hwdep_pcm patch for snd-usb-usx2y >= 0.8.6
@ 2004-12-02 19:19 bugtrack
  0 siblings, 0 replies; 9+ messages in thread
From: bugtrack @ 2004-12-02 19:19 UTC (permalink / raw)
  To: alsa-devel


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:              12-02-2004 20:19 CET
======================================================================
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.

======================================================================

----------------------------------------------------------------------
 tiwai - 11-09-04 19:22 
----------------------------------------------------------------------
Is the patch ready for submission?

----------------------------------------------------------------------
 karsten - 12-02-04 20:19 
----------------------------------------------------------------------
some debug stuff has to be pulled out.
>From my point of view a patch for cvs would:
- only enable hwdep pcm when parameter nrpacks is 1
  or (USX2Y_NRPACKS_VARIABLE is undefined and USX2Y_NRPACKS is 1)
  Other cases are not lowlatency anyhow and
  are covered by the existing mode of operation.
- not add anything to the kernel config space.
Is that ok with you?

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                          
11-09-04 19:22 tiwai          Note Added: 0002346                          
12-02-04 20:19 karsten        Note Added: 0002697                          
======================================================================




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

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

* [ALSA - driver 0000607]: "rawusb" aka hwdep_pcm patch for snd-usb-usx2y >= 0.8.6
@ 2004-10-27  0:26 bugtrack
  0 siblings, 0 replies; 9+ messages in thread
From: bugtrack @ 2004-10-27  0:26 UTC (permalink / raw)
  To: alsa-devel


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

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

* [ALSA - driver 0000607]: "rawusb" aka hwdep_pcm patch for snd-usb-usx2y >= 0.8.6
@ 2004-10-26 19:39 bugtrack
  0 siblings, 0 replies; 9+ messages in thread
From: bugtrack @ 2004-10-26 19:39 UTC (permalink / raw)
  To: alsa-devel


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-26-2004 21:39 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.

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                          
======================================================================




-------------------------------------------------------
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

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

* [ALSA - driver 0000607]: "rawusb" aka hwdep_pcm patch for snd-usb-usx2y >= 0.8.6
@ 2004-10-26 19:36 bugtrack
  0 siblings, 0 replies; 9+ messages in thread
From: bugtrack @ 2004-10-26 19:36 UTC (permalink / raw)
  To: alsa-devel


The following issue has been SUBMITTED.
======================================================================
<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-26-2004 21:36 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.

======================================================================

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                    
======================================================================




-------------------------------------------------------
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

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

end of thread, other threads:[~2005-05-31 16:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-09 18:22 [ALSA - driver 0000607]: "rawusb" aka hwdep_pcm patch for snd-usb-usx2y >= 0.8.6 bugtrack
  -- strict thread matches above, loose matches on Subject: below --
2005-05-31 16:01 bugtrack
2005-01-20 18:16 bugtrack
2004-12-10 22:49 bugtrack
2004-12-03 13:06 bugtrack
2004-12-02 19:19 bugtrack
2004-10-27  0:26 bugtrack
2004-10-26 19:39 bugtrack
2004-10-26 19:36 bugtrack

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.