Subject: Re: DBRI audio
To: Rui Paulo <rpaulo@NetBSD.org>
From: Michael <macallan18@earthlink.net>
List: port-sparc
Date: 07/16/2005 10:48:42
--Signature_Sat__16_Jul_2005_10_48_42_-0400_LooBiEOYJhVZz6nN
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> Well it works quite well,
> dbri0 at sbus0 slot 14 offset 0x10000 level 9: rev e
> dbri0: speakerbox detected
> dbri0: cs4215 ver 2 found at offset 8
> audio0 at dbri0: half duplex, mmap
>=20
> Yay, I can play MP3s quite well ;)

Nice :)

> My main problem right now is,=20
> CPU states: 99.0% user,  0.0% nice,  0.5% system,  0.5% interrupt,=20
> 0.0% idle
> Why is mp321 eating all the CPU ?

Well, mp3 decoding is pretty CPU-intensive ( at least for machines of
this age ) - it's eating about 40% CPU time on my 110MHz microSPARC II.
And then - did you compile mpg123 with -mcpu=3Dv8 and so on?

> Whenever I try use the CPU, I get some overruns in the music and it
> sometimes stops playing.

Yeah, at 100% CPU load that's expectable :/

> I also get this kernel messages:
> dbri0: cs4215 didn't respond to CLB (0x00)
> dbri0: cs4215 didn't respond to CLB (0x00)
> dbri0: cs4215 didn't respond to CLB (0x00)

Hmm, this means the driver couldn't put the codec into control mode, but
that's only necessary to set parameters like sample format and -rate,
shouldn't happen during playback. I guess I should add some logic to
avoid unnecessary data/control mode transitions.

have fun
Michael

--Signature_Sat__16_Jul_2005_10_48_42_-0400_LooBiEOYJhVZz6nN
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQtkeTspnzkX8Yg2nAQKEAwf+MHfX7qb+XH+/IepayqTmPjBD+9wD0P+E
LnkxHx2pLD4/WUkrpn257tzvyhL8CX2pXeByYu/Fei8P0YtP6ceZLJBRwJ1Xe1lS
sGG+db22WzPUg7ZD0pE672wjqvRFodKsd66HXr1fTUjiW/vhAMVfV48AY0upc8nx
S8/mGtJ7XCQ5zQfDywXHIglszZ84JFYSh/qBESt2Epxgp/+DNZCypnN4dv6sl9KX
QGwEpNqw6qTazunrB2XIUrhqSoP8b4jWZhpnFyHFdq7hLMaSZuMLJtHmkJ/5gOhZ
6T7cH/9lzm0RVX8aUQZxd/aia0dncUgwZQGgHi2PDfoeK9VusK7M2g==
=SfL1
-----END PGP SIGNATURE-----

--Signature_Sat__16_Jul_2005_10_48_42_-0400_LooBiEOYJhVZz6nN--