Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2548928rdg; Mon, 14 Aug 2023 06:14:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENj2DKaYfy1gIcHDySO2xHZYEeK4YnIMzMhRhzT7+IifT9ArVlc5Lyw4cVlNlyTIguLyxU X-Received: by 2002:a2e:8752:0:b0:2b6:c61c:745b with SMTP id q18-20020a2e8752000000b002b6c61c745bmr6842431ljj.3.1692018867155; Mon, 14 Aug 2023 06:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692018867; cv=none; d=google.com; s=arc-20160816; b=II0F4wRXXFpZHcwEzEtEzxCm+zW+C0VpNGyTLZ2wI24yFGZpF10ulyQTVG8TjUliBw x9NqsMjv4beyD7YwEZL7zCv8+c7e2fvXl4KIkI0oHWgFII4/Lk/I/gFpPe8Yjtp9zFD4 nEn15A5mwvJ8hYGWoAoD94PLBCwkTBakS5O+1GrpxNZuElfObjHnyzyTmpbYXoB0GNvO xtH3Sz7QlXrule+6IQmXXzGEQKIpbkcTnkfF4W2iZM2PE16qOdpA5izb16PIcq7vqnTx 6wAtANLDK7CbYBQWQya7iMN4Yl2fHYSe0DZ8FsmIgDmWGO36spkssmqw8p7oOr/PJI/H J+qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rVaEgtVI/3olCQFKZ0Kg06W5061KPIHc/m7+tUcuiBU=; fh=+Idj+wKK1ONAatsIJSc0COw5/gN8mEPrSXZIovA4D2w=; b=NENH5q6T5lYJwubxrcXgxlWH3xUhue0aFw87xczfrgEOimwRXxGdhwBy+xClSDVoSM edjmwrvNHMrwFfLjIjzwC7d1f3qBy6Jk3ZCOKMJZD2QuM0oQjcq3YjfoKu8Z+x3BsIOl NUgC1+3KjC1LwQRkIQkVpfntDU2tP1w11aEckpA2XEhqrBSKMlVayfsXqr5FLPlerbie 4phtOJDiIOWT9TzzJGzu47T9y0K2qSmVP1ozfY2gVBfjR5sJ0CMvn7S1/QPZHCHTYZos 9qc15rlI4q/e/z98PyWYtBFoxjYNbDuk94xBD6HV9yFuLbwX5oiqZeVn0TQ6FfReymvl tW+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b+g2DWm+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e21-20020a170906045500b0098e22b5657asi7556046eja.929.2023.08.14.06.14.02; Mon, 14 Aug 2023 06:14:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b+g2DWm+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230166AbjHNNAn (ORCPT + 99 others); Mon, 14 Aug 2023 09:00:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231460AbjHNNA0 (ORCPT ); Mon, 14 Aug 2023 09:00:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64DD7B5 for ; Mon, 14 Aug 2023 06:00:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 022A163070 for ; Mon, 14 Aug 2023 13:00:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0C2FC433C8; Mon, 14 Aug 2023 13:00:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692018024; bh=yvZaPtCDpYus2GIWv4cRALOvUE7UzxXRXwB9m9FkoM4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b+g2DWm+K428DkmJS3lF2C/3iX8GSfNZt8wymKdPtbecClhURfd974WsSMLULCAB8 nRoG2TNx8VHVx5dy3bBkjMpo8HHx6zhARPEzt+Vu7EEXLMmXU5cxuSjC6VONKD3N6g aADMMRYEZX9K88DPd9wp5PFzZun0LTF6qgU6JPuhjLTFPFU2GodYtcNdisrDUf2Igg xkIMmpE6VFyKlIngTsCg7seV2zchGAJT+FVxEPqNKUkF9WIms/GQd+zUGoQ1oJWdax njPdGUlwg4LPLtjPN2nC0+8P45AzuRW4jypFXCYwCeHSkhXne2JT7cAJWM4mJYA2o+ iK5TR43QepvQg== Date: Mon, 14 Aug 2023 14:00:19 +0100 From: Mark Brown To: Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 19/25] ASoC: mediatek: Convert to generic PCM copy ops Message-ID: <8814d58a-c4bb-47a7-b386-4342588030a3@sirena.org.uk> References: <20230814115523.15279-1-tiwai@suse.de> <20230814115523.15279-20-tiwai@suse.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="e9cXrDQtETRLT4qe" Content-Disposition: inline In-Reply-To: <20230814115523.15279-20-tiwai@suse.de> X-Cookie: FACILITY REJECTED 100044200000 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --e9cXrDQtETRLT4qe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Aug 14, 2023 at 01:55:17PM +0200, Takashi Iwai wrote: > This patch converts the mediatek BT SCO driver code to use the new > unified PCM copy callback. It's a straightforward conversion from > *_user() to *_iter() variants. As copy_form/to_iter() updates the > internal offset at each read/write, we can drop the cur_*_idx counter > in the loop, too. Reviewed-by: Mark Brown --e9cXrDQtETRLT4qe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmTaJWIACgkQJNaLcl1U h9B7mAgAgG0rWe6fLk6qrZbUnnFOI2s63/YYtPQihDFdkBkTl4yiXRCjbJPmomWu s6OqCfqusARAKBBFc7h4A8IKiOXbQHOrhGlPpnwMQA4xLEGLO0kteu7DgAc/s6Q/ n1pOA9VtVX35TcCGm+T0/GYJN/GbXwppYQ6P/rcThPk25F4e/Eft6zPWeCR9xSM9 4eOwBuoUzSvGx+ozZRf1MLJxlYudMssGaEPzozgEIMQaEWs+lJRFNlao9ZAkaePd GQk+vSJQdiiT6BUGNJdRknetz9p0m2iACLdtcJhdqnRT/Ydt0iCdKLlcyrle3+iY btQXIJGcL4mJaiJWn0vw2baZThdIPw== =RxGE -----END PGP SIGNATURE----- --e9cXrDQtETRLT4qe--