HD audio problem on FreeBSD 12.1 bhyve VM
Ali Abdallah
ali.abdallah at suse.com
Thu Sep 24 14:22:27 UTC 2020
On 24.09.2020 19:48, Peter Grehan wrote:
> Hi Ali,
Hi Peter, thanks for your answers.
>
> > I tested the following combinations:
> >
> > 1) 12.1 guest on 12.1 host (with the HD audio from 13-current).
> > 2) Same 12.1 guest on 13-current host.
>
> 2) worked ok for me, at least with very limited testing and a simplistic
> config
It doesn't work for me... See below.
> On the guest,
>
> root@:~ # uname -a
> FreeBSD 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC amd64
>
> root@:~ # cat /dev/sndstat
> Installed devices:
> pcm0: <Generic (0x8086) (Analog Line-out)> (play) default
> No devices installed from userspace.
>
> root@:~ # sysctl dev.hdac.0.pindump=1
> dev.hdac.0.pindump: 0hdaa0: Dumping AFG pins:
> hdaa0: nid 0x as seq device conn jack loc color misc
> hdaa0: 3 00001010 1 0 Line-out Jack Unknown 0x00 Black 0
> hdaa0: Caps: OUT Sense: 0x80000000 (connected)
> hdaa0: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0
>
> cat test.wav > /dev/dsp worked the same in the guest as on the host
>
> The guest was configured with "-s 20,hda,play=/dev/dsp"
I'm booting with the following script.
VM=freebsd12.1
ifconfig tap1 up
bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
-c 1 -m 4096M \
-s 19,xhci,tablet \
-s 11,fbuf,tcp=0.0.0.0:5920,w=1280,h=1024,wait \
-s 20,hda,play=/dev/dsp0,rec=/dev/dsp0 \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
$VM
bhyvectl --destroy --vm=$VM
>
> Audio on the Thinkpad host is:
>
> grehan at carbon-usb:/images $ cat /dev/sndstat
> Installed devices:
> pcm0: <Realtek ALC285 (Analog 2.0+HP/2.0)> (play/rec) default
> pcm1: <Realtek ALC285 (Right Analog Mic)> (rec)
> pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> (play)
>
I have the issue on my daily driver, a Thinkpad T430. But also tested on
my x220, same issue, only noise. However, sound works perfectly fine
on OpenSUSE guest.
> later,
>
> Peter.
>
Regards,
Ali
More information about the freebsd-virtualization
mailing list