From nobody Wed Jun 04 16:50:10 2025 X-Original-To: freebsd-multimedia@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bCD8m2jGFz5xHjc; Wed, 04 Jun 2025 16:50:16 +0000 (UTC) (envelope-from christos@freebsd.org) Received: from margiolis.net (mail.margiolis.net [95.179.159.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bCD8l2sWDz43gx; Wed, 04 Jun 2025 16:50:15 +0000 (UTC) (envelope-from christos@freebsd.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=margiolis.net header.s=default header.b=arpba2TM; spf=softfail (mx1.freebsd.org: 95.179.159.8 is neither permitted nor denied by domain of christos@freebsd.org) smtp.mailfrom=christos@freebsd.org; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=freebsd.org (policy=none) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=default; bh=NYXYnyflHuFK 0PDzvoMnT/osVnbmwjbsOi3cXbf6EZw=; h=in-reply-to:references:subject:cc: to:from:date; d=margiolis.net; b=arpba2TM3nyEnP15Kh5aZWuICZtmk2J4+jOA/ iEs0W3bIqFxyWsmwNOhURGhV20A2/HUC1QoJO+9s8CoH6blQLYkO5Dx/Dr7PfMNq0FdoY2 jJMEyEi3Trmr97a55UN/hWE2JABVPAm3KiqAbL+qoDURKjg6ZzF5pMRXhpzYPTq0= Received: from pleb (public-gprs250170.centertel.pl [31.60.124.123]) by margiolis.net (OpenSMTPD) with ESMTPSA id 12404d91 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 4 Jun 2025 10:50:12 -0600 (MDT) Date: Wed, 4 Jun 2025 18:50:10 +0200 From: Christos Margiolis To: Tomek CEDRO Cc: freebsd-desktop@freebsd.org, freebsd-multimedia@freebsd.org Subject: Re: pulseaudio / alc1220 sound clicks interruptions etc Message-ID: References: List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-1.31 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; MID_RHS_NOT_FQDN(0.50)[]; NEURAL_SPAM_LONG(0.39)[0.386]; R_DKIM_ALLOW(-0.20)[margiolis.net:s=default]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : No valid SPF, DKIM not aligned (relaxed),none]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:20473, ipnet:95.179.144.0/20, country:US]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[christos]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; MLMMJ_DEST(0.00)[freebsd-desktop@freebsd.org,freebsd-multimedia@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[margiolis.net:+] X-Rspamd-Queue-Id: 4bCD8l2sWDz43gx X-Spamd-Bar: - Tomek CEDRO wrote: > Hello world :-) > > I am experiencing really annoying sound clicks and glitches / > interruptions on FreeBSD that are hard to stand when using anything > beyond 16-bit 44.1kHz sound. At 48kHz glitches are rare but already > show up, at 96 and 192kHz sound is unusable. No problems like this on > windoze.There is one USB audio card (KM-BT1) that allows me to connect > over bluetooth headphones and it has the same issues. > > I played around with almost all systctl settings latency buffers > vchans bitperfects uadio params etc. It did not happen on the old > hardware. I am running Enlightenment wit PulseAudio backend. PCI-e > nvidia GTX1060 GPU. 14.2-RELEASE AMD64. > > Most likely PulseAudio is to blame as it also does some conversions on > the fly and may not catch up. Also played with most of the PA > daemon.conf settings with no good results, also in tandem with pcm > sysctl settings. When vchanmode is set to adaptive then PA > reconfrigures audio device to 16/44.1. When vchanmode is fixed and > both params of pcm and pa are the same glitches are unbearable and > their intensity corelates with applications use (i.e. switching > windows distrubs sound etc). > > Are there any limitations for 24/32-bit audio and samplerate over > 44.1kHz o n FreeBSD? > > Are there any tunables that may help OSS / PulseAudio run smoother? > > Are these known issues of ALC1220 sound codec? > > Should I run PulseAudio as system service so it gets realtime / nice > access? If so how to make it secure as there is no rc script for that? I cannot really see a clear pattern here, but I think we can try to narrow down the issue. What is the behavior if you use _only_ plain OSS? No pulseaudio, ALSA, virtual_oss, etc. Also, do you vchanrate for both recording and playback? If not, that could be an issue as well (see BUGS section in sound(4)'s man page [1]). Christos [1] https://man.freebsd.org/cgi/man.cgi?query=sound&apropos=0&sektion=0&manpath=FreeBSD+15.0-CURRENT&arch=default&format=html