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
#11
(12-19-2024, 10:35 AM)Tim Curtis Wrote: Do you use the Subwoofer xover freq and volume options?
No Subwoofer so not using crossover. Soundsystem is 2.0
Not using the volume options (MPD) all default.


Audio output settings --> volume type: Fixed (0dB)

ALSA Options: Max volume: 100 (defaulkt)
                      Output mode: direct (below this is says: "ALSA:hw:2,0"
                      No Loopback
                      No Multiroom
Reply
#12
In that case the firmware files won't be needed.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#13
The RPi kernel, starting with kernel 6.6.66, contains a fix so that MoOde 9.x.x can load the proper driver for the Allo Piano 2.1 dac.
Realizing that the current kernel version used by MoOde is 6.6.62 the following is a suggestion to force the cardnumber to 0 (zero) as that is expected by the Alsamixer.
 Currently the the output of aplay -l is:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 2: PianoDACPlus [PianoDACPlus], device 0: PianoDACPlus multicodec-0 [PianoD
 Subdevices: 0/1
 Subdevice #0: subdevice #0

I manually created: sudo nano /etc/modprobe.d/alsa-base.conf
with the following line:
Code:
options snd slots=snd_soc_allo_piano_dac_plus

This will force the cardnumber for the Allo Piano 2.1 to 0 upon boot (every time).
Information can be found on the site: wiki.archlinux.org in chapter 3.2.

After reboot the output of aplay -l is:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: PianoDACPlus [PianoDACPlus], device 0: PianoDACPlus multicodec-0 [PianoD
 Subdevices: 0/1
 Subdevice #0: subdevice #0
card 1: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
As far as i can tell all functions related to ALSA are working properly.

Is it feasibble to implement this at the time the 6.6.66 kernel or above is introduced in MoOde?
I have no idea if the forced card numbering will break other stuff. 

regards
Wim
Reply
#14
Why do you need to force the card number to 0?

Moode just uses whatever card number ALSA assigns.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#15
Reason for forcing the cardnumber is that in the section "chip options" the modus of the Piano 2.1 dac is not properly shown. Also it is impossible to change the modus. (Stereo 2.0/2.1, dual mono, dual stereo etc
Changing the files piano.sh, line 603 in worker.php and sysutil.sh give strange results.
Introducing carnumber 2 in these files result in the piano dac obtaining cardnumber 0. Changing the cardnumber back to original the cardnumber fals back to 2. And the Alsamixer does not follow.
Reply
#16
Ok I see the bug. The cardnum is hard coded to 0 in a few places. I'll fix for upcoming 9.2.1.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#17
Thanks for your support.
Happy new year
Wim
Reply


Forum Jump: