[linux-audio-dev] dmix and jack
James Courtier-Dutton
James at superbug.co.uk
Mon Jan 30 21:05:11 UTC 2006
Paul Davis wrote:
> On Mon, 2006-01-30 at 20:05 +0000, James Courtier-Dutton wrote:
>> voidcreature at paradise.net.nz wrote:
>>> Has anyone managed to successfully get jackd talking to dmix?
>>>
>>> My dmix setup works fix (i run VoIP stuff, artsd, and other assorted junk
>>> through it daily).
>>>
>>> jackd works great when connect to hw:0,0 or to plughw:0,0 (with the warning),
>>> but if I point it at my dmix'd "default" it sits there with 100% CPU usage,
>>> and doesn't otherwise operate.
>>>
>>> Does anyone have this combination of jack and dmix working?
>>>
>> It is due to the fact that the alsa programming in jackd has been
>> implemented wrongly. The poll revents are not handled correctly.
>> This results is OK operation when using hw:0,0, but likely to fail for
>> more exotic alsa configurations like dmix.
>
> i will happily take a patch for this. or is it just the MMAP_COMPLEX
> patch and nothing more?
>
> --p
>
Paul,
If I get a moment, I will try to get a patch together for jackd this
weekend. It is just a matter of adding a few lines of code, so hopefully
won't take long.
If you want to make a head start, you need to add
snd_pcm_poll_descriptors_revents() calls.
I attach some GPL code from another project that should illustrate the
method to use.
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: start_alsa.c
Type: text/x-csrc
Size: 18822 bytes
Desc: not available
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20060130/32f7d094/attachment.c>
More information about the Linux-audio-dev
mailing list