Date: Wed, 10 Dec 2003 22:20:57 +0100 From: Michael Nottebrock <michaelnottebrock@gmx.net> To: multimedia@FreeBSD.org Subject: Problem with snd_ich and vchans Message-ID: <200312102221.03613.michaelnottebrock@gmx.net>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
This is probably a known phenomenon, but I report it anyway since I'm not sure
it is known for this specific combination.
I have a mobo with onboard sound:
pcm0: <Intel ICH2 (82801BA)> port 0xe800-0xe83f,0xec00-0xecff irq 10 at device
31.5 on pci0
pcm0: <C-Media Electronics CMI9739 AC97 Codec>
running by default with hw.snd.pcm0.ac97rate: 48000.
Now when I enable vchans, sound plays back to slowly (pitched down), fiddling
with above sysctl doesn't have any effect. I found the following in vchan.c:
/* XXX gross ugly hack, kill murder death */
if (first && !err) {
err = chn_reset(parent, AFMT_STEREO | AFMT_S16_LE);
if (err)
printf("chn_reset: %d\n", err);
err = chn_setspeed(parent, 44100);
if (err)
printf("chn_setspeed: %d\n", err);
}
When I change the 44100 to 48000 there, sound plays back normally with vchans
enabled.
--
,_, | Michael Nottebrock | lofi@freebsd.org
(/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org
\u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQA/144/Xhc68WspdLARAnM1AJ4iJ4/Li/SCt2L2w2EHKrQMhaJ6YACfVbO/
4aSWHkJtxkU0m3IcCh7igIE=
=ce0f
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312102221.03613.michaelnottebrock>
