LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   OpenBSD in VM and sound (https://www.linuxquestions.org/questions/%2Absd-17/openbsd-in-vm-and-sound-4175663314/)

Aeterna 10-28-2019 04:44 PM

OpenBSD in VM and sound
 
I have latest OpenBSD 6.6 installed in VirtualBox. with latest patches
Quote:

doas syspatch -l
001_bpf
002_ber
All works except sound.
I tried AC97 and Intel HD Audio without success.
Both drivers are visible but no sound is produced when playing mp4 or wav.

I understand that OpenBSD is not supporting VirtualBox (no client) so obviously if there is no solution the the problem that is o.k.

I am hoping that maybe there is some sort of trick (sa the one I am using to run OpenBSD in VM in full screen) which will let me enable sound.

this is an output from mixerctl with VM with enabled Intel HD Audio (azalia)

Quote:

inputs.dac-6:7_mute=off
inputs.dac-6:7=254,254
inputs.dac-2:3_mute=off
inputs.dac-2:3=254,254
inputs.dac-4:5_mute=off
inputs.dac-4:5=254,254
inputs.dac-0:1_mute=off
inputs.dac-0:1=254,254
record.dig-adc-0:1_sou=SPDIF-in
outputs.hp_source=dac-6:7
outputs.hp_dir=output
outputs.hp_boost=off
outputs.spkr_source=dac-4:5
outputs.spkr_dir=output
outputs.spkr2_source=dac-2:3
outputs.spkr2_dir=output
outputs.mic_source=dac-6:7
outputs.mic_dir=input-vr80
outputs.mic_boost=off
outputs.spkr3_source=dac-0:1
outputs.spkr3_mute=off
outputs.spkr3=254,254
outputs.spkr3_dir=output
outputs.SPDIF_source=dig-dac-0:1
outputs.SPDIF-in_eapd=on
inputs.sel_source=line-in
inputs.sel2_source=cd
record.adc-0:1_source=sel
record.adc-0:1_mute=off
record.adc-0:1_sel=126,126
record.adc-2:3_source=sel2
record.adc-2:3_mute=off
record.adc-2:3_sel2=126,126
outputs.hp_sense=unplugged
outputs.spkr_sense=plugged
outputs.spkr2_sense=plugged
outputs.mic_sense=plugged
outputs.line-in_sense=unplugged
outputs.SPDIF-in_sense=unplugged
outputs.master=255,255
outputs.master.mute=off
outputs.master.slaves=dac-6:7,dac-0:1,spkr3
outputs.mode=analog
record.mode=analog
record.enable=sysctl
thank you,

Aeterna 11-09-2019 08:57 PM

installed and configured pulseaudio

now sound works

rufwoof 01-05-2021 05:59 PM

I opted to use sndiod instead of installing pulseaudio.

Compiled sndiod in Linux (host) and set it listening

sndiod -f rsnd/1 -L-

... that's for sound card 1 (running alsa), use rsnd/0 if you're using card 0 for sound.

Then in OpenBSD (guest booted using kvm/qemu), you can run for instance AUDIODEVICE=snd@192.168.1.5/0 firefox-esr to have the sndio forwarded to the Linux (hosts) IP (192.168.1.5 in this example).

Or just export AUDIODEVICE in OpenBSD
export AUDIODEVICE=snd@192.168.1.5/0


All times are GMT -5. The time now is 01:27 AM.