* Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
elevader
Posts: 14
Joined: Thu Dec 06, 2018 6:44 pm

* Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)

Post by elevader »

Running current DietPi_RPi-ARMv7-Buster_AlloGUI.
If i activate EQ Enable under dietpi-justboom, i end up having no Sound at all. OMPD shows the file playing though.

In some testing instances, allo config webpage and dmesg were showing that an "-eq" was being added every time i enabled EQ.
Last edited by elevader on Thu Oct 08, 2020 5:51 pm, edited 1 time in total.
elevader
Posts: 14
Joined: Thu Dec 06, 2018 6:44 pm

* Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)

Post by elevader »

* Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)

Code: Select all

root@hifi:~# dietpi-justboom 

 DietPi-JustBoom
─────────────────────────────────────────────────────
 Mode: ALSA Output Info

closed

[FAILED] DietPi-JustBoom | Detailed info is only available when audio is being played, play some music first!
[  OK  ] DietPi-JustBoom | Completed, press any key to exit...

Press any key to exit...
[ SUB1 ] DietPi-Set_hardware > soundcard (allo-boss-dac-pcm512x-audio-eq)
[ INFO ] DietPi-Set_hardware | Checking for required APT packages: alsa-utils
[  OK  ] DietPi-Set_hardware | All required APT packages are already installed.
Found hardware: "BossDAC" "" "" "" ""
Hardware is initialized using a generic method
[  OK  ] DietPi-Set_hardware | Desired setting in /boot/config.txt was already set: dtparam=audio=off
[  OK  ] DietPi-Set_hardware | Setting in /boot/dietpi.txt adjusted: CONFIG_SOUNDCARD=allo-boss-dac-pcm512x-audio-eq
[  OK  ] DietPi-Set_hardware | Added setting dtoverlay=allo-boss-dac-pcm512x-audio to end of file /boot/config.txt
* Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)
[ INFO ] DietPi-Set_hardware | Checking for required APT packages: libasound2-plugin-equal
[  OK  ] DietPi-Set_hardware | All required APT packages are already installed.
[  OK  ] soundcard allo-boss-dac-pcm512x-audio | Completed
after reboot, Song seems to be played but no sound comes out of the Speakers

Code: Select all

root@hifi:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: BossDAC [BossDAC], device 0: Boss DAC HiFi [Master] pcm512x-hifi-0 [Boss DAC HiFi [Master] pcm512x-hifi-0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
part of dmesg

Code: Select all

[    4.824900] [vc_sm_connected_init]: start                                                                           
[    4.825076] vc_sm_cma_vchi_init: failed to open VCHI service (-1)                         
[    4.825081] [vc_sm_connected_init]: failed to initialize shared memory service         
[    4.863015] mc: Linux media interface: v0.10                                                                                                                                                                                               
[    4.929503] videodev: Linux video capture interface: v2.00                                                          
[    5.009182] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. 
[    5.023987] snd-allo-boss-dac soc:sound: ASoC: failed to init link Boss DAC: -517                                   
[    5.024000] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517                                       
[    5.052701] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.      
[    5.096445] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1)                                  
[    5.233012] cfg80211: Loading compiled-in X.509 certificates for regulatory database                                
[    5.300776] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'                                              
[    5.441830] rtl8192cu: Chip version 0x11                
[    5.471264] pcm512x 1-004d: 1-004d supply AVDD not found, using dummy regulator                                     
[    5.471324] pcm512x 1-004d: 1-004d supply DVDD not found, using dummy regulator                                     
[    5.471390] pcm512x 1-004d: 1-004d supply CPVDD not found, using dummy regulator                                    
[    5.539911] rtl8192cu: Board Type 0                                                                                 
[    5.540133] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1                                                       
[    5.540386] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin                                                
[    5.541279] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'            
[    5.546453] usbcore: registered new interface driver rtl8192cu                                                      
[    5.581315] snd-allo-boss-dac soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok    
asound.conf

Code: Select all

root@hifi:~# cat /etc/asound.conf 
ctl.eq {
        type equal
        controls "/root/.alsaequal.bin"
}

pcm.plugequal {
        type equal
        slave.pcm "plughw:0,0"
        controls "/root/.alsaequal.bin"
}

