V2.789: Allo Piano 2.1 doesn't work (ALSA exception)

I have been updating Volumio several times over the last few days.
With the current test version (2.794) the regular Piano now also gives the Alsa HW error. Tomorrow I will try to go back to the last official release and then try the upgrade to 2.794.

Last night I saw test version 2.795 and decided to apply it. It bricked both my players.
I had to re-apply 2.779. One instance I updated again, but that one also got bricked.
So, now V2.779 is on all my players.

Yes. Don’t forget dev version may work… Or not,:wink:

I’m aware of that, I wasn’t complaining :wink:
It’s just that I think it is easier for you guys if I report back early and often.
Now only the version with the piano 2.1 board is in Dev/test mode.

(I would love to see some formal feedback for these discourse ‘bug reports’, Perhaps a link to a github issue after a bug has been reproduced, or just a tag that it is confirmed.)

Version 2.798. Sound with both Piano and Piano 2.1.
No DSP options with the latter.
But, progress :slight_smile:

The sound settings is a mess currently. I have this issue too, and I think the issue is assumptions in code rather than real settings. If you change your alsa settings manually to dev 1:0 it should work.
This is a community project not a shelf product, so don’t expect it to work flawlessly :slight_smile:
What I currently do: manually edit /etc/mpd.cfg output alsa to use 1:0 instead of 2:0, turn off I2S in volumio settings so I can change output (why do you hide this???), save, turn i2s back on, save, edit mixer settings as these now try to use headphones out.

I agree that it is probably a coding issue.
The DSP settings are not shown when you configure the Piano 2.1.
How to configure these manually I don’t know and I don’t want to as I deploy the test builds as soon as they become available.
For now I have switched of the sub amp and play full range via the monitors.

See, for a partial solution, No sound out of HiFi Berry DAC + with Volumio2 (2.799)

For Piano 2.1, I don’t have mine currently … so can’t check

Can I help in any way?

I think the issue is perhaps the changed visibity in the Playback settings page.
Before you had 3 controls for I2S in the ‘Audio options’ section, now only 2.
Maybe that is why the DSP options remain hidden.

I have tried to analyse what happens, without any prior knowledge of the sources :slight_smile:

When you chose an I2S Dac, the list of cards loaded doesn’t contain the actual dac (via the function getAlsaCardsWithoutI2SDAC).
Then save this setting. No DSP settings are shown.
Then change to HDMI and save again. This loads the list of cards, including the I2S dac you just selected.
Chose the I2S dac (but don’t toggle the “I2S DAC switch”).
Save again. Now the DSP section is shown and settings can be saved and music plays…

Also (related to the Hifiberry issue?) the file [app/plugins/audio_interface/alsa_controller/index.js] contains a hardcoded card id 1 (lines 478, 479).
But my Piano 2.1 card is card 2; This is the output of amixer -c 2 scontents:
I hardcoded “-c 2” in both getDSPDACOptions and saveDSPOptions.

