Subject: Re: Ideas on the audio framework
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: None <cube@cubidou.net>
List: tech-kern
Date: 12/12/2004 12:09:20
--jaTU8Y2VLE5tlY1O
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Dec 12, 2004 at 10:30:22AM +0100, Jaromir Dolecek wrote:
> Jukka Marin wrote:
> > Give xmmix a try and you'll know why I dislike the way NetBSD works at =
the
> > moment.  Besides the fact that I stills strongly believe it is the very
> > purpose of the audio drivers to make the various audio hardware look the
> > same to the application programs.  I still don't know how other unix cl=
ones
> > work, but I'm 99% certain they do NOT work the way NetBSD does.
>=20
> FWIW, I agree with you here - IMHO the ioctl should make sure the volume
> is bumped to next hardware level in case the hw doesn't support the
> finer resolution. IMHO it's unnecessary nuisance for the app to have
> to care which particular resultion the particular audio hardware has.=20

That's exactly the change I committed to the ac97 mixers about a year
ago.  The issue is, it's very hard to do that with stateless mixers,
and I can't say I'm really satisfied with the result, but at least it
allows OSS applications to work to some extent in some situations.

Jukka said he didn't know any up/down applications.  I know two of
them:  mp3blaster and mplayer.

Both had the issue that the granularity of their own mixer change was
not enough to allow the volume to be pushed up, so I added a guess in
ac97.c to actually change the volume in that situation.

But I let you look at the downside of this:

for i in `jot 45 150`; do mixerctl -w outputs.master=3D$i; done

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"Commala-come-five! / Even when the shadows rise!
To see the world and walk the world / Makes ya glad to be alive."
Susannah's Song, The Dark Tower VI, Stephen King, 2004.

--jaTU8Y2VLE5tlY1O
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iQEVAwUBQbwm4NgoQloHrPnoAQJB7gf/cfSJjd84UMXYPwpXDzCSTg8T5U13+FwW
ZtRI7f+eohy7B+WMAJ2DG0ZhKrpY/W9oBsnAQuFYDDcjm0Bei7oGY68DSjXL1gwA
KmUBibgzbkfdMLAgGX4aIT7vFOdC9FDDdgXP9dWKsAC/mUITg4Tyt28EslQqaln1
r6QCgyAQDJOKJFcBdJZ1d0rFcS5IjwyanMPl5kp6uFCOIHYrpHbNoTr2/AW2qNWl
jY1MxqTgDT27sEj3gAUgBD6lIxyYNIwNiy2grRRjSUlYls0jumy6GnPQUkjGXmm+
nm+s5LObdbzKl8Io9TFsS7huv8/jkcCDqxOVkE1SnquNTQFIYfWumw==
=eoku
-----END PGP SIGNATURE-----

--jaTU8Y2VLE5tlY1O--