Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2156341lqa; Tue, 30 Apr 2024 09:28:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWe4toMloXaOMwZUUF5Z3n8hFAEkYpJ3HsVzVBvuJcUWOGrHM9RTIe5bluU0OH5lMJ9Ds42rVe4zhVlUi0ePRnntR8pJwgcSVX5oPQrg== X-Google-Smtp-Source: AGHT+IH5AcVrvuMHy9zz6xqJORhhNas6uHZ5Os1ff5AkvHv+WFycY1FC2HHxgSdoBrzhwGagEu/V X-Received: by 2002:a05:6214:d6c:b0:6a0:c982:e1ac with SMTP id 12-20020a0562140d6c00b006a0c982e1acmr9042536qvs.63.1714494496877; Tue, 30 Apr 2024 09:28:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714494496; cv=pass; d=google.com; s=arc-20160816; b=wg9A1oa7F9iZKLaBoLt2kXzYcZlgYbnygYppfQASB0qk9HWVcRst6nGJMOFLIjF7CP BUjVnSQlDPvD9sQDJiyWoClbTlunx5HiUMEoJ4Dw3JHQjHdsCl6TjYvR7clIBNdxPHz1 XznZFA5DWP/ja8EF3RFWJT7Jc4zf6sS9ZaN/mwnbcw3rzEcjswkmP1nkxuEu6j7EFWJA V9fDRhpudCSPZ3ZsXbZWVuEBdxqvOjRORALwsLYwppCcw5U6mQ6Fxsbq5+DlgnZWG4tD /JTrhF9E2KJzEsCkvFtjcgLjKgpvbFrUwwjPByxrQDkWuA5BcE6CS3naJqJE+bdZ5mbr nf1Q== 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 :subject:cc:to:from:date:dkim-signature; bh=QVmoclel+M5CW5MnXlguLjjJYetLOS/izw/K3CD3LXg=; fh=5HvmGooESLE2SQM+zCSBcHbb8WmM0993Zx0LibaaRfg=; b=wHnOoevTBjZz4EO0l7dNC7kftVRNuIgvhuPQ98IKZuK2MtR9tcRXAg2XhAiBKW2K5w GlUDxWzMEaTVrwQPBhRBx0EX4HjJIn/9dvzn17D3MUKDSNzfCrk+2lsr4I2oa/o/0aMZ AES+BuazOSaJYmsMFz4ba4Aet5S731IneY7B811DepFZtKej/zcKDJB6yAODwOaOnW/l 4i/lagVmqm7DCiNLo9KhWoEBxdP2ydgrPc2js16xal1aNGBy9/1OfWrG2OA3eGD2+ffe C51okcSqq43haLNAs/Pb9X48hHdURjkt/W6BiOmJCcZUAyqbAXEyeETN2ErUUdxOKWXN 541w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OCiswKJN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164369-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164369-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 3-20020ad45ba3000000b006a0cb047d6esi5793317qvq.428.2024.04.30.09.28.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:28:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164369-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OCiswKJN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164369-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164369-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9234E1C232EF for ; Tue, 30 Apr 2024 16:28:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1511617B4F5; Tue, 30 Apr 2024 16:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OCiswKJN" 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 2F780179659; Tue, 30 Apr 2024 16:27:59 +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=1714494480; cv=none; b=PQbrgpJ7H6dar3JhOx1S86bIMtqnAUlPFGkANY76DrI00xH+kyElK60wMNVBJjJKtoAqpWkkWVbFoEiz80bGnEWK+8ztIXK0zUTNxx1JmwKBP0iKoOYVMcnXiA4CgS31yIj8y+F7TqF/lOvVg1Lu/dSuRreDbbvFgB2hDWxG3aQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714494480; c=relaxed/simple; bh=u27bGd4V0G96pi8D9gvQaaGAkmUp7bSeoFGhoO/A8XE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GFr67aXHytL/BgtQups7G56pT1dnJsOl8yuQZdRD4cIXGDlO1o+Y2eROY9gZIME5OkBp3GUBKgKzEteZ0w6M0/iGTEb2q58//FPMTJb4Ufro+xHG6l5KeflqzprLzhSXqOI8yGt2f4C0tSyUCa8Gr0GI1fvi3wrRUcQE3DAjQUU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OCiswKJN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B2C0C2BBFC; Tue, 30 Apr 2024 16:27:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714494479; bh=u27bGd4V0G96pi8D9gvQaaGAkmUp7bSeoFGhoO/A8XE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OCiswKJNOu0sfl6Oov4FuPcbIbdEIAUmabyt1qX3yut7X6jtOUtNez6dT2UiSY6rd UmyD5qSfJyubO8kEyMTErYCZFFaSEvieHPnBf/O2A4ovxK9v590e5J/L2+RHeaDufu 3aLtZ/r7wpN+MjcKfycQd3ZruzmmING/5cJxi/GHSRw/rwljtTiMnDsS3wfXBynfUg B4fyEoVTtsQN7u/8lKgsS41p9O3Kp948p3GmD1zd0hA8sXXiyo/YefgCGzFrpWqMJ/ rBedlv16kTuD1X+QNkL5ru7Fpfk26uvfe2RSEm1+a4lgLtmlZkk9sQ1OLC8jaC+EHZ oFr1SVAafVguA== Date: Tue, 30 Apr 2024 17:27:52 +0100 From: Mauro Carvalho Chehab To: Mark Brown Cc: Sebastian Fricke , Shengjiu Wang , hverkuil@xs4all.nl, sakari.ailus@iki.fi, tfiga@chromium.org, m.szyprowski@samsung.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, shengjiu.wang@gmail.com, 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 Subject: Re: [PATCH v15 00/16] Add audio support in v4l2 framework Message-ID: <20240430172752.20ffcd56@sal.lan> In-Reply-To: References: <1710834674-3285-1-git-send-email-shengjiu.wang@nxp.com> <20240430082112.jrovosb6lgblgpfg@basti-XPS-13-9310> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) 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-Transfer-Encoding: 7bit Em Tue, 30 Apr 2024 23:46:03 +0900 Mark Brown escreveu: > On Tue, Apr 30, 2024 at 10:21:12AM +0200, Sebastian Fricke wrote: > > > first of all thanks for all of this work and I am very sorry for only > > emerging this late into the series, I sadly didn't notice it earlier. > > It might be worth checking out the discussion on earlier versions... > > > 1. The biggest objection is, that the Linux Kernel has a subsystem > > specifically targeted for audio devices, adding support for these > > devices in another subsystem are counterproductive as they work around > > the shortcomings of the audio subsystem while forcing support for a > > device into a subsystem that was never designed for such devices. > > Instead, the audio subsystem has to be adjusted to be able to support > > all of the required workflows, otherwise, the next audio driver with > > similar requirements will have to move to the media subsystem as well, > > the audio subsystem would then never experience the required change and > > soon we would have two audio subsystems. > > The discussion around this originally was that all the audio APIs are > very much centered around real time operations rather than completely > async memory to memory operations and that it's not clear that it's > worth reinventing the wheel simply for the sake of having things in > ALSA when that's already pretty idiomatic for the media subsystem. It > wasn't the memory to memory bit per se, it was the disconnection from > any timing. The media subsystem is also centered around real time. Without real time, you can't have a decent video conference system. Having mem2mem transfers actually help reducing real time delays, as it avoids extra latency due to CPU congestion and/or data transfers from/to userspace. > > > So instead of hammering a driver into the wrong destination, I would > > suggest bundling our forces and implementing a general memory-to-memory > > framework that both the media and the audio subsystem can use, that > > addresses the current shortcomings of the implementation and allows you > > to upload the driver where it is supposed to be. > > That doesn't sound like an immediate solution to maintainer overload > issues... if something like this is going to happen the DRM solution > does seem more general but I'm not sure the amount of stop energy is > proportionate. I don't think maintainer overload is the issue here. The main point is to avoid a fork at the audio uAPI, plus the burden of re-inventing the wheel with new codes for audio formats, new documentation for them, etc. Regards, Mauro