Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp239972rdb; Fri, 6 Oct 2023 01:52:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9Q6I8MPeX7KTdjCnT1kWbdVXmMeI/Cx2dqSYOrn1Q7vid/VahAlnHXNkXLEGI9Vdy3SzJ X-Received: by 2002:a05:6358:988d:b0:135:b4c:a490 with SMTP id q13-20020a056358988d00b001350b4ca490mr7341770rwa.10.1696582361292; Fri, 06 Oct 2023 01:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696582361; cv=none; d=google.com; s=arc-20160816; b=HA+TTxUEMG5Z9rFfyXO8laK/51M5LDRs9dMrvJmvAydoJDnfW0hNghbBVsJXM9ZyEu KHu1wgb0/AFXDc/veG2d1bQgIqK5IN+ZlnqTS1RIo32nTD9DolA5qtJopUHXVdaRWjem Y9xSiVqpFOUemBqoEOU9xP6eTbRh/8G2vvINFND8vOH9X71awZRrKCVXy5h7mHquLUb6 cqCcX1QDbgqGRXlHc2b9czy1u6jA0nPwaFK2HiVmrXOGM3oGGqwy0ZAf2NuIOHYAyYjo INi+k16HOy/Y/h7YobGD+Fq5PVwtfUCeH2O05P7M7uhj8XxVXINHVX9Zi0tip0oCfXKi HDkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=VCacrZghS4Uqyl1Fty3vrQg56Qi9D9DRPUUtxDf6VS8=; fh=B0V0OG0LXkt/6jIrDiP72Iuylf6K1j3eih6YMpVWIKo=; b=xRSP331cG1NU5EHZOnqc27ZDuMbCSEgPCjIk28zkTy1a7PyACsinLFgIs53J3voaq8 +p4zjsXqXxH8fgl9WqdOTVPucbF4PC1PuXWzCtdoyZyCg0n7OvdKIM0LksmArHpMOI2T zIkopHHdPIsGitgmip7DqgGwMGFbEy4q8bQOqWbsr1yr/ihSu0w6myWL8Tl2Lh+nG3ux 4vj0xJdk5EECzRxrzzidnW0yorCK0rDXxUHAFzUa+rdL7HMu+/HCRD6dMraFeh8NPKvJ sAzdYtWrXujLOyP+dKyg8KyIf6o1iaZgJ6avHlhpoE73cUvsWzd4T87j40uOjuuD+eKG kLtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=KbY3TaaJ; dkim=neutral (no key) header.i=@suse.de header.b=BYrg6qlR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id em19-20020a17090b015300b0027762fed4a0si5308817pjb.11.2023.10.06.01.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 01:52:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=KbY3TaaJ; dkim=neutral (no key) header.i=@suse.de header.b=BYrg6qlR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 8F14E806290E; Fri, 6 Oct 2023 01:52:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230517AbjJFIw0 (ORCPT + 99 others); Fri, 6 Oct 2023 04:52:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231277AbjJFIwZ (ORCPT ); Fri, 6 Oct 2023 04:52:25 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C7BFAC for ; Fri, 6 Oct 2023 01:52:23 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id F20811F45F; Fri, 6 Oct 2023 08:52:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1696582342; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VCacrZghS4Uqyl1Fty3vrQg56Qi9D9DRPUUtxDf6VS8=; b=KbY3TaaJ+/29hkX5L74ydFqwegEV33LnWQjZKE4YmuRfvUFUrrpnmUCmp5dO6284PBMob1 OCeU7ZVo9/cGSdIby8CDy7KSMraqEfwZfHXKMb6B9XITvcuqV72q7jzKNMhKkPo4XdEl4+ 6DJ9uOFoE53Dx0S4fbOf56/FVscSJpM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1696582342; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VCacrZghS4Uqyl1Fty3vrQg56Qi9D9DRPUUtxDf6VS8=; b=BYrg6qlR5CPzQqbZQ+Mn0YCmd/JWIpRmK9CIH8RK14d+9RaDN9oA69q2c/yYgQxOwSdWfR 1aS4VQPIj02jwrDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id CC28113A2E; Fri, 6 Oct 2023 08:52:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id +1vbMMXKH2XMIwAAMHmgww (envelope-from ); Fri, 06 Oct 2023 08:52:21 +0000 Date: Fri, 06 Oct 2023 10:52:21 +0200 Message-ID: <87sf6ow2t6.wl-tiwai@suse.de> From: Takashi Iwai To: Ivan Orlov Cc: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] ALSA: aloop: Add support for the non-interleaved access mode In-Reply-To: <20230927113555.14877-1-ivan.orlov0322@gmail.com> References: <20230927113555.14877-1-ivan.orlov0322@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 06 Oct 2023 01:52:38 -0700 (PDT) On Wed, 27 Sep 2023 13:35:54 +0200, Ivan Orlov wrote: > > The current version of the loopback driver supports interleaved access > mode only. This patch introduces support for the non-interleaved > access mode. > > When in the interleaved mode, the 'copy_play_buf' function copies data > from the playback to the capture buffer using one memcpy call. This call > copies samples for multiple, interleaved channels. > > In the non-interleaved mode we have multiple channel buffers, so we have > to perform multiple memcpy calls to copy samples channel after channel. > > Add new function called 'copy_play_buf_part_n', which copies a part of > each channel buffer from playback to capture. Modify the 'copy_play_buf' > to use the corresponding memory copy function(just memcpy / > copy_play_buf_part_n) depending on the access mode. > > Signed-off-by: Ivan Orlov Sorry for the late reaction, as I've been (still) off since the last week. Now applied both patches. Thanks. Takashi