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 58174EB64D8 for ; Wed, 14 Jun 2023 21:48:33 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 1E89574C; Wed, 14 Jun 2023 23:47:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1E89574C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1686779309; bh=d0693GQiU00N+/S9NIvhFUhLdkstGyYaVSqNZ4OkxLs=; 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=g4/a+tGhofdb30jR70fFndOn6MH9zJMyd/YSHAzjQ2jcy3C4THXT71IgZLLp6LHdn /rmjIck4gcujW4AsWAYt1TovgPp+a+DXeWu4nXPB93OOT2spFiPIcQef9N5GH7vB3g 7iSKzL4rYYT9JgKECLlvkDKYlGg2IxB5+SIAF3Jg= Received: by alsa1.perex.cz (Postfix, from userid 50401) id BC53FF80246; Wed, 14 Jun 2023 23:47:37 +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 57957F80149; Wed, 14 Jun 2023 23:47:37 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 67BC8F80149; Wed, 14 Jun 2023 23:47:32 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (vmi242170.contaboserver.net [207.180.221.201]) by alsa1.perex.cz (Postfix) with ESMTP id E025EF80130 for ; Wed, 14 Jun 2023 23:47:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E025EF80130 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: <1686779246190426588-webhooks-bot@alsa-project.org> References: <1686779246190426588-webhooks-bot@alsa-project.org> Subject: params argument to `SNDRV_PCM_IOCTL_SW_PARAMS` should be pointer Message-Id: <20230614214732.67BC8F80149@alsa1.perex.cz> Date: Wed, 14 Jun 2023 23:47:32 +0200 (CEST) Message-ID-Hash: 6UPWOI47YMZQAEJUS3LGEL7HTTU5K6LL X-Message-ID-Hash: 6UPWOI47YMZQAEJUS3LGEL7HTTU5K6LL 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.8 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 #329 was opened from dancrossnyc: Commit 2115cdb4d added a call to the `SNDRV_PCM_IOCTL_SW_PARAMS` ioctl on line 675 of src/pcm/pcm_hw.c, but passes the `sw_params` argument by value; this should be passed by pointer. I ran across this in the context of the direwolf software modem for amateur radio; debugging details are in https://groups.io/g/direwolf/message/8286. The patch is trivial; I will send a PR. Thanks! Issue URL : https://github.com/alsa-project/alsa-lib/issues/329 Repository URL: https://github.com/alsa-project/alsa-lib