Re: [Alsa-user] volume control on spdif
Brought to you by:
perex
|
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2006-08-31 06:14:37
|
Lee Revell wrote:
> On Wed, 2006-08-30 at 18:15 +0200, XXXXXXXXXXXXXX wrote:
>> However if I use "surround 5.1" raw digital data is sent to the
>> device. I wonder if alsa is able to apply a digital volume control to
>> this stream. If it is possible, would some kind soul tell me how?
>
> This isn't really ALSA's job. Can't you enable software volume control
> in your application?
>
> Lee
In which one? MPlayer, Xine and so on? Come on, this is like having 5
remote controls and 5 different volume levels. Never knowing which one
to use. As every bit of sound has to go thru alsa this is the perfect
place to control sound volume.
Never the less alsa seems to have plugins for this. I found attached
stuff for .asoundrc and changed it a bit. However this does not really
change anything. I would have expected an additional slider in
alsamixed. But nothing happens. Anyone familiar with this cryptic stuff?
Oliver
my .asoundrc:
pcm.softvol {
type softvol
slave {
type plug
pcm "hw:0"
}
control {
name "SoftMaster"
}
}
pcm.!surround51 {
type plug
slave.pcm "softvol"
slave.channels 6
route_policy duplicate
}
pcm.!spdif {
type plug
slave.pcm "softvol"
slave.channels 6
route_policy duplicate
}
pcm.!default {
type plug
slave.pcm "softvol"
slave.channels 6
route_policy duplicate
}
|