Skip site navigation (1)Skip section navigation (2)
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

--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: <Intel ICH2 (82801BA)> port 0xe800-0xe83f,0xec00-0xecff irq 10 at dev=
ice=20
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), 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312102221.03613.michaelnottebrock>