uaudio patch, configurable buffer size
Alexander Leidinger
Alexander at Leidinger.net
Sun Mar 6 15:27:24 GMT 2005
On Sat, 5 Mar 2005 17:40:05 -0500
Mathew Kanner <mat at cnd.mcgill.ca> wrote:
> Hi All,
> I couldn't use my usb device because the default buffer size
> (16*1024 bytes) was too much to be allocated (dma changes that
> happened a while ago). The following is a patch to make it a tunable:
>
> http://www.cnd.mcgill.ca/~mat/uaudio-HEAD-buffersize-tunable.diff.gz
There's an open PR about it. It changes the buffer size. AFAIR it also
talks about changing the value of a parameter to a busdma call instead.
I've patched the busdma call and now the device is detected here (but I
don't hear any output...).
I think you should add another set of validation code: The buffer size
is divided by 2 in the code, so I think it should at least print a
warning if "buffsize % 2 != 0".
> Would love to hear if this works for anybody else,
I haven't tried it yet, maybe I get time to test it in the next days.
Can you also please have a look at PR usb/78028? It adds some info to
/dev/sndstat.
Bye,
Alexander.
--
To boldly go where I surely don't belong.
http://www.Leidinger.net Alexander @ Leidinger.net
GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7
More information about the freebsd-multimedia
mailing list