From owner-freebsd-current@freebsd.org Wed Jan 13 11:51:11 2021 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 6BC924D9D6D for ; Wed, 13 Jan 2021 11:51:11 +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 4DG5PV5CXVz4YYW for ; Wed, 13 Jan 2021 11:51:10 +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 D0330AB92 for ; Wed, 13 Jan 2021 11:51:08 +0000 (UTC) Date: Wed, 13 Jan 2021 12:51:07 +0100 From: Ali Abdallah To: freebsd-current@freebsd.org Subject: snd_hda random crack noise on Realtek ALC257 Message-ID: <20210113115107.ftwqh4psno3ud67j@Fryzen495> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Rspamd-Queue-Id: 4DG5PV5CXVz4YYW 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)[]; RWL_MAILSPIKE_GOOD(0.00)[195.135.220.15:from]; 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)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DWL_DNSWL_MED(-2.00)[suse.com:dkim]; RCPT_COUNT_ONE(0.00)[1]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[195.135.220.15:from]; DKIM_TRACE(0.00)[suse.com:+]; DMARC_POLICY_ALLOW(-0.50)[suse.com,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-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-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 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: Wed, 13 Jan 2021 11:51:11 -0000 Hello, I'm running 13-current on my Thinkpad T495 (AMD Ryzen 7 PRO 3700U) It has the following sound devices: cat /dev/sndstat Installed devices: pcm0: (play) default pcm1: (play) pcm2: (play) pcm3: (play/rec) pcm4: (play/rec) No devices installed from userspace. So far so good, but randomly, while listening to music videos, there is a random crack noise for about a second coming out of the HDMI monitor speaker (or the internal laptop speaker when pcm3 is used). It is not very frequent, but quiet annoying. The noise is not associated particularly with heavy load, it is random even when I'm running literally nothing but the music player. I've played with the vchans settings, snd.latency setting, but nothing improved the situation. The only thing that solved completely the issue is assigning a single processor to the media player. $ cpuset -l 0 mpv --audio-device=oss//dev/dsp0 video_file.mp4 That worked with firefox as well, even under heavy load. I don't have pulseaudio, but I've tried also sound with pulseaudio and sndio, same issue. Any thoughts? Ali