Simple mixer control ‘Master’,0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 207
Mono:
Front Left: Playback 170 [82%] [-18.50dB] [off]
Front Right: Playback 170 [82%] [-18.50dB] [off]
Simple mixer control ‘DSP Program’,0
Capabilities: enum
Items: ‘FIR interpolation with de-emphasis’ ‘Low latency IIR with de-emphasis’ ‘High attenuation with de-emphasis’ ‘Fixed process flow’ ‘Ringing-less low latency FIR’
Item0: ‘FIR interpolation with de-emphasis’
Simple mixer control ‘Analogue’,0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 1
Mono:
Front Left: Playback 1 [100%] [0.00dB]
Front Right: Playback 1 [100%] [0.00dB]
Simple mixer control ‘Analogue Playback Boost’,0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 1
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control ‘Auto Mute’,0
Capabilities: pswitch
Playback channels: Front Left - Front Right
Mono:
Front Left: Playback [on]
Front Right: Playback [on]
Simple mixer control ‘Auto Mute Mono’,0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control ‘Auto Mute Time Left’,0
Capabilities: enum
Items: ‘21ms’ ‘106ms’ ‘213ms’ ‘533ms’ ‘1.07s’ ‘2.13s’ ‘5.33s’ ‘10.66s’
Item0: ‘21ms’
Simple mixer control ‘Auto Mute Time Right’,0
Capabilities: enum
Items: ‘21ms’ ‘106ms’ ‘213ms’ ‘533ms’ ‘1.07s’ ‘2.13s’ ‘5.33s’ ‘10.66s’
Item0: ‘21ms’
Simple mixer control ‘Clock Missing Period’,0
Capabilities: enum
Items: ‘1s’ ‘2s’ ‘3s’ ‘4s’ ‘5s’ ‘6s’ ‘7s’ ‘8s’
Item0: ‘1s’
Simple mixer control ‘Deemphasis’,0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control ‘Digital’,0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 207
Mono:
Front Left: Playback 170 [82%] [-18.50dB] [on]
Front Right: Playback 170 [82%] [-18.50dB] [on]
Simple mixer control ‘Dual Mode’,0
Capabilities: enum
Items: ‘None’ ‘Dual-Mono’ ‘Dual-Stereo’
Item0: ‘None’
Simple mixer control ‘Lowpass’,0
Capabilities: enum
Items: ‘60’ ‘70’ ‘80’ ‘90’ ‘100’ ‘110’ ‘120’ ‘130’ ‘140’ ‘150’ ‘160’ ‘170’ ‘180’ ‘190’ ‘200’
Item0: ‘90’
Simple mixer control ‘Max Overclock DAC’,0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 40
Mono: 0 [0%]
Simple mixer control ‘Max Overclock DSP’,0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 40
Mono: 0 [0%]
Simple mixer control ‘Max Overclock PLL’,0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 20
Mono: 0 [0%]
Simple mixer control ‘Subwoofer’,0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 207
Mono:
Front Left: Playback 170 [82%] [-18.50dB] [off]
Front Right: Playback 170 [82%] [-18.50dB] [off]
Simple mixer control ‘Subwoofer mode’,0
Capabilities: enum
Items: ‘None’ ‘2.0’ ‘2.1’ ‘2.2’
Item0: ‘2.2’
Simple mixer control ‘Volume Ramp Down Emergency Rate’,0
Capabilities: enum
Items: ‘1 sample/update’ ‘2 samples/update’ ‘4 samples/update’ ‘Immediate’
Item0: ‘1 sample/update’
Simple mixer control ‘Volume Ramp Down Emergency Step’,0
Capabilities: enum
Items: ‘4dB/step’ ‘2dB/step’ ‘1dB/step’ ‘0.5dB/step’
Item0: ‘4dB/step’
Simple mixer control ‘Volume Ramp Down Rate’,0
Capabilities: enum
Items: ‘1 sample/update’ ‘2 samples/update’ ‘4 samples/update’ ‘Immediate’
Item0: ‘1 sample/update’
Simple mixer control ‘Volume Ramp Down Step’,0
Capabilities: enum
Items: ‘4dB/step’ ‘2dB/step’ ‘1dB/step’ ‘0.5dB/step’
Item0: ‘1dB/step’
Simple mixer control ‘Volume Ramp Up Rate’,0
Capabilities: enum
Items: ‘1 sample/update’ ‘2 samples/update’ ‘4 samples/update’ ‘Immediate’
Item0: ‘1 sample/update’
Simple mixer control ‘Volume Ramp Up Step’,0
Capabilities: enum
Items: ‘4dB/step’ ‘2dB/step’ ‘1dB/step’ ‘0.5dB/step’
Item0: ‘1dB/step’
volumio@mediaplayertest:~$

After saving the changes, you have to switch on I2S DAC again (and chose the correct DAC.)
Otherwise the system fails after a reboot.

I also added “DSP Program” as a possible setting, the 1542 on the Piano 2.1 has this setting too.

Thank you PjV, your info allowed us to fix the Piano DSP options issues :wink:

1 Like

I have deployed v2.803. Because of my changes to some files I had to do a factory reset first.
But, it seems to be working as it should.
I will probably start with 2.779 first and do a standard update.
Thanks!

Edit: started with a fresh v2.779 install and updated to v2.803. Works too. This issue can be closed!
(I would like to see DSP Program added to the dsp options in dac_dsp.json :slight_smile: )

Done!

I updated the raspberry pi 4 from version 2.799 to beta 2.803 and the DSP dual mono is visible and working again.
thanks :smiley:

New release is out for everyone!

meanwhile performed that update, but unfortunately no longer dual mono and get sound from one side.
after adjusting alsamixer (dual mono), the raspberry pi not starts up at all.
meanwhile a new sd card has been flashed, but unfortunately I only get sound from one side.

I’m going to try the link below to get dual mono back.

**edit:**no sound at all after adjustments.
only after the first boot after switching on piano 2.1, the sound comes from both speakers, all adjustments after that it no longer works and I get no sound from it and then I am forced to flash the sd card again.

in the meanwhile sent a log.


meanwhile found the problem, my battery for the allo isolator was almost empty :roll_eyes: so there was no sound.
sorry for the fuss :upside_down_face:

good to know! It was weird, because this release had the same fix of 2.803

only stereo / dual mono is not present, but dual mono works normally, sound from both speakers on both sides.
that is a bit strange.