From owner-freebsd-current@freebsd.org Tue Sep 22 15:34:29 2020 Return-Path: Delivered-To: freebsd-current@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 505F03EC6F6; Tue, 22 Sep 2020 15:34:29 +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 4BwljJ4Wfjz49c0; Tue, 22 Sep 2020 15:34:28 +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 D5409ACAC; Tue, 22 Sep 2020 15:35:02 +0000 (UTC) Date: Tue, 22 Sep 2020 17:34:25 +0200 From: Ali Abdallah To: freebsd-stable@freebsd.org Cc: freebsd-current@freebsd.org Subject: HD audio problem on FreeBSD 12.1 bhyve VM Message-ID: <20200922153425.md5yvjj7asrjou3n@frix230> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Rspamd-Queue-Id: 4BwljJ4Wfjz49c0 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-5.00 / 15.00]; MID_RHS_NOT_FQDN(0.50)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.com:s=susede1]; NEURAL_HAM_MEDIUM(-0.94)[-0.942]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[suse.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.135.220.15]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RWL_MAILSPIKE_GOOD(0.00)[195.135.220.15:from]; NEURAL_SPAM_SHORT(0.15)[0.145]; NEURAL_HAM_LONG(-1.00)[-1.003]; RCVD_IN_DNSWL_MED(-0.20)[195.135.220.15:from]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[suse.com,none]; DKIM_TRACE(0.00)[suse.com:+]; 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-current,freebsd-stable] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2020 15:34:29 -0000 Hello, I'm running FreeBSD 12.1 release host with the HD bhyve audio patch from 13-current. On a OpenSUSE 15.2 bhyve guest, audio works perfectly fine. However, on FreeBSD 12.1 only noise comes out. Using /dev/dsp4 (which is a USB sound device), audio works fine, but not on /dev/dsp0, the default sound device on my system. I see the following relevant errors: pcm0: chn_write(): pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead pcm0: chn_write(): pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead pin dump from FreeBSD 12.1 VM. ------------------------------ hdaa0: 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: 5 00805020 2 0 Line-in Jack Unknown 0x00 Red 0 hdaa0: Caps: IN Sense: 0x80000000 (connected) hdaa0: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0 I tried sysctl dev.hdac.0.polling=1 with no success. Note that: The above problem is also reproducible on 13-Current 20200917. Any help is appreciated. Kind regards, Ali