Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2699726lqp; Mon, 25 Mar 2024 07:02:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXgs2QZWdVTUuxLdweDl2Oeqg3miUH5dKle4SbjznhaKWGXpPKVQhkAB5q2ZmB6LqQ6CuYjASsrolGJpLu83dL721FotWIlvxI2jhYZRA== X-Google-Smtp-Source: AGHT+IGCr/HVKYQnwrD+QYD8bQMP+ecDN0sCO01z99U7rJCIcbPfoiMkfkHsLm2ALLI9zbwiTtfu X-Received: by 2002:a05:6a20:85a5:b0:1a3:2f9e:b0da with SMTP id s37-20020a056a2085a500b001a32f9eb0damr5319565pzd.23.1711375378043; Mon, 25 Mar 2024 07:02:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711375378; cv=pass; d=google.com; s=arc-20160816; b=hFoUoTNyo0n10GRX7/Cz7TegrjAMCr2RbPaIulP5MePRP7h9I2uajVaPAfAmK/IvME iZT7l7cBP+F/CPNfmoecWkq+YKM4X//aPVwjfg9T7aPcs9UbaQ87CbRD6y+fT7GszPNM +f4Iuha/YYyi2X982PxLVplc5UFBmbF53dxYCfPGqtQGPabdceEdozO//sB/Kwabxrvb AbEQGYpL+aaqB8liOzjUUb+hsdmEYZVXhfTB0y6hYklCY66fOdbo6NW3A7zTH3KQlefs owOyCkMyXOrX/j0nduJTeoDrga4l0B/BMQ63lXBvbcKSA2/k6CHBkMbjXvy4XCXwZT+r /7ig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=pWuzRcIo2flw9CJtrXNxBkkJQjfyoA88V1RlOMhtyaw=; fh=/Q1vqU5urDwpODl6W5uc0pKJKY7s+/0DLnfiRygiMEE=; b=sIjsIM4/RnS2KBgIjMSfKYXDXCOcl6M2emGUHtnTnZftDB/YVogo8pi6EsnIVOIlHy 81qLvSss63656cP013yh4lz/kP2EE0qm1TkofEuqcNQINTVcCAI0+NVHIX0A1yRSR67/ ZffC8rUHt2V1VLfKMJEX1W69mjLVY1+z84mLtyEMtERrExttOT9blghDJXov58qdohV3 PrSalbBL6upaVbKtU/aneVyLyxd72LMsccTnQ81QGtw2Fy0dpB3YbDdMEItFJloq54sr P/df4JSIFdhdiX73Ul4ceBdFPVAIAeEbv+vMFfrOJkmXS7MMT3XPUafECUFG/8I/zFD/ sJRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-116750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ka15-20020a056a00938f00b006e613ec716dsi5035021pfb.143.2024.03.25.07.02.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:02:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-116750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 204002E2CFC for ; Mon, 25 Mar 2024 13:56:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 035EB17497A; Mon, 25 Mar 2024 10:37:05 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3955181491; Mon, 25 Mar 2024 09:32:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711359146; cv=none; b=Uy9Vid/DwE+4wp06yWeZT62iSCjF/l0wAjmzqOQ4jiyuc/SVXxheQ2ULvWAurXG71Wgs2R/1yUlXICS0f9JJGddVo/QgkiKYirM6zV6DyLWHOGKBSSZbxJ8GLwZcetrLXj0afwF6558wyjdZlNzNkvjoad2S0f+uSTIaecaBonA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711359146; c=relaxed/simple; bh=ZDD9oI7+kzl+Iom4aF4liYA+/NSY9xwPsvohVm6SgA8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XgfigdtZ8yuxWbqSPdbZyKk7S7ezrQifyp1aiF46/Ac9C3e7YSuSSZrGtGYBV90+OFdR/kPap7M/Ncnr0Eli8AquEoyky9y+CHZEGr3dQpnGfC1ckxo08TfrMLGRABMTBQuntHv3UPWLY5g4+ldoH3fxAtXzKDprkF4RhKNcnMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i53875aaf.versanet.de ([83.135.90.175] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1roggb-0004XE-8B; Mon, 25 Mar 2024 10:32:09 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: vkoul@kernel.org, Sugar Zhang Cc: linux-rockchip@lists.infradead.org, Sugar Zhang , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] dmaengine: Add support for audio interleaved transfer Date: Mon, 25 Mar 2024 10:32:08 +0100 Message-ID: <2115347.bB369e8A3T@diego> In-Reply-To: <20240325103731.v1.1.I502ea9c86c8403dc5b1f38abf40be8b6ee13c1dc@changeid> References: <20240325103731.v1.1.I502ea9c86c8403dc5b1f38abf40be8b6ee13c1dc@changeid> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Hi, Am Montag, 25. M=E4rz 2024, 03:37:49 CET schrieb Sugar Zhang: > This patch add support for interleaved transfer which used > for interleaved audio or 2d video data transfer. >=20 > for audio situation, we add 'nump' for number of period frames. >=20 > Signed-off-by: Sugar Zhang > --- >=20 > include/linux/dmaengine.h | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h > index 752dbde..5263cde 100644 > --- a/include/linux/dmaengine.h > +++ b/include/linux/dmaengine.h > @@ -144,6 +144,7 @@ struct data_chunk { > * Otherwise, destination is filled contiguously (icg ignored). > * Ignored if dst_inc is false. > * @numf: Number of frames in this template. > + * @nump: Number of period frames in this template. > * @frame_size: Number of chunks in a frame i.e, size of sgl[]. > * @sgl: Array of {chunk,icg} pairs that make up a frame. > */ > @@ -156,6 +157,7 @@ struct dma_interleaved_template { > bool src_sgl; > bool dst_sgl; > size_t numf; > + size_t nump; > size_t frame_size; > struct data_chunk sgl[]; > }; hmm, this only ever adds this nump element. I think for adding things to really generic structs, you definitly will need to provide an actual user for it in a second patch. Heiko