Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2007 13:15:03 +0800
From:      Ariff Abdullah <ariff@FreeBSD.org>
To:        Norberto Meijome <freebsd@meijome.net>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: [snd_hda] Choppiness under high cpu - STABLE
Message-ID:  <20070529131503.3b70a8e2.ariff@FreeBSD.org>
In-Reply-To: <20070529134158.7b221ae2@localhost>
References:  <20070529134158.7b221ae2@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Tue__29_May_2007_13_15_03_+0800_I.J2+T.L9JbcUpM9
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, 29 May 2007 13:41:58 +1000
Norberto Meijome <freebsd@meijome.net> wrote:
> Hi guys,
> Hi Ariff :)
>=20
> For a month or so I've been using your binary blob,
> sndkld_releng6_i386_lowlatency_20070426.tar.gz . It worked great, (
> and so did previous releases - thanks so much!)
>=20
> ( date in filename seems strange, as all the files are dated between
> 4th  and 7th of May 07)
>=20
> My sound card is :
> pcm0@pci0:27:0: class=3D0x040300 card=3D0x05b71014 chip=3D0x26688086
> rev=3D0x03 hdr=3D0x00
>     vendor     =3D 'Intel Corporation'
>     device     =3D '82801FB/FR/FW/FRW Intel High DefiNition Audio
>     Controller' class      =3D multimedia
>=20
> It is detected in dmesg as :
> pcm0: <HDA Codec: Analog Devices AD1981HD>
> pcm0: <HDA Driver Revision: 20070505_0044>
>=20
> kldstat:
>  4    1 0xc0907000 13be0    snd_hda.ko
>  5    2 0xc091b000 3dadc    sound.ko
>=20
>=20
> Anyway, a few days ago I upgraded my kernel + world to -STABLE:
>=20
> FreeBSD ayiin.octantis.com.au 6.2-STABLE FreeBSD 6.2-STABLE #1: Sat
> May 26 12:31:11 EST 2007   =20
> root@ayiin.octantis.com.au:/usr/obj/usr/src/sys/AYIIN i386
>=20
> which includes its own snd_hda :). Now, this version of the module
> (the one included in /usr/src, basically), outputs choppy sound when
> under high cpu load. It also seems to be doing small chirps every
> now and then (Very strange :D ).
>=20
> I replaced all the s*nd*.ko from -stable with your binary files and
> it all works sweet again.
>=20
> I haven't done any particular configuration , other than :
> hw.snd.maxautovchans=3D8
>=20
> in /etc/sysctl.conf.
>=20
> Is there anything I can do to help figure out what the problem is?
>=20

Those binary modules are actually sources from -current + future fixes
which not easily MFCable. The specific snd_hda driver itself pretty
much simmilar, but the other part especially buffering and latency
improvements are quite different. There is no simple solution for this
except to keep using those binary modules, or appplying patch from the
"usuall" place.

Anyway, you can try adjusting buffer size
with "hint.pcm.0.buffersize" . Start with 4096, 8192, 16384, etc.. Use
either kenv(8) and reload, or slap it into /boot/device.hints and
reboot.

Hope that helps.


--
Ariff Abdullah
FreeBSD

... Recording in stereo is obviously too advanced
    and confusing for us idiot ***** users :P ........

--Signature=_Tue__29_May_2007_13_15_03_+0800_I.J2+T.L9JbcUpM9
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGW7bXlr+deMUwTNoRAh4+AJ9gVbSxh5fwqNiwmAp9usY2ZlT78ACgy7cc
keW/Q66OCDo21viw3iWvJ0o=
=mYHD
-----END PGP SIGNATURE-----

--Signature=_Tue__29_May_2007_13_15_03_+0800_I.J2+T.L9JbcUpM9--



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