Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 1998 08:56:10 +0100 (MET)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        nabe@ksj.mcu.or.jp (NABETANI Masaki)
Cc:        junker@jazz.snu.ac.kr
Subject:   Re: splay-0.8.2 & FreeBSD Audio Driver (980215)
Message-ID:  <199810220756.IAA11737@labinfo.iet.unipi.it>
In-Reply-To: <19981022181815P.nabe@ksj.mcu.or.jp> from "NABETANI Masaki" at Oct 22, 98 06:17:56 pm

next in thread | previous in thread | raw e-mail | index | archive | help
I got a report that the "pcm" driver does not start with small audio
files. This was due to a bug i introduced near the beginning of the
year to optimize performance :)

in any case, the fix is easy and i will commit it in the next hours on
-current (and for -stable, an update to the whole "pcm" code is
coming in): in dmabuf.c, function dsp_wrintr, change one line near
line 183 as follows:

         * check if we need to reprogram the DMA on the sound card.
         * This happens if the size has changed _and_ the new size
         * is smaller, or it matches the blocksize.
         */
-       if (l != b->dl && (l < b->dl || l == d->play_blocksize)){
+       if (l != b->dl && (b->dl == 0 || l < b->dl || l == d->play_blocksize)){
            /* for any reason, size has changed. Stop and restart */
            DEB(printf("wrintr: bsz change from %d to %d, rp %d rl %d\n",
                b->dl, l, b->rp, b->rl));



	cheers
	luigi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810220756.IAA11737>