Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Possible fix for Allo Piano 2.1
#1
Refering to my problem with Allo Piano 2.1 in MoOde 9.x.x (https://moodeaudio.org/forum/showthread.php?tid=6487), or more precise the latest RPi kernel, I'm still looking for a solution.
Today I found out that the Volumio community apparently, only days ago, has a fix. The fix is at kernel level. Way above my hat.
So I wonder if it is possible to implement this fix with MoOde. It looks like one file related to the Allo Piano has to be fixed.

The link to Volumio where the problem is discussed: https://moodeaudio.org/forum/showthread.php?tid=6487
Link to the possible solution: https://github.com/raspberrypi/linux/issues/6527

Most likely several users of MoOde will be happy if this is possible to implement.
Regards
Wim
Reply
#2
Sure but since we only use stable, official RPi kernels we won't pick up the fix until they release the next kernel.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
For those who are using an Allo Piano 2.1 I can confirm that the upcoming fix for the RPiOS kernel is providing a patch for the DAC.
I updated the kernel to the latest (unstable?) release and MoOde is starting normally now and more important the Allo Piano 2.1 with Allo Kali is producing a nice sound again.
I do encounter some problems with setting the right modus of the DAC.
Below the output of the moodeutl -l command:

Code:
20241218 104118 worker: --
20241218 104118 worker: -- Start moOde 9 series
20241218 104118 worker: --
20241218 104118 worker: Daemonize:     complete
20241218 104124 worker: Linux startup: complete
20241218 104124 worker: Boot config:   ok
20241218 104124 worker: Boot folder:   ok
20241218 104124 worker: Radio table:   ok
20241218 104125 worker: PHP session:   cleaned
20241218 104125 worker: PHP session:   loaded
20241218 104127 worker: Package locks: applied
20241218 104128 worker: File check:    complete
20241218 104128 worker: Log to RAM:    on
20241218 104128 worker: Debug logging: off
20241218 104128 worker: --
20241218 104128 worker: -- System
20241218 104128 worker: --
20241218 104130 worker: Host name:     raspberrypi
20241218 104130 worker: RPi model:     Pi-4B 1.5 2GB
20241218 104130 worker: moOde release: 9.1.5 2024-11-26
20241218 104130 worker: RaspiOS:       12.8 Bookworm 64-bit
20241218 104130 worker: Linux Kernel:  40 64-bit
20241218 104130 worker: MPD version:   0.23.14
20241218 104130 worker: User id:       wim
20241218 104130 worker: Home folder:   /home/wim
20241218 104130 worker: Time zone:     Europe/Amsterdam
20241218 104130 worker: Kbd layout:    us
20241218 104130 worker: HDMI ports(s): on
20241218 104130 worker: HDMI-CEC:      off
20241218 104130 worker: Sys LED0:      on
20241218 104130 worker: Sys LED1:      on
20241218 104130 worker: Reduce power:  n/a
20241218 104130 worker: Fan control:   n/a
20241218 104130 worker: CPU governor:  ondemand
20241218 104130 worker: Integ audio:   vc4-kms-v3d
20241218 104130 worker: --
20241218 104130 worker: -- Network
20241218 104130 worker: --
20241218 104130 worker: Eth0
20241218 104130 worker: Ethernet: adapter exists
20241218 104130 worker: Ethernet: timeout off
20241218 104130 worker: Ethernet: method  dhcp
20241218 104130 worker: Ethernet: address 192.168.1.185
20241218 104130 worker: Ethernet: netmask 255.255.255.0
20241218 104130 worker: Ethernet: gateway 192.168.1.1
20241218 104130 worker: Ethernet: pri DNS 192.168.1.177
20241218 104130 worker: Ethernet: domain  none found
20241218 104130 worker: Wlan0
20241218 104130 worker: Wireless: adapter exists
20241218 104130 worker: Wireless: country NL
20241218 104130 worker: Wireless: SSID    Pi3-In
20241218 104130 worker: Wireless: other   None
20241218 104130 worker: Wireless: timeout up to 90 secs
20241218 104130 worker: Wireless: connect to Pi3-In
20241218 104130 worker: Wireless: method  dhcp
20241218 104130 worker: Wireless: address 192.168.1.211
20241218 104130 worker: Wireless: netmask 255.255.255.0
20241218 104130 worker: Wireless: gateway 192.168.1.1
20241218 104130 worker: Wireless: pri DNS 192.168.1.177
20241218 104130 worker: Wireless: domain  none found
20241218 104130 worker: --
20241218 104130 worker: -- File sharing
20241218 104130 worker: --
20241218 104130 worker: SMB file sharing:  off
20241218 104130 worker: SMB password:      none
20241218 104130 worker: NFS file sharing:  off
20241218 104130 worker: DLNA file sharing: off
20241218 104130 worker: --
20241218 104130 worker: -- Special configs
20241218 104130 worker: --
20241218 104130 worker: Plexamp:          not installed
20241218 104130 worker: RoonBridge:       not installed
20241218 104130 worker: Allo Piano 2.1:   volume initialized
20241218 104130 worker: Allo Piano 2.1:   mode set to amixer: Unable to find simple control 'Dual Mode',0
20241218 104130 worker: Allo Boss 2:      not detected, OLED script ok
20241218 104130 worker: IQaudIO AMP*:     not detected
20241218 104130 worker: --
20241218 104130 worker: -- ALSA debug
20241218 104130 worker: --
20241218 104130 worker: Cards:  0:vc4hdmi0        1:PianoDACPlus    2:vc4hdmi1        3:empty
20241218 104130 worker:         4:empty           5:empty           6:empty           7:empty
20241218 104131 worker: Mixers: 0:none            1:(Master)        2:none            3:none
20241218 104131 worker:         4:none            5:none            6:none            7:none
20241218 104131 worker: --
20241218 104131 worker: -- Audio configuration
20241218 104131 worker: --
20241218 104131 worker: Audio device:  2:Allo Piano 2.1 Hi-Fi DAC
20241218 104131 worker: ALSA card:     has been reassigned to 1 from 2
20241218 104132 worker: MPD config:    updated
20241218 104132 worker: ALSA output:   I2S
20241218 104132 worker: ALSA mode:     Default (plughw)
20241218 104132 worker: ALSA mixer     Master
20241218 104132 worker: ALSA volume:   100% (24.00dB)
20241218 104132 worker: ALSA maxvol:   100%
20241218 104132 worker: ALSA loopback: off
20241218 104132 worker: MPD mixer      Fixed (0dB)
20241218 104132 worker: Audio formats: S16_LE, S24_LE, S32_LE
20241218 104132 worker: CamillaDSP:    off
20241218 104132 worker: CDSP volume:   0dB
20241218 104132 worker: CDSP volrange: 60dB
20241218 104132 worker: --
20241218 104132 worker: -- MPD startup
20241218 104132 worker: --
20241218 104132 worker: MPD service:        started
20241218 104132 worker: MPD port 6600:      accepting connections
20241218 104132 worker: MPD ALSA Default:   on
20241218 104132 worker: MPD ALSA Bluetooth: off
20241218 104132 worker: MPD HTTP Server:    off
20241218 104132 worker: MPD volume:         0
20241218 104132 worker: Saved MPD vol:      -1
20241218 104132 worker: Saved SRC vol:      0
20241218 104132 worker: MPD crossfade:      off
20241218 104132 worker: MPD ignore CUE:     no
20241218 104132 worker: MPD CDSP volsync:   off
20241218 104132 worker: --
20241218 104132 worker: -- Music sources
20241218 104132 worker: --
20241218 104132 worker: USB drives:     none
20241218 104132 worker: NVMe drives:    none
20241218 104132 worker: NAS sources:    none
20241218 104132 worker: --
20241218 104132 worker: -- Feature availability
20241218 104132 worker: --
20241218 104132 worker: Input select:    available, Source: MPD, Output: Allo Piano 2.1 Hi-Fi DAC
20241218 104132 worker: Bluetooth:       available, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20241218 104132 worker: AirPlay:         available
20241218 104132 worker: Spotify Connect: available
20241218 104132 worker: Squeezelite:     available
20241218 104132 worker: UPnP client:     available
20241218 104132 worker: Plexamp:         not installed, ALSA maxvol: 100%
20241218 104132 worker: RoonBridge:      not installed
20241218 104132 worker: Multiroom:       available
20241218 104132 worker: GPIO buttons:    available
20241218 104132 worker: Stream recorder: n/a
20241218 104132 worker: --
20241218 104132 worker: -- Security
20241218 104132 worker: --
20241218 104132 worker: Web SSH server:    off
20241218 104132 worker: XSS detection:     off
20241218 104132 worker: HTTPS mode:        available
20241218 104132 worker: --
20241218 104132 worker: -- Peripherals
20241218 104132 worker: --
20241218 104134 worker: Local display:   off
20241218 104134 worker: Chromium ver:    130.0.6723.116-1~deb12u1+rpt1
20241218 104134 worker: Screen blank     600
20241218 104134 worker: On-screen kbd:   off
20241218 104134 worker: Disable GPU:     off
20241218 104134 worker: HDMI orient:     landscape
20241218 104134 worker: HDMI 4K 60Hz:    off
20241218 104134 worker: DSI scn type:    none
20241218 104134 worker: DSI backlight:   off
20241218 104134 worker: DSI brightness:  255
20241218 104134 worker: DSI rotate:      0
20241218 104134 worker: Rotary encoder:  off
20241218 104134 worker: USB volume knob: off
20241218 104134 worker: LCD updater:     off
20241218 104134 worker: --
20241218 104134 worker: -- Miscellaneous
20241218 104134 worker: --
20241218 104134 worker: Software update:   Automatic check off
20241218 104134 worker: Auto-CoverView:    off
20241218 104134 worker: CoverView timeout: Never
20241218 104134 worker: Auto-shuffle:      off
20241218 104134 worker: Auto-play:         off
20241218 104134 worker: Maintenance task:  360 mins
20241218 104134 worker: Current view:      reset to Playback
20241218 104134 worker: Active flags:      all false
20241218 104134 worker: Reset flags:       skipped
20241218 104134 worker: Session check:     ok
20241218 104134 worker: --
20241218 104134 worker: -- Startup complete
20241218 104134 worker: --
20241218 104134 worker: Mount monitor:    started
20241218 104134 worker: Radio monitor:    off
20241218 104134 worker: Watchdog monitor: started
20241218 104134 worker: Responsiveness:   Default
20241218 104134 worker: Ready

Regards
Wim
Reply
#4
This error suggests the fixed piano driver might not be exposing sone ALSA controls.

Code:
20241218 104130 worker: Allo Piano 2.1:   mode set to amixer: Unable to find simple control 'Dual Mode',0

Try this command in the home directory that prints the controls

Code:
./piano.sh

Then try the mixer command and see if the control named "Item0" exists and if so are the modes listed for example "Dual Mode", "Subwoofer mode" etc
Code:
mixer

This is the code block in /var/www/util/sysutil.sh that handles piano controls. The same commands are used in the home dir ./piano.sh script.
Code:
# Get/Set for Allo Piano 2.1 DAC
if [[ $1 = "get-piano-dualmode" || $1 = "set-piano-dualmode" || $1 = "get-piano-submode" || $1 = "set-piano-submode" || $1 = "get-piano-lowpass" || $1 = "set-piano-lowpass" || $1 = "get-piano-subvol" || $1 = "set-piano-subvol" ]]; then
    if [[ $1 = "get-piano-dualmode" ]]; then
        awk -F"'" '/Item0/ {print $2; count++; if (count==1) exit}' <(amixer -c 0 sget "Dual Mode")
        exit
    elif [[ $1 = "set-piano-dualmode" ]]; then
        amixer -c 0 sset "Dual Mode" "$2" >/dev/null
        exit
    elif [[ $1 = "get-piano-submode" ]]; then
        awk -F"'" '/Item0/ {print $2; count++; if (count==1) exit}' <(amixer -c 0 sget "Subwoofer mode")
        exit
    elif [[ $1 = "set-piano-submode" ]]; then
        amixer -c 0 sset "Subwoofer mode" "$2" >/dev/null
        exit
    elif [[ $1 = "get-piano-lowpass" ]]; then
        awk -F"'" '/Item0/ {print $2; count++; if (count==1) exit}' <(amixer -c 0 sget "Lowpass")
        exit
    elif [[ $1 = "set-piano-lowpass" ]]; then
        amixer -c 0 sset "Lowpass" "$2" >/dev/null
        exit
    elif [[ $1 = "get-piano-subvol" ]]; then
        awk -F"[][]" '/%/ {print $2; count++; if (count==1) exit}' <(amixer -c 0 sget "Subwoofer")
        exit
    elif [[ $1 = "set-piano-subvol" ]]; then
        amixer -c 0 sset "Subwoofer" "$2%" >/dev/null
        exit
    fi
fi
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
output of ./piano.sh

Code:
amixer: Unable to find simple control 'Dual Mode',0

amixer: Unable to find simple control 'Subwoofer mode',0

amixer: Unable to find simple control 'Subwoofer',0

amixer: Unable to find simple control 'Lowpass',0

amixer: Unable to find simple control 'Master',0

Dual mode:
Subw mode:
Sub xover:
Sub level:
Mstr levl:


The command alsamixer gives: "This sound device does not have any controls. "

Bummer.
Looks like I have to connect to the RPiOS developers?

Still the sound from the system is really good. Looks (sounds) like the system is running in stereo modus (2.0).
Regards
Wim
Reply
#6
(12-18-2024, 12:07 PM)Sunfish Wrote: output of ./piano.sh

Code:
amixer: Unable to find simple control 'Dual Mode',0

amixer: Unable to find simple control 'Subwoofer mode',0

amixer: Unable to find simple control 'Subwoofer',0

amixer: Unable to find simple control 'Lowpass',0

amixer: Unable to find simple control 'Master',0

Dual mode:
Subw mode:
Sub xover:
Sub level:
Mstr levl:


The command alsamixer gives: "This sound device does not have any controls. "

Bummer.
Looks like I have to connect to the RPiOS developers?

Still the sound from the system is really good. Looks (sounds) like the system is running in stereo modus (2.0).
Regards
Wim

Right. You should post a new issue to the kernel git repo for example "Allo Piano DAC 2.1 missing alsa controls"

1. Mention that you bumped the kernel to include the "Fix volume limit locking" patch
https://github.com/raspberrypi/linux/com...7156a1a4b4

2. Mention that the alsamixer reports "This sound device does not have any controls."

3. Provide the output from the amixer command
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
Thanks for posting that issue. Here's the link for reference and tracking
https://github.com/raspberrypi/linux/issues/6548
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#8
@Sunfish did u install the Allo firmware files for the Piano 2.1?
They have never been included in moode because of license restrictions.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#9
(12-19-2024, 12:22 AM)Tim Curtis Wrote: @Sunfish did u install the Allo firmware files for the Piano 2.1?
They have never been included in moode because of license restrictions.

No additional files were installed. All versions of MoOde I used have been working with the drivers provided with the image.
Reply
#10
Do you use the Subwoofer xover freq and volume options?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: