Volume No Longer Working

Volume control has stopped working after approx 8 months with no issue.

I have a RPI 3B+ running Volumio 2.773, connected via USB to an SMSL M100 DAC which has analog RCA outputs to my AMP.

The volume level appears to change in the volumio interface, but the sound level does not change coming out of my AMP.

I did notice that the Mixer Type in Settings > Playback Options had changed (for some reason) to undefined.

I changed it back to hardware, saved settings, but this did not fix issue.

I have rebooted both the DAC and the RPI, but the issue remains.

Any ideas ?

Could you share some logs?

Sure:

http://logs.volumio.org/volumio/[redacted].html

Looks like the Volumio API is failing to parse the correct mixer.

volumio volumio[934]: error: Cannot get ALSA Volume:
 Error: Alsa Mixer Error: amixer: Unable to find simple control '',0

Could you drop to an shell via ssh and run the following to debug?

amixer
amixer -c5 scontrols

You could also confirm that your hw mixer is working fine by playing some music on Volumio, then from the terminal launching

alsamixer
# Hit F6 and select your USB DAC
# use the arrow keys to move the sliders around to figure out which one changes the volume

volumio@volumio:~$ amixer
Simple mixer control ‘PCM’,0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback -10239 - 400
Mono: Playback -2000 [77%] [-20.00dB] [on]

volumio@volumio:~$ amixer -c5
Simple mixer control 'SMSL M100 v1.0 ',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 100 [79%] [-27.00dB] [on]
Front Right: Playback 100 [79%] [-27.00dB] [on]
Simple mixer control 'SMSL M100 v1.0 ',1
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 127
Mono: Playback 127 [100%] [0.00dB] [on]

volumio@volumio:~$ amixer -c5 scontrols
Simple mixer control 'SMSL M100 v1.0 ',0
Simple mixer control 'SMSL M100 v1.0 ',1

Could you confirm what the mixer name interpreted by Volumio is empty?

cat /data/configuration/audio_interface/alsa_controller/config.json

config.json:

{
“volumestart”: {
“type”: “string”,
“value”: “40”
},
“volumemax”: {
“type”: “string”,
“value”: “100”
},
“volumecurvemode”: {
“type”: “string”,
“value”: “logarithmic”
},
“outputdevice”: {
“type”: “string”,
“value”: “5”
},
“mixer_type”: {
“type”: “string”,
“value”: “Hardware”
},
“mixer”: {
“type”: “string”,
“value”: “”
},
“volumesteps”: {
“type”: “string”,
“value”: “10”
},
“outputdevicename”: {
“type”: “string”,
“value”: “SMSL M100 v1.0”
},
“mpdvolume”: {
“type”: “boolean”,
“value”: true
}
}

Just tested alsamixer while playing some music and confirmed that when I select item 5 SMSL M100 v1.0 I can control the volume correctly.

I’m not sure if it is normal, but selecting the SMSL option in alsamixer presents 2 seperate vertical gain sliders. 1 labelled ‘SMSL M100 v1.0’, the other ‘SMSL M100 v1.0 1’.

I can select between them using the left and right arrows, and both of them control the output volume.

Yep, looks like it fails to parse the mixer.

“mixer”: {
“type”: “string”,
“value”: “”

While the code to parse the mixer name is quite… roundabout, it does work. So I don’t understand why if everything was working earlier, it stopped suddenly in your case…

Could you follow logs on the console with journalctl -f and then from the UI go into to playback settings and save you Hardware mixer again?

1 Like

journalctl -f returns “No journal files were found.”

However, I set General Playback Options > Output Device to ‘Audio Jack’, saved and then reselected ‘SMSL M100 1.0’

When I run ‘cat /data/configuration/audio_interface/alsa_controller/config.json’ now, I see:

“mixer”: {
“type”: “string”,
“value”: "SMSL M100 v1.0 "
},

I’m going to run a quick sound check and report back…

Seems to be working again.

Thanks for your help.

(I did have a brief power outage a couple of days ago… not sure if that could have caused Volumio to loose its mixer config ??)