Simoubuntu
Posts: 2
Joined: Sat Jun 05, 2021 7:21 pm

[SOLVED] Conflict bewteen gpio-ir and allo-boss-dac-pcm512x-audio overlays

Sat Jun 05, 2021 7:30 pm

Hello!

I'm trying to use my new DAC on my Raspberry 2 with Raspberry PI OS (buster).
I need to use two overlays:
  • gpio-ir, to receive the signals from a remote
  • allo-boss-dac-pcm512x-audio, to enable the DAC.
If I use the overlays separately I don't have any problem: the IR works, or the DAC works.
When I try to enable both in the /boot/config.txt file, only the IR works and the DAC is not activated.

If I try to activate the DAC overlay later with the command

Code: Select all

sudo dtoverlay -v allo-boss-dac-pcm512x-audio
I obtain:

Code: Select all

DTOVERLAY[debug]: using platform 'bcm2835'
DTOVERLAY[debug]: overlay map loaded
run_cmd: which dtoverlay-pre >/dev/null 2>&1 && dtoverlay-pre
DTOVERLAY[debug]: loading file '/boot/overlays/allo-boss-dac-pcm512x-audio.dtbo'
DTOVERLAY[debug]: wrote 1365 bytes to '/tmp/.dtoverlays/0_allo-boss-dac-pcm512x-audio.dtbo'
DTOVERLAY[debug]: wrote 1365 bytes to '/sys/kernel/config/device-tree/overlays/0_allo-boss-dac-pcm512x-audio/dtbo'
* Failed to apply overlay '0_allo-boss-dac-pcm512x-audio' (kernel)
run_cmd: which dtoverlay-post >/dev/null 2>&1 && dtoverlay-post

I hope to post this in the right category!
Thank you!

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3965
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Conflict bewteen gpio-ir and allo-boss-dac-pcm512x-audio overlays

Sun Jun 06, 2021 1:15 pm

Can you try with the overlays loaded by the firmware from config.txt instead? I think you may get better error messages, or it might just work.

You can also check the kernel log (run the command "dmesg") where they may be clues about the failure.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3965
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Conflict bewteen gpio-ir and allo-boss-dac-pcm512x-audio overlays

Sun Jun 06, 2021 4:31 pm

The firmware logging can be displayed using ”sudo vcdbg log msg". The output goes to the stderr channel, so to capture it to a file you will need something like:

Code: Select all

$ sudo vcdbg log msg >& firmware.txt

Simoubuntu
Posts: 2
Joined: Sat Jun 05, 2021 7:21 pm

Re: Conflict bewteen gpio-ir and allo-boss-dac-pcm512x-audio overlays

Mon Jun 07, 2021 10:13 am

Using dmesg I found that the DAC uses a non-documented pin, and I was trying to use the same pin for IR.
Now I changed the pin assigned to IR and the problem solved.

Thank you very much!

Return to “Device Tree”