pcm0: <Intel 82801CA (ICH3)> fails at recording
Stuart Barkley
stuartb at 4gh.net
Mon Oct 20 10:14:39 PDT 2003
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
More information about the freebsd-multimedia
mailing list