pcm.!default {
        type plug
        slave.pcm plugequal
        slave.channels 2
}

ctl.!default {
        type hw
        card 0
}
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: * Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)

Post by Joulinar »

Hi,

many thanks for your message. Probably something where @MichaIng would need to have a look as I'm not familiar with the Allo specific thinks/settings.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2324
Joined: Sat Nov 18, 2017 6:21 pm

Re: * Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)

Post by MichaIng »

Setup and configs all look good. We try to load the dtoverlay immediately, that fails, but it is known that this does not always work (sadly), so we allow it to fail. On boot it shows that -517 error, not sure if that is expected or not. Sadly there are quite a few expected kernel errors during RPi boot, like the vcsm/vhci one that is known to show up but is expected when GPU memory is below 32M.

Little search: https://audiophilestyle.com/forums/topi ... concerned/
Ah lol one on our forum: viewtopic.php?p=15293

So this seems to be expected indeed and the final "mapping ok" shows that all went well. I don't like such kind of errors, probably we can report this to the RPi firmware repository: https://github.com/raspberrypi/firmware/issues
Maybe loading the driver later would already prevent those errors.

You say there is no sound when you enable the equaliser. The "-eq" suffix is correct and the way the script detects whether to enable it or not, but that is removed before applying it to config.txt as you can see in the console output. But when you disable the equaliser, does it it work?

In general it could make sense to play a bid with the alsamixer settings: alsamixer
Would not be the first time that some control is set to "mute" by default.

Which RPi model btw?

Just found the tech details PDF from Allo: https://www.allo.com/sparky/boss-dac.html#downloads ("Preferred Setup Values")
allo-audio-techdetails.7z
(375.73 KiB) Downloaded 7 times
It contains as well which ALSA mixer controls are available and their default values. Probably that helps.
elevader
Posts: 14
Joined: Thu Dec 06, 2018 6:44 pm

Re: * Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)

Post by elevader »

Code: Select all

dietpi@hifi:~$ cat /proc/device-tree/model
Raspberry Pi 3 Model B Rev 1.2
Disabling the EQ via dietpi-Justboom is not working. I have to switch Soundcards via the Allo Browser Page and then i get Sound back.


EQ is not enabled in just-Boom

The asound.conf shows,

Code: Select all

dietpi@hifi:~$ cat /etc/asound.conf 
pcm.!default {
	type hw
	card 0
	device 0
}

ctl.!default {
	type hw
	card 0
}

Code: Select all

root@hifi:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: BossDAC [BossDAC], device 0: Boss DAC HiFi [Master] pcm512x-hifi-0 [Boss DAC HiFi [Master] pcm512x-hifi-0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

Code: Select all

root@hifi:/opt/bin# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=BossDAC
    BossDAC, Boss DAC HiFi [Master] pcm512x-hifi-0
    Default Audio Device
dmix:CARD=BossDAC,DEV=0
    BossDAC, Boss DAC HiFi [Master] pcm512x-hifi-0
    Direct sample mixing device
dsnoop:CARD=BossDAC,DEV=0
    BossDAC, Boss DAC HiFi [Master] pcm512x-hifi-0
    Direct sample snooping device
hw:CARD=BossDAC,DEV=0
    BossDAC, Boss DAC HiFi [Master] pcm512x-hifi-0
    Direct hardware device without any conversions
plughw:CARD=BossDAC,DEV=0
    BossDAC, Boss DAC HiFi [Master] pcm512x-hifi-0
    Hardware device with all software conversions

Code: Select all

root@hifi:~# dmesg |grep snd-allo-boss-dac
[    5.056848] snd-allo-boss-dac soc:sound: ASoC: failed to init link Boss DAC: -517
[    5.056862] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[    5.058596] snd-allo-boss-dac soc:sound: ASoC: failed to init link Boss DAC: -517
[    5.058609] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[    5.644111] snd-allo-boss-dac soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok

Allo GUI config page
Screenshot_2020-10-09 Dashboard.png
Screenshot_2020-10-09 SYSTEM SETTINGS.png

Justboom EQ Enabled

Code: Select all

dietpi@hifi:~$ sudo dietpi-justboom 
[ SUB1 ] DietPi-Set_hardware > soundcard (allo-boss-dac-pcm512x-audio-eq)
[ INFO ] DietPi-Set_hardware | Checking for required APT packages: alsa-utils
[  OK  ] DietPi-Set_hardware | All required APT packages are already installed.
Found hardware: "BossDAC" "" "" "" ""
Hardware is initialized using a generic method
[  OK  ] DietPi-Set_hardware | Desired setting in /boot/config.txt was already set: dtparam=audio=off
[  OK  ] DietPi-Set_hardware | Setting in /boot/dietpi.txt adjusted: CONFIG_SOUNDCARD=allo-boss-dac-pcm512x-audio-eq
[  OK  ] DietPi-Set_hardware | Added setting dtoverlay=allo-boss-dac-pcm512x-audio to end of file /boot/config.txt
* Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)
[ INFO ] DietPi-Set_hardware | Checking for required APT packages: libasound2-plugin-equal
[  OK  ] DietPi-Set_hardware | All required APT packages are already installed.
[  OK  ] soundcard allo-boss-dac-pcm512x-audio | Completed

