From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 527B5C3601E for ; Sun, 13 Apr 2025 12:50:46 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [45.14.194.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2E06D66DE1; Sun, 13 Apr 2025 14:50:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2E06D66DE1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1744548644; bh=X1uHqD5/wkbCsfpwxxouOoSxvFU2eMHNdaWypDtxlf4=; h=From:To:In-Reply-To:References:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=u53Zg8Shi3vnhkjqeb9sj+CeIkZOprP42ss8dLKKnLsDqEbFTQPDFVAgP3RJv9A2/ i4XdqiZLDdbJTPAMkBFLIAEfZhS6/eLpsAfXPJ6Ym/dm5jiaKlxrowA+gWurjIVryM QyfVlzEbP+lrxDRYWdDWA7UkTgmpZkziQcvfic3g= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 579C8F805B3; Sun, 13 Apr 2025 14:50:08 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 0F628F805B6; Sun, 13 Apr 2025 14:50:08 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EE8B1F8016B; Sun, 13 Apr 2025 14:48:36 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (vmi2259423.contaboserver.net [45.14.194.44]) by alsa1.perex.cz (Postfix) with ESMTP id 216EDF800D2 for ; Sun, 13 Apr 2025 14:48:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 216EDF800D2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - opened To: alsa-devel@alsa-project.org Message-Id: <1835e1a0d2c45500-webhooks-bot@alsa-project.org> In-Reply-To: <1835e1a0d217ae00-webhooks-bot@alsa-project.org> References: <1835e1a0d217ae00-webhooks-bot@alsa-project.org> Subject: On output devices, `snd_pcm_open()` makes a bad loud tick. Date: Sun, 13 Apr 2025 14:48:36 +0200 (CEST) Message-ID-Hash: EP4Z6ZK5RMZ6ECJAWZ3J7NFRRQJSUJ7A X-Message-ID-Hash: EP4Z6ZK5RMZ6ECJAWZ3J7NFRRQJSUJ7A X-MailFrom: github@alsa-project.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: alsa-project/alsa-lib issue #451 was opened from ewtoombs: Minimal reproduction: ``` #include #include int main(int argc, const char **argv) { snd_pcm_t *out; assert(snd_pcm_open(&out, "default", // the name of the device being opened SND_PCM_STREAM_PLAYBACK, // it is an output stream false // iff nonblocking stream ) == 0); } ``` (Compile with `gcc -o test test.c -lasound`.) Relevant `lspci`: ``` 00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21) ``` `uname`: ``` Linux robert 6.13.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 23 Mar 2025 17:17:30 +0000 x86_64 GNU/Linux ``` alsa-lib version: 1.2.13-1 (archlinux) I've heard similar artefacts on many different sound cards, though, across many different architectures, always on linux. One must wait about five minutes in between trials, or the artefact does not occur. This isn't a minor detail. The tick is very loud. It might even damage speakers in a worst case scenario. Issue URL : https://github.com/alsa-project/alsa-lib/issues/451 Repository URL: https://github.com/alsa-project/alsa-lib