I want to migrate my sound from bluetooth speaker (used via mpd) to traditional 3.5mm jack speaker. I sitll want to use mpd, I just want to change speaker. Unfortunately don’t know how to start. On host machine speaker is working:
root@host_machine:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC671 Analog [ALC671 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
root@host_machine:~# aplay -D plughw:1,0 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
root@host_machine:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
plays a sound. But in guest machine (with ha supervised) device is busy:
root@guest_machine:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: Generic Analog [Generic Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
root@guest_machine:~# aplay -D plughw:0,0 /usr/share/sounds/alsa/Front_Center.wav
aplay: main:831: audio open error: Device or resource busy
root@guest_machine:~# fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: user 804 F.... wireplumber
root 2356 F.... pulseaudio
/dev/snd/pcmC0D0c: root 2356 F...m pulseaudio
/dev/snd/pcmC0D0p: root 2356 F...m pulseaudio
/dev/snd/seq: user 802 F.... pipewire
/dev/snd/timer: root 2356 f.... pulseaudio
root@guest_machine:~# pacmd list-cards
No PulseAudio daemon running, or not running as session daemon.
root@guest_machine:~#
even though in xml declaration of machine I’m using configuration which base on debians forum should make sound work on both guest and host machine:
<sound model='ich9'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
</sound>
I know that it may be topic more for debian forum than homeassistnt but I wan’t to avoid creating configuration which work for debian but will be dead end in case of HA. I really want to avoid changing mpd to something else since I’m using it in many places so I want change from bluetooth to 3.5mm jack as smooth as possible. What should I use in this case?
part of mpd configuration which I used till this time:
audio_output {
buffer_time "100000"
type "alsa"
name "JBL"
device "bluealsa:DEV=10:2A:4A:30:21:97,PROFILE=a2dp"
mixer_type "software"
format "44100:16:2"
}