Code: Select all

dietpi@hifi:~$ cat /etc/asound.conf 
ctl.eq {
	type equal
	controls "/root/.alsaequal.bin"
}

pcm.plugequal {
	type equal
	slave.pcm "plughw:0,0"
	controls "/root/.alsaequal.bin"
}

pcm.!default {
	type plug
	slave.pcm plugequal
	slave.channels 2
}

ctl.!default {
	type hw
	card 0
}

Code: Select all

dietpi@hifi:~$ sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: BossDAC [BossDAC], device 0: Boss DAC HiFi [Master] pcm512x-hifi-0 [Boss DAC HiFi [Master] pcm512x-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code: Select all

dietpi@hifi:~$ sudo aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
plugequal
default
sysdefault:CARD=BossDAC
    BossDAC, Boss DAC HiFi [Master] pcm512x-hifi-0
    Default Audio Device
dmix:CARD=BossDAC,DEV=0
    BossDAC, Boss DAC HiFi [Master] pcm512x-hifi-0
    Direct sample mixing device
dsnoop:CARD=BossDAC,DEV=0
    BossDAC, Boss DAC HiFi [Master] pcm512x-hifi-0
    Direct sample snooping device
hw:CARD=BossDAC,DEV=0
    BossDAC, Boss DAC HiFi [Master] pcm512x-hifi-0
    Direct hardware device without any conversions
plughw:CARD=BossDAC,DEV=0
    BossDAC, Boss DAC HiFi [Master] pcm512x-hifi-0
    Hardware device with all software conversions
Nothing new showed up in dmesg during enabling of the EQ.

EQ-Screenshot_2020-10-09 Dashboard.png
EQ-Screenshot_2020-10-09 SYSTEM SETTINGS.png
In the Allo GUI Web settings we find now the "rpi-bcm2835-auto" instead of the "allo-boss-dac-pcm512x-audio" and we get no sound to hear.

Code: Select all

root@hifi:~# cat /proc/asound/cards
 0 [BossDAC        ]: BossDAC - BossDAC
                      BossDAC
Last edited by elevader on Fri Oct 09, 2020 8:34 pm, edited 2 times in total.
elevader
Posts: 14
Joined: Thu Dec 06, 2018 6:44 pm

Re: * Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)

Post by elevader »

I try to understand how the EQ thingi works or rather why it doesn't work with this new Setup, even though i use the exact same Hardware.

With EQ enabled and no sound, the /boot/dietpi.txt has the correct setting, as you mentioned earlier.

Code: Select all

dtoverlay=allo-boss-dac-pcm512x-audio
Everything in Alsamixer is green, nothing is muted, settings are exactly as described in the pdf.
AlloBoss-ALSA.png

Actually O!MPD does not play the Music, the Time does not move, was under the impression it was playing bc i saw the EQ Bars animation next to Track.
elevader
Posts: 14
Joined: Thu Dec 06, 2018 6:44 pm

Re: * Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)

Post by elevader »

