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 8220AC021AA for ; Wed, 19 Feb 2025 23:10:23 +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 3EE8760537; Thu, 20 Feb 2025 00:10:10 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3EE8760537 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1740006620; bh=GCXqZY9eW9vVuIjF2XxhxVCB5pm4G2rHyjeL0Kfa9M8=; 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=SW3HEIYJA29f4eOfjcrWaCIU+9FV3awr91ToL2eTtQVIf3OUQNkObk5tpPYwDW8zz kz8l1smbnGauGKsLVcKQC8Fpqq51uOlYizc6YvyR4+Mz8Dp69JcBHflQxqSB7W1wvR IUKISOFqz24D9IKVhBeTCE6PGMmfP1REBXmawz8w= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 658AFF805BB; Thu, 20 Feb 2025 00:09:53 +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 9A060F805BE; Thu, 20 Feb 2025 00:09:52 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EA6A4F8032D; Thu, 20 Feb 2025 00:09:36 +0100 (CET) Received: from webhooks-bot.alsa-project.org (vmi2259423.contaboserver.net [45.14.194.44]) by alsa1.perex.cz (Postfix) with ESMTP id 0C5DCF8001D for ; Thu, 20 Feb 2025 00:09:34 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0C5DCF8001D MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - edited To: alsa-devel@alsa-project.org In-Reply-To: <1740006574637485504-webhooks-bot@alsa-project.org> References: <1740006574637485504-webhooks-bot@alsa-project.org> Subject: Problems with async handler Message-Id: <20250219230936.EA6A4F8032D@alsa1.perex.cz> Date: Thu, 20 Feb 2025 00:09:36 +0100 (CET) Message-ID-Hash: CN3AWW22H2ZDA52EBSL7QWAN2RFP476H X-Message-ID-Hash: CN3AWW22H2ZDA52EBSL7QWAN2RFP476H 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 edited 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 434. 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