0

Unable to control Snapcast Volume

Hi,

I am using the snapcast client of HifiberryOS on a HifiberryAMP clone and it plays at full volume on startup.

Is there a way to control the snapcast volume from the UI?

I am unable to control the volume by using the volume slider in the Hifiberry OS/beocreate GUI (as it only controls softvol). Using alsamixer works with the `master` and `channel` channels.

I have a couple of ideas/questions about the issue, maybe you can provide some feedback:

* Maybe the beocreate volume slider can be configured to control the `master` volume or the `channel` volume?
* Is there maybe a way to configure the snapcast client to start with a lower snapcast volume?
* Can HifiberryOS somehow control/set snapcast volume for itself?
* When I manually edit master volume, where could I put the `alsactl store` and `alsactl restore` commands in order to persist volume settings (and also survive OS updates)?

 

# cat /etc/asound.conf
#
# asound.conf for exclusive audio mode
#
defaults.pcm.rate_converter "samplerate"

defaults.pcm.card 0
defaults.ctl.card 0

pcm.hifiberry {
type hw
card 0
device 0
}
pcm.ttable {
type route
#ttable_config:stereo -30
ttable.0.0 0.03162277660168379332
ttable.1.1 0.03162277660168379332
ttable.0.1 0
ttable.1.0 0
slave.pcm "hifiberry"
}
pcm.softvol {
type softvol
slave.pcm "ttable"
control {
name "Softvol"
card 0
}
min_dB -90.2
max_dB 0.0
}
ctl.equal {
type equal;
}
pcm.equal {
type equal;
slave.pcm "plug:softvol";
}
pcm.!default { type plug; slave.pcm "softvol" } # SOFTVOL
# amixer 
Simple mixer control 'Master',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 248
Mono: 149 [60%]
Simple mixer control 'DSPVolume',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 255
Front Left: 255 [100%]
Front Right: 255 [100%]
Simple mixer control 'Channels',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 248
Front Left: 194 [78%]
Front Right: 194 [78%]
Simple mixer control 'Softvol',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 255
Front Left: 255 [100%]
Front Right: 255 [100%]

 

Thanks and keep up the great work!

Josef

8 comments

Please sign in to leave a comment.