From owner-freebsd-current Fri Dec 31 20:51:10 1999 Delivered-To: freebsd-current@freebsd.org Received: from finch-post-11.mail.demon.net (finch-post-11.mail.demon.net [194.217.242.39]) by hub.freebsd.org (Postfix) with ESMTP id 7F62A14F23 for ; Fri, 31 Dec 1999 20:51:07 -0800 (PST) (envelope-from gandalf@vilnya.demon.co.uk) Received: from vilnya.demon.co.uk ([158.152.19.238]) by finch-post-11.mail.demon.net with esmtp (Exim 2.12 #1) id 124GVN-000BFy-0B; Sat, 1 Jan 2000 04:51:05 +0000 Received: from nenya (nenya.rings [10.2.4.3]) by vilnya.demon.co.uk (Postfix) with SMTP id D026ED913; Sat, 1 Jan 2000 04:52:23 +0000 (GMT) Message-ID: <001f01bf5414$02bbbb80$0304020a@rings> From: "Cameron Grant" To: "Seigo Tanimura" , Cc: , "Seigo Tanimura" References: <14429.46098.1195.72159A@rina.r.dl.itc.u-tokyo.ac.jp><14433.63218.157116.72159A@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp><386278C7.B748EEF5@cvzoom.net><14434.52947.683451.72159A@rina.r.dl.itc.u-tokyo.ac.jp><14436.13492.839612.72159A@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp><14439.4177.642029.72159A@rina.r.dl.itc.u-tokyo.ac.jp><14439.26155.338725.72159A@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp><386AB7A8.DC369061@cvzoom.net> <14445.33821.200059.72159A@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp> Subject: Re: Newpcm is broken again for mpg123 (ESS 1868 isa sound card) Date: Sat, 1 Jan 2000 04:52:30 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.3825.400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.3825.400 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Donn> "ba ba ba ba ba ba ba ba ba ba ba ba ba ba". I have the ESS > Donn> 1868, of course. Well, I (wisely) saved my old kernel as > Donn> /kernel.good and just booted into that. > > Donn> Could you also say what was fixed if you get around to it? I'd > Donn> to learn a little more about the sound driver. > The following things were in the recent mail of mine: > > - All ioctl(2)s go to see the secondary buffer(if I have forget nothing). > - chn_setblocksize() changes the size of the secondary buffer. > - chn_mmap() maps the secondary buffer. > - chn_poll() invokes DMA. > - chn_wrintr() performs DMA emulation for pcm devices with no DMA > functionality(requested by nyan). > - SNDCTL_DSP_SETFRAGMENT handles the count correctly. > - GETI/OSPACE returns the number of fragments. > - DMA transfer keeps running upon underrun. Some DSPs seem to end up > with an unpredictable result if the DMA gets stopped followed by > immediate restart. This revokes the change in sys/dev/sound/pcm/channel.c > rev 1.12. > - chn_write() and chn_read() returns EAGAIN for nonblocking if there > are no space to write or data to read. the ess problem was a result of me reducing the buffer size to 8k instead of 64k to see what would happen. only ess cards seem to have problems, so it's back to 64k for them but 8k for other isa cards. - cameron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message