The attached patch updates the PC-Speaker.conf for the use of softvol.
Signed-off-by: Stas Sergeev <stsp@aknet.ru>
@args.CARD {
type string
}
- type hw
- card $CARD
+ type softvol
+ slave.pcm {
+ type hw
+ card $CARD
+ }
+ control {
+ name "Master Playback Volume"
+ card $CARD
+ }
+ min_dB -10.0
+ max_dB 20.0
}
# default with dmix & null
playback.pcm {
type plug
slave.pcm {
- type dmix
- ipc_key 5678293
- ipc_key_add_uid yes
- slave {
- pcm {
- type hw
- card $CARD
- }
- period_time 0
- period_size 1024
- buffer_size 8192
- format S16_LE
- channels 1
- rate 37286
+ type softvol
+ slave.pcm {
+ @func concat
+ strings [ "dmix:" $CARD ]
+ }
+ control {
+ name "Master Playback Volume"
+ card $CARD
}
+ min_dB -10.0
+ max_dB 20.0
}
}
capture.pcm {