I have host machine (debian bookworm) on terminal with kvm guest machine (also debian bookworm). I want to migrate my sound from bluetooth speaker (used via mpd) to traditional 3.5mm jack speaker. I still want to use mpd, I just want to change speaker. Unfortunately don’t know how to start. On host machine speaker is working:aplay -D plughw:1,0 /usr/share/sounds/alsa/Front_Center.wav plays a sound, but in guest machine device is busy:even though in xml declaration of machine I’m using configuration which base on this forum should make sound work on both guest and host machine: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:
Code:
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 #0card 0: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1] Subdevices: 1/1 Subdevice #0: subdevice #0card 1: Generic [HD-Audio Generic], device 0: ALC671 Analog [ALC671 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0root@host_machine:~# aplay -D plughw:1,0 /usr/share/sounds/alsa/Front_Center.wavPlaying WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Monoroot@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=bookwormID=debianHOME_URL="https://www.debian.org/"SUPPORT_URL="https://www.debian.org/support"BUG_REPORT_URL="https://bugs.debian.org/"
Code:
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.wavaplay: main:831: audio open error: Device or resource busyroot@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.... pulseaudioroot@guest_machine:~# pacmd list-cardsNo PulseAudio daemon running, or not running as session daemon.root@guest_machine:~#
Code:
<sound model='ich9'> <address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/> </sound>
part of mpd configuration which I used till this time:
Code:
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"}
Statistics: Posted by kya — 2025-01-19 20:28 — Replies 0 — Views 27