From owner-freebsd-virtualization@freebsd.org Tue Dec 1 13:19:36 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C3BC34A9854 for ; Tue, 1 Dec 2020 13:19:36 +0000 (UTC) (envelope-from ali.abdallah@suse.com) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp2.suse.de", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CljPN20P1z3mdy; Tue, 1 Dec 2020 13:19:36 +0000 (UTC) (envelope-from ali.abdallah@suse.com) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 08607AC55; Tue, 1 Dec 2020 13:19:35 +0000 (UTC) Date: Tue, 1 Dec 2020 14:19:34 +0100 From: Ali Abdallah To: Peter Grehan Cc: freebsd-virtualization@freebsd.org Subject: Re: HD audio problem on FreeBSD 12.1 bhyve VM Message-ID: <20201201131934.sgd2deqtzlzhgw72@frix230> References: <20200922154021.4kes7nyv2tadgofx@frix230> <20200923151552.d7xe2fngbvqb5alr@frix230> <20200924142223.txf474z3p42twuby@frix230> <20200929110104.xruzupf2v267xqdo@frix230> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200929110104.xruzupf2v267xqdo@frix230> X-Rspamd-Queue-Id: 4CljPN20P1z3mdy X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.20 / 15.00]; MID_RHS_NOT_FQDN(0.50)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.com:s=susede1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.135.220.15]; MIME_GOOD(-0.10)[text/plain]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DWL_DNSWL_MED(-2.00)[suse.com:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; RWL_MAILSPIKE_GOOD(0.00)[195.135.220.15:from]; DKIM_TRACE(0.00)[suse.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[suse.com,quarantine]; RCVD_IN_DNSWL_MED(-0.20)[195.135.220.15:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:29298, ipnet:195.135.220.0/22, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-virtualization] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2020 13:19:36 -0000 Hi Peter, BTW, I got recently a T495 running current, same audio issue on FreeBSD bhyve guests, but audio works perfectly fine on OpenSUSE 15.2. Here is /dev/sndstat on T495 pcm0: (play) pcm1: (play) pcm2: (play) pcm3: (play/rec) default pcm4: (rec) Regards, Ali On 29.09.2020 13:01, Ali Abdallah wrote: > 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@carbon-usb:/images $ cat /dev/sndstat > > > > Installed devices: > > > > pcm0: (play/rec) default > > > > pcm1: (rec) > > > > pcm2: (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: (play/rec) > pcm1: (play) > pcm2: (play) > pcm3: (play) > pcm4: (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: (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: (play/rec) default > pcm1: (play) > pcm2: (play) > pcm3: (play) > > > later, > > > > Peter. > > > > Cheers, > Ali > > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" >