Date: Mon, 20 Oct 2003 13:14:33 -0400 (EDT) From: Stuart Barkley <stuartb@4gh.net> To: "Luis J. Rodriguez" <luisja@we.lc.ehu.es> Cc: freebsd-multimedia@freebsd.org Subject: Re: pcm0: <Intel 82801CA (ICH3)> fails at recording Message-ID: <20031020125141.Y88920@freeman.4gh.net> In-Reply-To: <3F8EAD0D.7030204@we.lc.ehu.es> References: <3F8EAD0D.7030204@we.lc.ehu.es>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 16 Oct 2003 at 16:37 +0200, Luis J. Rodriguez wrote: > I have a Dell Latitude C640 laptop, with an integrated 16-bits > soundcard, compatible with Soundblaster (Intel 82801CA). It plays > well any kind of sound but it fails at recording. > [...] > it sounds creaky and slow, completely distorted. You don't say what version of FreeBSD, but this has been fixed in some versions. See: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/37831 I've been using a similar patch on my laptop with FreeBSD 4.7 which I pulled directly from -STABLE some time ago: diff -r -u ../src_dist/sys/dev/sound/pcm/feeder.c ./sys/dev/sound/pcm/feeder.c --- ../src_dist/sys/dev/sound/pcm/feeder.c Mon Apr 22 11:49:36 2002 +++ ./sys/dev/sound/pcm/feeder.c Wed Feb 19 03:36:43 2003 @@ -388,6 +388,10 @@ l = min(count, sndbuf_getready(src)); sndbuf_dispose(src, buffer, l); + /* When recording only return as much data as available */ + if (ch->direction == PCMDIR_REC) + return l; + /* if (l < count) printf("appending %d bytes\n", count - l); Stuart -- I've never been lost; I was once bewildered for three days, but never lost! -- Daniel Boone
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031020125141.Y88920>