Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26077487rwd; Mon, 3 Jul 2023 05:16:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEcy/y2gp/h56UJt9Pfb1oKO4ztQ1ZCk763W/37pUm40lRKcGYXqVZFCX2UAwIUpoq48Fkl X-Received: by 2002:a17:90a:7064:b0:255:cddf:a0c8 with SMTP id f91-20020a17090a706400b00255cddfa0c8mr9969379pjk.41.1688386599092; Mon, 03 Jul 2023 05:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688386599; cv=none; d=google.com; s=arc-20160816; b=nf6VBahZPTMiMjEvszFxNbQq+V2dkhQNyUWVkmqVPNWjwTPRRsiNwAxOuKmeOMEVqA BCHRXfPGfRJZouEZVhhmH/iUnW8k2OnT29wzeqq482EQ4Sc/rP+pf38HUl2kVYVKOeEX U3KKldLG/ZhcF91GLE2U5i1Hq3S0sLrwVYZFh7CwrNSSZ3dQvJTaPlM+FFzRx2oZ5JTA 13RylfxAtGA/4tFK5gp6p2xVpq9hZxFrukI6IqX+Z9fG2cmsnhl20P2QORuhIBsPNIJx CUJ+9cBfG3qsOeKLvPw5Ppdqr/Ooi2ytmusHa+yaa6GTRzJEKfNzWxAN7NLKHgRH7z6/ E1tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature; bh=Xjo1FzDRtH38qpOa18b49WUf8o6xwwrYzgUyVPfI1Ug=; fh=qrPKtwooOPzf/8gws1thRfY/IJxqd3mkaNn2WVrvH2A=; b=VL4XOYJzCqwq/WgVT/4AAR4BqcGpwMazs5PGWIcpYYhjAJyd4OnqoUFDc1CZtY3ezZ nlXlpzxtN7mBDNElnz1bcwZJcFbHslFzSKLmNKS3Nxf348W+87Xsjkf5GuGlZevAIFmI tBUB3n8w0681YR3ZmvNhJ81+a9rlh8MXFpFUB8oCqtygc+tcTg+dQwd+kmb4HFs86scO eSfBG/WqZLj0DNm8+XiCpcD4AXXTHMtesYZSO0Ap8VpnCsz5fxjG6qLEZ+YxE8LXX5IH IVOLszX0trLobau8CpjV96nT8H/INF/m2BXpdfunW4+1+8HrJF9LZ6PfP5CK/sIlwAXI v1XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=MSnaBW3t; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=TZv7uZB7; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a17090a9f4900b00262f8c7ed18si14933487pjv.94.2023.07.03.05.16.25; Mon, 03 Jul 2023 05:16:39 -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=@suse.de header.s=susede2_rsa header.b=MSnaBW3t; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=TZv7uZB7; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231341AbjGCMHP (ORCPT + 99 others); Mon, 3 Jul 2023 08:07:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjGCMHO (ORCPT ); Mon, 3 Jul 2023 08:07:14 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7213109; Mon, 3 Jul 2023 05:07:12 -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 95C3C1FDE6; Mon, 3 Jul 2023 12:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1688386031; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Xjo1FzDRtH38qpOa18b49WUf8o6xwwrYzgUyVPfI1Ug=; b=MSnaBW3tWbGFZz0kcWdaRRAiONNZgHvwQojeS7yZpiQGkqQMfUnzxPT5byVWm+RlHlGYNG 27LJ6jwAnZdCubsGtE+nv2QAgfOFyOjTouOKkc3jLboxCMi7lJ8aiv54w0vwuQZnwbDdk5 IGosnrq/0XU+lucTojpkNCDMmEhlUDg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1688386031; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Xjo1FzDRtH38qpOa18b49WUf8o6xwwrYzgUyVPfI1Ug=; b=TZv7uZB7blqPoGJ1mqJ4gqnOKCajEF/BrJ41pDEkVx0xgIHod0Q3IaQZlHnu2OVPxP+N/2 uglZjjj8g9VBXOAg== 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 0AAB513276; Mon, 3 Jul 2023 12:07:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 0ml3Ae+5omT4agAAMHmgww (envelope-from ); Mon, 03 Jul 2023 12:07:11 +0000 Date: Mon, 03 Jul 2023 14:07:10 +0200 Message-ID: <87h6ql5hch.wl-tiwai@suse.de> From: Takashi Iwai To: Shengjiu Wang Cc: 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, broonie@kernel.org, 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 In-Reply-To: References: <1688002673-28493-1-git-send-email-shengjiu.wang@nxp.com> <1688002673-28493-2-git-send-email-shengjiu.wang@nxp.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=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 On Mon, 03 Jul 2023 11:54:22 +0200, Shengjiu Wang wrote: > > > Hi Sakari > > On Fri, Jun 30, 2023 at 6:05 PM Sakari Ailus wrote: > > Hi Shengjiu, > > On Thu, Jun 29, 2023 at 09:37:48AM +0800, Shengjiu Wang wrote: > > Audio signal processing has the requirement for memory to > > memory similar as Video. > > > > This patch is to add this support in v4l2 framework, defined > > new buffer type V4L2_BUF_TYPE_AUDIO_CAPTURE and > > V4L2_BUF_TYPE_AUDIO_OUTPUT, defined new format v4l2_audio_format > > for audio case usage. > > Why are you proposing to add this to V4L2 framework instead of doing this > within ALSA? > > Also cc Hans and Jacopo. > > There is no such memory to memory interface defined in ALSA.  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. 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. thanks, Takashi