From owner-freebsd-virtualization@freebsd.org Tue Sep 29 11:01:08 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 A0B1C3FE13C for ; Tue, 29 Sep 2020 11:01:08 +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 "*.suse.de", Issuer "DigiCert SHA2 High Assurance Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C0xJh0K8nz4d5j; Tue, 29 Sep 2020 11:01:07 +0000 (UTC) (envelope-from ali.abdallah@suse.com) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1601377265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=w37/6/w7aDqTvq4bIthiHR81Sgb3+8XawTMfjdO74o8=; b=a8d7KPxnXmUGC66r15d/gusziPPIzBSVUwA+6sP1b2HDuGfY7c/ar5iYJA6nyeTe/3YmNl z0vMgnJVK8OZiPQzVEyypZGlCFIsblW4TfZ13Ogdtkxn+UAtj9vJcuM3609ShLp7cSHNTO B5IQGoQzllbwbwJIJ70HVikDS+igbGw= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 85BAEB208; Tue, 29 Sep 2020 11:01:05 +0000 (UTC) Date: Tue, 29 Sep 2020 13:01:04 +0200 From: Ali Abdallah To: Peter Grehan Cc: freebsd-virtualization@freebsd.org Subject: Re: HD audio problem on FreeBSD 12.1 bhyve VM Message-ID: <20200929110104.xruzupf2v267xqdo@frix230> References: <20200922154021.4kes7nyv2tadgofx@frix230> <20200923151552.d7xe2fngbvqb5alr@frix230> <20200924142223.txf474z3p42twuby@frix230> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4C0xJh0K8nz4d5j X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=suse.com header.s=susede1 header.b=a8d7KPxn; dmarc=pass (policy=none) header.from=suse.com; spf=fail (mx1.freebsd.org: domain of ali.abdallah@suse.com does not designate 195.135.220.15 as permitted sender) smtp.mailfrom=ali.abdallah@suse.com X-Spamd-Result: default: False [-5.50 / 15.00]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_FAIL(0.00)[-all]; R_DKIM_ALLOW(-0.20)[suse.com:s=susede1]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.989]; MIME_GOOD(-0.10)[text/plain]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DWL_DNSWL_MED(-2.00)[suse.com:dkim]; NEURAL_HAM_MEDIUM(-0.94)[-0.937]; 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.00)[suse.com,none]; RCVD_IN_DNSWL_MED(-0.20)[195.135.220.15:from]; DMARC_POLICY_ALLOW_WITH_FAILURES(-0.50)[]; NEURAL_HAM_SHORT(-0.57)[-0.573]; 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.33 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, 29 Sep 2020 11:01:08 -0000 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