lkml.org 
[lkml]   [2005]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Mac mini sound woes
At Tue, 29 Mar 2005 21:04:50 +1000,
Benjamin Herrenschmidt wrote:
>
>
> > Yes.
> >
> > > dmix has been around for a while but softvol plugin is very new, you
> > > will need ALSA CVS or the upcoming 1.0.9 release.
> >
> > dmix currently doesn't work on PPC well but I'll fix it soon later.
> > If it's confirmed to work, we can set dmix/softvol plugins for default
> > of snd-powermac driver configuration. Hopefully this will be finished
> > before 1.0.9 final.
>
> Can the driver advertize in some way what it can do ? depending on the
> machine we are running on, it will or will not be able to do HW volume
> control... You probably don't want to use softvol in the former case...

Add the following to ~/.asoundrc (or /etc/asound.conf for systemwise)

pcm.softvol {
type softvol
slave.pcm {
type hw
card 0
device 0
}
control {
name "PCM Playback Volume"
card 0
}
}

Then you can use the PCM "softvol", e.g.

% aplay -Dsoftvol foo.wav

This will create "PCM" volume control if it doesn't exist, and do
volume attenuation in software. If the control already exists (in the
driver), the software volume is skipped automatically.
The newly created volume can be saved/restored via alsactl.

In addition, you can override the ALSA default PCM by defining
~/.asound like:

pcm.!default "softvol"

> dmix by default would be nice though :)

Yeah, in future version, they will be set as default, i.e. without
extra definition of ~/.asoundrc.


Takashi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-04-06 13:31    [W:0.094 / U:2.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site