HD audio problem on FreeBSD 12.1 bhyve VM

Ali Abdallah ali.abdallah at suse.com
Tue Sep 29 11:01:08 UTC 2020


On 29.09.2020 12:28, Peter Grehan wrote:
> Hi Ali,

Hi Peter,

> 
> > It doesn't work for me... See below.
> ...
> > 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
> 
>  Does removing the 'rec=/dev/dsp0' make any difference ?

Already tried that, doesn't make any difference.

> 
> > > 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.
> 
>  What does 'cat /dev/sndstat' show on your 430/x220 ?

Here is what I have on my T430

pcm0: <Realtek ALC269 (Analog 2.0+HP/2.0)> (play/rec)
pcm1: <Intel Panther Point (HDMI/DP 8ch)> (play)
pcm2: <Intel Panther Point (HDMI/DP 8ch)> (play)
pcm3: <Intel Panther Point (HDMI/DP 8ch)> (play)
pcm4: <USB audio> (play/rec) default

Please note that I have the following in the device hints in order not
to have a separate pcm1 for the internal microphone
(pcm1: <Realtek ALC269 (Internal Analog Mic)> (rec))

hint.hdaa.0.nid18.config="as=3 seq=0 device=mic"
hint.hdaa.0.nid24.config="as=3 seq=15 device=mic"

On my x220:

pcm0: <Conexant CX20590 (Analog 2.0+HP/2.0)> (play/rec) default
pcm1: <Intel Cougar Point (HDMI/DP 8ch)> (play)
pcm2: <Intel Cougar Point (HDMI/DP 8ch)> (play)
pcm3: <Intel Cougar Point (HDMI/DP 8ch)> (play)

> later,
> 
> Peter.
> 

Cheers,
Ali




More information about the freebsd-virtualization mailing list