I found out how to reproduce the multiple "-eq" thingi.

EQ Enable on, sound output stops as written above, check screenshots.
Any activation of any of the MPD Specific opptions will add an "-eq".
Then a "Reset all options to defaults" under Global Options in DietPi-Justboom will not remove any of the "-eq".

Only reselection of the AlloBoss DAC card will bring back Sound but EQ Enable will be [Off] again.

Code: Select all

root@hifi:~# dietpi-justboom 
[ SUB1 ] DietPi-Set_hardware > soundcard (allo-boss-dac-pcm512x-audio-eq-eq-eq)
[ INFO ] DietPi-Set_hardware | Checking for required APT packages: alsa-utils
[  OK  ] DietPi-Set_hardware | All required APT packages are already installed.
Found hardware: "BossDAC" "" "" "" ""
Hardware is initialized using a generic method
[  OK  ] DietPi-Set_hardware | Desired setting in /boot/config.txt was already set: dtparam=audio=off
[  OK  ] DietPi-Set_hardware | Desired setting in /boot/dietpi.txt was already set: CONFIG_SOUNDCARD=allo-boss-dac-pcm512x-audio-eq-eq-eq
[  OK  ] DietPi-Set_hardware | Added setting dtoverlay=allo-boss-dac-pcm512x-audio-eq-eq to end of file /boot/config.txt
DTOVERLAY[error]: failed to open '/boot/overlays/allo-boss-dac-pcm512x-audio-eq-eq.dtbo'
* Failed to read '/boot/overlays/allo-boss-dac-pcm512x-audio-eq-eq.dtbo'
[ INFO ] DietPi-Set_hardware | Checking for required APT packages: libasound2-plugin-equal
[  OK  ] DietPi-Set_hardware | All required APT packages are already installed.
[  OK  ] soundcard allo-boss-dac-pcm512x-audio-eq-eq | Completed
[ SUB1 ] DietPi-Set_hardware > soundcard (allo-boss-dac-pcm512x-audio-eq-eq-eq-eq)
[ INFO ] DietPi-Set_hardware | Checking for required APT packages: alsa-utils
[  OK  ] DietPi-Set_hardware | All required APT packages are already installed.
Found hardware: "BossDAC" "" "" "" ""
Hardware is initialized using a generic method
[  OK  ] DietPi-Set_hardware | Desired setting in /boot/config.txt was already set: dtparam=audio=off
[  OK  ] DietPi-Set_hardware | Setting in /boot/dietpi.txt adjusted: CONFIG_SOUNDCARD=allo-boss-dac-pcm512x-audio-eq-eq-eq-eq
[  OK  ] DietPi-Set_hardware | Added setting dtoverlay=allo-boss-dac-pcm512x-audio-eq-eq-eq to end of file /boot/config.txt
DTOVERLAY[error]: failed to open '/boot/overlays/allo-boss-dac-pcm512x-audio-eq-eq-eq.dtbo'
* Failed to read '/boot/overlays/allo-boss-dac-pcm512x-audio-eq-eq-eq.dtbo'
[ INFO ] DietPi-Set_hardware | Checking for required APT packages: libasound2-plugin-equal
[  OK  ] DietPi-Set_hardware | All required APT packages are already installed.
[  OK  ] soundcard allo-boss-dac-pcm512x-audio-eq-eq-eq | Completed

Code: Select all

root@hifi:~# cat /boot/config.txt |grep allo
# - Values from "0" to "11" are allowed, use values above "7" only if required, e.g. with very long HDMI cable.
# Set "hdmi_blanking=1" to allow the display going into standby after 10 minutes without input.
dtoverlay=allo-boss-dac-pcm512x-audio-eq-eq-eq-eq
eq-eq-eq-eq.png
User avatar
MichaIng
Site Admin
Posts: 2324
Joined: Sat Nov 18, 2017 6:21 pm

Re: * Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)

Post by MichaIng »

Ah that multiple -eq thing is a good find that needs to be fixed. I'll have a look into it. Not much idea why Boss DAC does not work with equaliser for now, I'll do some tests tomorrow with other sound cards and re-read docs about that equaliser ALSA module in general.
Post Reply