From owner-freebsd-virtualization@freebsd.org Thu Sep 24 09:48:34 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 5C14F3F2365 for ; Thu, 24 Sep 2020 09:48:34 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from vito-vars.onthenet.com.au (vito-vars.OntheNet.com.au [203.13.68.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BxqxF5p0xz4DPx for ; Thu, 24 Sep 2020 09:48:33 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto2.onthenet.com.au [203.13.68.14]) by vito-vars.onthenet.com.au (Postfix) with ESMTPS id EF9F52083951 for ; Thu, 24 Sep 2020 19:48:22 +1000 (AEST) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id D411E20AE981 for ; Thu, 24 Sep 2020 19:48:22 +1000 (AEST) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id CCE0C20F4D2B for ; Thu, 24 Sep 2020 19:48:22 +1000 (AEST) Received: from iredmail.onthenet.com.au ([127.0.0.1]) by iredmail.onthenet.com.au (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id K5GOioWJErOs for ; Thu, 24 Sep 2020 19:48:22 +1000 (AEST) Received: from MacBook-Air-4.local (CPE-120-29-40-28.dsl.OntheNet.net [120.29.40.28]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id 8ABBE20F4D27; Thu, 24 Sep 2020 19:48:22 +1000 (AEST) Subject: Re: HD audio problem on FreeBSD 12.1 bhyve VM To: Ali Abdallah References: <20200922154021.4kes7nyv2tadgofx@frix230> <20200923151552.d7xe2fngbvqb5alr@frix230> From: Peter Grehan Cc: "freebsd-virtualization@freebsd.org" Message-ID: Date: Thu, 24 Sep 2020 19:48:21 +1000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200923151552.d7xe2fngbvqb5alr@frix230> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=bM+N3M2Z c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=a/DZ3n0cyhrV6N79ug6kLQ==:17 a=IkcTkHD0fZMA:10 a=reM5J-MqmosA:10 a=a6xvzlDkj0chAx5wSjoA:9 a=QEXdDO2ut3YA:10 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=LtAJNkVc c=1 sm=1 tr=0 a=eF5wA05EhuPcU0j7PNT2Vg==:117 a=a/DZ3n0cyhrV6N79ug6kLQ==:17 a=IkcTkHD0fZMA:10 a=reM5J-MqmosA:10 a=a6xvzlDkj0chAx5wSjoA:9 a=QEXdDO2ut3YA:10 X-Rspamd-Queue-Id: 4BxqxF5p0xz4DPx X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[freebsd.org]; ASN(0.00)[asn:9313, ipnet:203.13.68.0/23, country:AU] 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: Thu, 24 Sep 2020 09:48:34 -0000 Hi Ali, > 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 On the guest, root@:~ # uname -a FreeBSD 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC amd64 root@:~ # cat /dev/sndstat Installed devices: pcm0: (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" Audio on the Thinkpad host is: grehan@carbon-usb:/images $ cat /dev/sndstat Installed devices: pcm0: (play/rec) default pcm1: (rec) pcm2: (play) later, Peter.