Previous thread that fixed Volume slider problems with BossDAC and o!mpd https://dietpi.com/phpbb/viewtopic.php?t=9426&start=10
BossDAC and o!mpd stopped working after installing kodi 19.3.
Kodi seems to hijack the output device and force itself over HDMI leaving o!mpd not able to play.
o!mpd plays when i make changes in audio settings and select a audio device but something happens after a reboot and we are back at square one.
System Settings in Kodi do not list the BossDAC when hw2,0 is selected, i can see only,
vc4-hdmi-0 (), MAI PCM i2s-hifi-0
vc4-hdmi-0 (vc4hdmi0), OTM Optoma UHD on HDMI
both selections play kodi sounds via the Optoma build in speaker.
If BossDAC is selected in dietpi-config audio settings i can see the BossDAC listed in kodi system settings and i am able to play kodi via BossDAC but o!mpd does not play and no dmesg messages.
It does not matter if kodi is started o!mpd will not play either way.
stuff i collected during the trials
dmesg
hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
when pressing play in o!mpd on a track.
root@DietPi:~# aplay -l
**** 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: 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
root@DietPi:~# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
sysdefault
Default Audio Device
hw:CARD=vc4hdmi0,DEV=0
vc4-hdmi-0, MAI PCM i2s-hifi-0
Direct hardware device without any conversions
plughw:CARD=vc4hdmi0,DEV=0
vc4-hdmi-0, MAI PCM i2s-hifi-0
Hardware device with all software conversions
sysdefault:CARD=vc4hdmi0
vc4-hdmi-0, MAI PCM i2s-hifi-0
Default Audio Device
hdmi:CARD=vc4hdmi0,DEV=0
vc4-hdmi-0, MAI PCM i2s-hifi-0
HDMI Audio Output
dmix:CARD=vc4hdmi0,DEV=0
vc4-hdmi-0, MAI PCM i2s-hifi-0
Direct sample mixing device
hw:CARD=vc4hdmi1,DEV=0
vc4-hdmi-1, MAI PCM i2s-hifi-0
Direct hardware device without any conversions
plughw:CARD=vc4hdmi1,DEV=0
vc4-hdmi-1, MAI PCM i2s-hifi-0
Hardware device with all software conversions
sysdefault:CARD=vc4hdmi1
vc4-hdmi-1, MAI PCM i2s-hifi-0
Default Audio Device
hdmi:CARD=vc4hdmi1,DEV=0
vc4-hdmi-1, MAI PCM i2s-hifi-0
HDMI Audio Output
dmix:CARD=vc4hdmi1,DEV=0
vc4-hdmi-1, MAI PCM i2s-hifi-0
Direct sample mixing 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
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
dietpi-config audio options still show,
Sound card : [allo-boss-dac-pcm512x-audio-eq]
Kodi added card 0 and card 1, sound card select shows now this new block,
●─ Auto detection─────────────────────────────────●
hw:0,0 : vc4hdmi0 MAI PCM i2s-hifi-0
hw:1,0 : vc4hdmi1 MAI PCM i2s-hifi-0
hw:2,0 : BossDAC Boss DAC HiFi [Master] pcm512x-hifi-0
Original working sound card select before Kodi install was on,
dietpi-config audio options still show,
Sound card : [allo-boss-dac-pcm512x-audio-eq]
switched to,
hw:2,0 : BossDAC Boss DAC HiFi [Master] pcm512x-hifi-0
from the new selection block but nothing happens, alsamixer does not start and old BossDAC dmesg errors are gone but a new one shows up.
vc4_hdmi fef00700.hdmi: Could not register sound card: -517
root@DietPi:~# alsamixer
cannot open mixer: No such file or directory
…
Switched back to,
Sound card : [allo-boss-dac-pcm512x-audio-eq]
enabled just boom eq, i can see the eq mixer and after reboot Alsamixer F6 allows me choose between,
0 vc4-hdmi-0
1 vc4-hdmi-1
2 BossDAC
Selecting BossDAC though does not produce any audio from mpd/o!mpd play button.
[ 2.571175] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[ 2.649400] pcm512x 1-004d: supply AVDD not found, using dummy regulator
[ 2.650823] pcm512x 1-004d: supply DVDD not found, using dummy regulator
[ 2.650914] pcm512x 1-004d: supply CPVDD not found, using dummy regulator
[ 2.957671] random: crng init done
[ 2.957685] random: 7 urandom warning(s) missed due to ratelimiting
[ 3.368477] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 3.368769] bcmgenet fd580000.ethernet eth0: Link is Down
[ 6.431575] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 103.030627] hdmi-audio-codec hdmi-audio-codec.2.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
From previous /boot/dietpi.txt file i can see a change from,
# Sound card
CONFIG_SOUNDCARD=allo-boss-dac-pcm512x-audio-eq
to
# Sound card
CONFIG_SOUNDCARD=allo-boss-dac-pcm512x-audio-plug
dietpi-config audio options still show,
Sound card : [allo-boss-dac-pcm512x-audio-eq]
Kodi added card 0 and card 1, sound card select shows now this new block,
●─ Auto detection─────────────────────────────────●
hw:0,0 : vc4hdmi0 MAI PCM i2s-hifi-0
hw:1,0 : vc4hdmi1 MAI PCM i2s-hifi-0
hw:2,0 : BossDAC Boss DAC HiFi [Master] pcm512x-hifi-0
Original working sound card select before Kodi install was on,
dietpi-config audio options still show,
Sound card : [allo-boss-dac-pcm512x-audio-eq]
switched to,
hw:2,0 : BossDAC Boss DAC HiFi [Master] pcm512x-hifi-0
from the new selection block but nothing happens, alsamixer does not start and old BossDAC dmesg errors are gone but a new one shows up.
vc4_hdmi fef00700.hdmi: Could not register sound card: -517
root@DietPi:~# alsamixer
cannot open mixer: No such file or directory
…
Switched back to,
Sound card : [allo-boss-dac-pcm512x-audio-eq]
enabled just boom eq, i can see the eq mixer and after reboot Alsamixer F6 allows me choose between,
0 vc4-hdmi-0
1 vc4-hdmi-1
2 BossDAC
Selecting BossDAC though does not produce any audio from mpd/o!mpd play button.
[ 2.571175] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[ 2.649400] pcm512x 1-004d: supply AVDD not found, using dummy regulator
[ 2.650823] pcm512x 1-004d: supply DVDD not found, using dummy regulator
[ 2.650914] pcm512x 1-004d: supply CPVDD not found, using dummy regulator
[ 2.957671] random: crng init done
[ 2.957685] random: 7 urandom warning(s) missed due to ratelimiting
[ 3.368477] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 3.368769] bcmgenet fd580000.ethernet eth0: Link is Down
[ 6.431575] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 103.030627] hdmi-audio-codec hdmi-audio-codec.2.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
From previous /boot/dietpi.txt file i can see a change from,
new
# Sound card
CONFIG_SOUNDCARD=allo-boss-dac-pcm512x-audio-eq
to
# Sound card
CONFIG_SOUNDCARD=allo-boss-dac-pcm512x-audio-plug
root@DietPi:~# cat /etc/asound.conf
pcm.!default {
type plug
slave.pcm {
type equal
slave.pcm {
type plug
slave.pcm {
type hw
card 0
device 0
}
}
controls "/var/lib/dietpi/dietpi-config/.alsaequal.bin"
}
}
ctl.eq {
type equal
controls "/var/lib/dietpi/dietpi-config/.alsaequal.bin"
}
ctl.!default {
type hw
card 0
}