Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26146900rwd; Mon, 3 Jul 2023 06:07:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7shkKQYvwK1G9M+dZCn+fjai+bdtAwTHIOwOGUqeEBd0NH9ztsv5gj2A/MZt/06AhJ7fg5 X-Received: by 2002:a05:6830:3:b0:6b1:604f:3f22 with SMTP id c3-20020a056830000300b006b1604f3f22mr10714957otp.2.1688389645428; Mon, 03 Jul 2023 06:07:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688389645; cv=none; d=google.com; s=arc-20160816; b=kM2IIBC4bSo9t7aO/8jSwKLs+UbaUrn90Tj+cepxo1siXKoYx8U/TKe+QlR5WuO8tr ss3jaSxoMt6R3z0l2Rs+mwEPuQr6XtCQtJMivjJrMkyY6/1G1bpwKfg9L2FuiQu5QlBW fbYtplxhMZW3f8rGN82/AQBfSB2yzXT/u6U01EfX/p6pSEJ8/EOvMPMOE3/miOrDt/MA h2oJXek5TBB5FFvFhxJPYdFXz5dCWqIRP74nQ0NdPSTlu99IdRVNDZQSYBq6hxG89J5/ p31F1Zqz7xXvU1HfPDkMz4Z6DzElRl90jSISZUGOhzpN6xU9vdqBl6GY9hSO9WwwJ/LS 2ftw== 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=u0udeDZkV81bddLBqdZOgUNBFJU56aziG7ii44O4d1c=; fh=St+8iDQAXrvRTEPf5AxINDjtsu+glJnaT15CRr3P42E=; b=VFJCGfto3kqJcUcP5ysvhv5maWP38uL5VK5eEkd68qHWi0Cjb4emBaeqNjiPsWXW/5 9dehOVxnvcoUZIUXpCVR2V95G9Ooa7n5D1Xhq/BtN+2xfTOSr1NgK7AFcXUWvpwspTw2 FiwFOyw4MyGD8SbP6EKstsqNolXfv2JOzFILvBWwJi7pkUBKfc6hvoIKIk3I6Se3b1W0 EXOwhwLjj1eHFKxNTAlnqy8HbHiCoSu+me/C4jvQt+CJF0IIEsoLWKG689Fw0cXY6AMm suV0WON5V/GE4McIW4rLnMOoaA632h3qCgpeaRzte4yjMMIBuGidPsQh/NA58CHlc+5Z n5Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UWP6F7tv; 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 a26-20020a9d725a000000b006b2cdd29980si8943134otk.172.2023.07.03.06.07.10; Mon, 03 Jul 2023 06:07:25 -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=UWP6F7tv; 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 S230322AbjGCMyE (ORCPT + 99 others); Mon, 3 Jul 2023 08:54:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbjGCMyB (ORCPT ); Mon, 3 Jul 2023 08:54:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB4AB118; Mon, 3 Jul 2023 05:53:59 -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 3A63160F06; Mon, 3 Jul 2023 12:53:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2F7EC433C7; Mon, 3 Jul 2023 12:53:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688388838; bh=hewjnNwAOpFhWN8t9+3hp7dpuy2ksO2+BijfX7/pwtc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UWP6F7tvelb32aSFkmXp3E37CiVtJLdyV1Q/Ol+oRCeZ8nbkDPcaKwnvipmDJY7tH 54BJt+Oc4y83gshDU9zSBY8HSz7K/MU8Y0voUnWGhtfIy1CdScydVw8NVkMU1EoU2n zQ7PTlmNXODiJcTWCcRKDWy6zczUYmSHoqRbRHJ21RUV2qlBOEw0yuexv38JuMAhSx sFkOlE4rxVTL3Qbj35KkPeFAQTB7J9Jz41zlNo3gfESItN/Y9hSRVQ6Bq1nPFiw674 nOiuhwpXKQywk/gVZzjACg//zXsHevdnUMkGHdOaJWCePBUDyigaQH1iPwiFg4JO6l DQeRuvSaX7XWg== Date: Mon, 3 Jul 2023 13:53:51 +0100 From: Mark Brown To: Takashi Iwai Cc: Shengjiu Wang , Sakari Ailus , Shengjiu Wang , tfiga@chromium.org, m.szyprowski@samsung.com, mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, hverkuil@xs4all.nl, Jacopo Mondi Subject: Re: [PATCH 1/6] media: v4l2: Add audio capture and output support Message-ID: <43f0ecdf-7454-49ae-96b3-2eae5487e9a5@sirena.org.uk> References: <1688002673-28493-1-git-send-email-shengjiu.wang@nxp.com> <1688002673-28493-2-git-send-email-shengjiu.wang@nxp.com> <87h6ql5hch.wl-tiwai@suse.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XyTCZVqlIuin1XJf" Content-Disposition: inline In-Reply-To: <87h6ql5hch.wl-tiwai@suse.de> X-Cookie: Please go away. 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,T_SCC_BODY_TEXT_LINE 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 --XyTCZVqlIuin1XJf Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 03, 2023 at 02:07:10PM +0200, Takashi Iwai wrote: > Shengjiu Wang wrote: > > There is no such memory to memory interface defined in ALSA.=A0 Seems > > ALSA is not designed for M2M cases. > There is no restriction to implement memory-to-memory capture in ALSA > framework. It'd be a matter of the setup of PCM capture source, and > you can create a corresponding kcontrol element to switch the mode or > assign a dedicated PCM substream, for example. It's just that there > was little demand for that. Yeah, it's not a terrible idea. We might use it more if we ever get better support for DSP audio, routing between the DSP and external devices if driven from the CPU would be a memory to memory thing. > I'm not much against adding the audio capture feature to V4L2, > though, if it really makes sense. But creating a crafted /dev/audio* > doesn't look like a great idea to me, at least. I've still not looked at the code at all. --XyTCZVqlIuin1XJf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmSixNsACgkQJNaLcl1U h9AHBgf+PmrkjDoGNN2pkJ1mNw5jmGsBAJkUX+OHPdAbWl0Su866gJ9fD6vXajFO Y/9d2UZ5ubbmVeBZn47fj95dmPvq2povgtl2nzNz85MpDwcac03pQBVmS+ZPfYlk Ui4s5mk+QFpXMRCxt4b9vYr8Wkp/lVH4RaD2q3fOXGeQqUvCp0Sn99z6tDZaTWBO 9hShFfh4il+VkKeBk6+m2MxWTcAEy5pAM7moCIE0VMDmZ4MEWmaXxvyJCZEOapD9 f+WpZURGpbdIi5yBHwfi/zVEHzfo2DGccC2UauYc50Z+hekml26dBQuTvfZM37Qc BN0Unl4+vKxBW8rdx7rkbRIUueFLGA== =SMUJ -----END PGP SIGNATURE----- --XyTCZVqlIuin1XJf--