From owner-freebsd-stable Sun Sep 3 16:32: 3 2000 Delivered-To: freebsd-stable@freebsd.org Received: from db.wireless.net (adsl-gte-la-216-86-194-70.mminternet.com [216.86.194.70]) by hub.freebsd.org (Postfix) with ESMTP id DA32C37B423 for ; Sun, 3 Sep 2000 16:32:00 -0700 (PDT) Received: from db.wireless.net (dbm.wireless.net [192.168.0.2]) by db.wireless.net (8.9.3/8.9.3) with ESMTP id QAA67668; Sun, 3 Sep 2000 16:19:03 -0700 (PDT) (envelope-from dbutter@db.wireless.net) Message-ID: <39B2DF59.FA36BC24@db.wireless.net> Date: Sun, 03 Sep 2000 16:31:37 -0700 From: Devin Butterfield X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Jacques A. Vidrine" Cc: kmays , freebsd-stable@FreeBSD.ORG Subject: Re: FreeBSD v4.1R on laptops References: <019c01c014fe$4279c860$8a42163f@KenMays> <39B19161.F6939E33@db.wireless.net> <20000903094518.A2627@hamlet.nectar.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Jacques A. Vidrine" wrote: > > On Sat, Sep 02, 2000 at 04:46:41PM -0700, Devin Butterfield wrote: > > I have 4.1-STABLE running fine on my Sony Z505SX. X works fine at > > 1024x768, and sound works with only a small hack. APM also works great. > > What's the hack? > > (I also run 4.1-STABLE on Sony Z505SX: sound ``just works'') Hmmm...perhaps there was a fix recently (I have not made world for several weeks). Nevertheless the fix/hack was to uncomment chn_dmaupdate() from /sys/dev/sound/pcm/channel.c. Here is a snip from the original un-modded code: [...] at line 231 b->rp = chn_getptr(c); b->fp = (b->rp + b->bufsize / 4) % b->bufsize; b->rl = b->bufsize / 4; b->fl = b->bufsize - b->rl; b->underflow = 0; } else { /* chn_dmaupdate(c); */ } } With this line commented (as I and a number of other people reported in a thread on this list) attempting to play a sound file would cause the channel to lock up saying something like "pcm0: play interrupt timeout" and then only a reboot would unlock it. -- Regards, Devin. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message