From owner-freebsd-current Sat Jan 1 13: 9:58 2000 Delivered-To: freebsd-current@freebsd.org Received: from pozo.com (pozo.com [216.101.162.50]) by hub.freebsd.org (Postfix) with ESMTP id 1F62814FCD for ; Sat, 1 Jan 2000 13:09:56 -0800 (PST) (envelope-from mantar@pacbell.net) Received: from dual (dual.pozo.com [216.101.162.51]) by pozo.com (8.9.3/8.9.3) with ESMTP id NAA00322; Sat, 1 Jan 2000 13:09:40 -0800 (PST) (envelope-from mantar@pacbell.net) Message-Id: <4.2.2.20000101125410.00a976b0@pozo.com> X-Sender: null@pozo.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Sat, 01 Jan 2000 13:09:40 -0800 To: Cameron Grant , Seigo Tanimura , dmmiller@cvzoom.net From: Manfred Antar Subject: Re: Newpcm is broken again for mpg123 (ESS 1868 isa sound card) Cc: current@FreeBSD.ORG, Seigo Tanimura In-Reply-To: <001f01bf5414$02bbbb80$0304020a@rings> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 04:52 AM 1/1/00 +0000, Cameron Grant wrote: > > 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 I have the same problem with a motherboard with built in Crystal Audio : pcm0: at port 0x534-0x537,0x388-0x38b,0x220-0x22f irq 5 drq 1,0 on isa0 unknown0: at port 0x200-0x207 on isa0 unknown1: at port 0x120-0x127 on isa0 unknown2: at port 0x330-0x331 irq 9 on isa0 It works fine with revision 1.14 of channel.c and 1.12 of dsp.c and the corresponding header files. The new versions break sound. Example using the rsynth port With old version #say happy new year I get "happy new year" out of spaekers With new version : #say happy new year all that comes out of speakers is "happy" Also other problems occur with new version when playing au files. Thanks Manfred ===================== || mantar@pacbell.net || || Ph. (415) 681-6235 || ===================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message