Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp245875lqh; Thu, 28 Mar 2024 00:00:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbKbxGcD88SvtBxbTPjLrCiokujk4DRHfOnEuXygIdyShSVq+nj2CkPXSavwLmZCa/SlpPGxbbz3lOVYQfup0bW3ZkwT0oRYJiw9+gzQ== X-Google-Smtp-Source: AGHT+IHuthXkQ1EJXZB5XMeC71deHkB6cvj93YRuh11Mj7KGIWArMTapHPKtFhzDWTRwGWdsv10O X-Received: by 2002:a05:6358:75a2:b0:17b:5b6d:32c2 with SMTP id x34-20020a05635875a200b0017b5b6d32c2mr1460127rwf.8.1711609256609; Thu, 28 Mar 2024 00:00:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711609256; cv=pass; d=google.com; s=arc-20160816; b=BXBPbSEWNQ+uPSYSiKCcr4OzyANhyZ8Xn/a7gdzo0prwdAhHuCWql9PHO8k7Ym4TcL //G7bDzhuAQTJBKtRs9dqyIYG3tJQ3fhtoq9dIMR414YmyBb9BMxjeCvdA9MNziZDM/a WGfUe3d3TkBlhCeEdUEUv2spPV5CZsTajHduLtbWnUgweEDs6O1OAV4kSG83c21NZiGW Nmy7p7mIVJfVaELubNfgjPQeaidX+lwqSFSwNM1CnlojYf9p5zyUl5yPHYWb7EbaW4nj J8QBWtv/q8kzhanImwEzPelMYs2CzBCRHbI6CF1KVzU55RtFpDYK8rWlZRQ1Io/DEAqm ZgKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5zErBp8N2ZnTziefza/U0OrALfuYgSK5SD/D22bUoQI=; fh=hj2cF8Ucg2F5AjMwoPz8gI3agdc6qFlLiRroycXQBl0=; b=RNyiYnKguj/OBWSK44ZYpq7UQ/Qah5Rm7X/dnhNvbELJd7Zi1a0mle9zTUEycwgowi Nx2Oy5ngcx4iiyThHErI1Nzt9m/7JiQpGELpGgAHeqrks8Y5mZ3S4K1x9y9P5HvzVlxl 3QjieyFSIyn9huoovBTHPt23uGKYDhKV39E3y9Wk7BS57l8U2oUrST/AXAVAEiYUvQ73 Kx/RVZNLR7yH5MEd7xjs0Y6xhojcKtgkuEkNyLqa+cayaZ306UBPpB8Cbk9zcvktaJiI +73e5jr/jpPYgsU5Gsf/6RPsEos1vJrg4Zhg0wqvnTI+r6o7V+qEOnqouEkc61wcdb2t UOUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CKHmmIQT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-122485-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122485-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j9-20020a634a49000000b005dc422f07easi768155pgl.902.2024.03.28.00.00.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 00:00:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122485-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CKHmmIQT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-122485-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122485-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1EA3FB21AC3 for ; Thu, 28 Mar 2024 07:00:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 411EE50279; Thu, 28 Mar 2024 07:00:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CKHmmIQT" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5E0214E1C3; Thu, 28 Mar 2024 07:00:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711609245; cv=none; b=rlW5E9121d5IIv8rMmSP9bMgdpQyzvpc++9dBvvRWkIXY1Tr4XX/zkYtrMqbq6xsxj27rVFs0WtAYDhOUvLjxVNP97nLK53MsAL4FW5ZFEvfzrO+rFIEJf8R3alVW3IMK0IzB9UIQw0/GTvZq6MyzibcFCOeYzdxTH3Ow83nZj8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711609245; c=relaxed/simple; bh=79pUduyl7sVdyiBAUu3IXG13G61SWXkcS9QfQ9IVBhQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rR9EI8xCClSrHJ+JVWhtv5xdrMAoAJlTyXSFMj+5FArttGqiwjSkhlvjd1TQbvFcuNbp1pOnlykfhy1BTNUo/4sgOymUP4Xfbqz1kqFl4RkKO4YyWlg0SvlR8foXVK1JXeSpDIq3qfxDLqKiqs6KzaJ0mPoBunFaPor771kGpQw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CKHmmIQT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58CA1C43390; Thu, 28 Mar 2024 07:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711609244; bh=79pUduyl7sVdyiBAUu3IXG13G61SWXkcS9QfQ9IVBhQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CKHmmIQTNcpbo3VcTJJCnvOni0Pb2AWVxcUE+/De0JsNWPV2WNmZc5ZNQli4G6mrN 7Y9coyB4QKqTEV8BV1gV+JZwuUDj/oyT6sJ1K5lPPhI1W6LBEFkn8etWy8FQapkSas ZSeX7SDPZOEENB5AUiM/EIAKgUeLpIuvEkFa+yoOkui4V1ii0LPtpevT8+ek245eL1 rjQK2goLxy+n9WfmaCVzuMJohRoMgisFA+vlpn+9SfcQNe6q3Na0t6I9xsQOY5nnZJ aZf1Y9ZVyccTOfpfsCgzhQ6Q142zthSFGlSKeAYi5zV4yiXflDRlBc49Prp3jva76s FtorsR421CWyw== Date: Thu, 28 Mar 2024 12:30:40 +0530 From: Vinod Koul To: Sugar Zhang Cc: heiko@sntech.de, linux-rockchip@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] dmaengine: Add support for audio interleaved transfer Message-ID: 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240325103731.v1.1.I502ea9c86c8403dc5b1f38abf40be8b6ee13c1dc@changeid> On 25-03-24, 10:37, Sugar Zhang wrote: > This patch add support for interleaved transfer which used > for interleaved audio or 2d video data transfer. > > for audio situation, we add 'nump' for number of period frames. User? also why not use the cyclic api? > > Signed-off-by: Sugar Zhang > --- > > include/linux/dmaengine.h | 2 ++ > 1 file changed, 2 insertions(+) > > 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[]; > }; > -- > 2.7.4 -- ~Vinod