cvs commit: src/sys/dev/sound/pci ds1.c
iedowse at FreeBSD.org
Sat Aug 23 06:00:49 PDT 2003
iedowse 2003/08/23 06:00:48 PDT
FreeBSD src repository
When calculating the block size to use for a particular sample rate,
round the result up to a multiple of 4 bytes so that it will always
be a multiple of the sample size. Also use the actual buffer size
from sc->bufsz instead of the default DS1_BUFFSIZE.
This fixes panics and bad distortion I have seen on Yamaha DS-1
hardware, mainly when playing certain Real Audio media.
Reviewed by: orion (an earlier version of the patch)
Revision Changes Path
1.35 +6 -4 src/sys/dev/sound/pci/ds1.c
More information about the cvs-src