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 088EDC021AA for ; Wed, 19 Feb 2025 23:01:52 +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 0247660527; Thu, 20 Feb 2025 00:01:40 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0247660527 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1740006110; bh=38MieAJX07E2ELgF0hMRjKKwWXlTxuWUjTymjeA1PvY=; 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=NiCmVZFDtd0wZsRI8SURes5BskGqUz0G5+PL3nI51kwG8rgnQ9UbsfbZNnj5TEV8t 1oFkmcJUz9MJaYPSNpkmXba7KdaK+tT52mEQhuglYhicqecNykGAPtOnuUsLMrC203 JJ2ZbxZ6bXebb6HOTlBcz15yBdD6VlSEd0tv/EwM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 52A2DF80535; Thu, 20 Feb 2025 00:01:13 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 35443F805B2; Thu, 20 Feb 2025 00:01:13 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C2F62F8032D; Thu, 20 Feb 2025 00:01:09 +0100 (CET) Received: from webhooks-bot.alsa-project.org (vmi2259423.contaboserver.net [45.14.194.44]) by alsa1.perex.cz (Postfix) with ESMTP id 22004F8001D for ; Thu, 20 Feb 2025 00:01:07 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 22004F8001D 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 In-Reply-To: <1740006067853908777-webhooks-bot@alsa-project.org> References: <1740006067853908777-webhooks-bot@alsa-project.org> Subject: Problems with async handler Message-Id: <20250219230109.C2F62F8032D@alsa1.perex.cz> Date: Thu, 20 Feb 2025 00:01:09 +0100 (CET) Message-ID-Hash: ZSHKKBQORK6AQAORHH2SHIASTE7UNV4O X-Message-ID-Hash: ZSHKKBQORK6AQAORHH2SHIASTE7UNV4O 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 #438 was opened from m-paq: Hi, I'm currently working on a project and I'm trying to use the async handler through `snd_async_add_pcm_handler`. I don't really understand where the issue comes from and how to debug it but I keep getting an error on this function call in my project. To try to figure out what's wrong I went in the test files and tried to run the test file `pcm.c` and added a print of the error code (`snd_strerror`) Compiling with: `gcc pcm.c -o test_pcm -lasound -lm` Running it with `./test_pcm -m async` But it keeps giving me the following output: ``` Playback device is default Stream parameters are 44100Hz, S16_LE, 1 channels Sine wave rate is 440.0000Hz Using transfer method: async Unable to register async handler Function not implemented ``` from line 441. I am able to run it in write mode with the correct behaviour, so my question is: **Is this an issue with the device or is it an issue somewhere else?** If ever this is not the correct place to ask this question please refer me to a more adequate place. Thanks to anyone that can help me! Issue URL : https://github.com/alsa-project/alsa-lib/issues/438 Repository URL: https://github.com/alsa-project/alsa-lib