From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 10 13:21:09 2003 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AFA516A4CE for ; Wed, 10 Dec 2003 13:21:09 -0800 (PST) Received: from meitner.wh.uni-dortmund.de (meitner.wh.uni-dortmund.de [129.217.129.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B6B943D1D for ; Wed, 10 Dec 2003 13:21:08 -0800 (PST) (envelope-from michaelnottebrock@gmx.net) Received: from lofi.dyndns.org (pc2-105.intern.meitner [10.3.12.105]) by meitner.wh.uni-dortmund.de (Postfix) with ESMTP id 2F4281676B4 for ; Wed, 10 Dec 2003 22:21:07 +0100 (CET) Received: from kiste.my.domain (kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.12.9p1/8.12.9) with ESMTP id hBALL4Pv064649 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Wed, 10 Dec 2003 22:21:05 +0100 (CET) (envelope-from michaelnottebrock@gmx.net) From: Michael Nottebrock Organization: FreeBSD To: multimedia@FreeBSD.org Date: Wed, 10 Dec 2003 22:20:57 +0100 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_/441/sLZ9b1a62I"; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200312102221.03613.michaelnottebrock@gmx.net> X-Virus-Scanned: by amavisd-new Subject: Problem with snd_ich and vchans X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2003 21:21:09 -0000 --Boundary-02=_/441/sLZ9b1a62I Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline This is probably a known phenomenon, but I report it anyway since I'm not s= ure=20 it is known for this specific combination. I have a mobo with onboard sound: pcm0: port 0xe800-0xe83f,0xec00-0xecff irq 10 at dev= ice=20 31.5 on pci0 pcm0: running by default with hw.snd.pcm0.ac97rate: 48000. Now when I enable vchans, sound plays back to slowly (pitched down), fiddli= ng=20 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 =3D chn_reset(parent, AFMT_STEREO | AFMT_S16_LE); if (err) printf("chn_reset: %d\n", err); err =3D 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 vcha= ns=20 enabled. =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --Boundary-02=_/441/sLZ9b1a62I Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/144/Xhc68WspdLARAnM1AJ4iJ4/Li/SCt2L2w2EHKrQMhaJ6YACfVbO/ 4aSWHkJtxkU0m3IcCh7igIE= =ce0f -----END PGP SIGNATURE----- --Boundary-02=_/441/sLZ9b1a62I--