Comment 9 for bug 204898

Revision history for this message
xtknight (xt-knight) wrote :

Here's a debdiff for karmic that enables *EXTREMELY EXPERIMENTAL* support for a logarithmic volume control. I warned you there.

Honestly it was pretty easy (so easy it's deceptive) but I don't know if it works perfectly. I haven't been able to try it on a card with a negative volume lower bound. e.g., in 'amixer -c 0' (for card 0), you'll see this:

  Limits: Playback 0 - 39

My code supports a negative lower bound (less than 0), but I don't know if that ever happens. Consider this a proof of concept. It should be tested a lot more until it's in the code base.

I attached a graph of how it works. The straight line y=x is how alsa is now. The other plot is how alsa will respond with the logarithmic scale with setting 0.7. More sensitivity on the upper end. Debdiff and ppa will come in a second.