Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1513951lqm; Thu, 2 May 2024 18:47:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3uq1AApEwAxosCvEbHEiuQnkRZReRO5IFwfY/ubUEBZTkmNKO89yxeRUWrQs3F37dEv598x+4yPNGqxT1X0dnHYh7SX2xcwwBPMupYw== X-Google-Smtp-Source: AGHT+IFIdMk4UFUJuNRmjyymZCw+B7l60LCqBay1SFDgbqioCz5sZ0sqqaaaMQNf+jiEbn4pY7an X-Received: by 2002:a05:6a21:3994:b0:1ad:7e4e:428d with SMTP id ad20-20020a056a21399400b001ad7e4e428dmr2121252pzc.20.1714700852495; Thu, 02 May 2024 18:47:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714700852; cv=pass; d=google.com; s=arc-20160816; b=S7xEDK7Mc9ILGbH4cqocAm6Skn6GXnwy1j2pB5CHcZPMGLQYPxHD7rfBs/DWCtM6KJ iqpcQ/Ut1htAYHwSY9FVG00mhFUmZt6LSOPjg7dZH58zL/Oe9iTzX62LU7MEpm0Kr+Lo ghnmrCA0zs+paXNOZLkJcSd7/qp1hUoVk3qh1Op65XTId5Xa4KnhDTFoaOHGtPewAbNy yuLUZvPgCH6xHVIaP+GGJxVln2KCS0jCMs4HYjmleG8gosEsv0FwH1mesm+73hKHLvXe HF7w53NLur03bKG313LLh5xIMT6iixb5tDq4Agao4Yn+9lAqCoiULOIBBfmG8o7vPYrf NKkg== 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=jnztmxuaRUJ/EUjiAcJ6LSXXmWw6auqF5LGM5XsjF8A=; fh=dmWKKVu7VWlqB7ksLuzrKrTgq8CHnqXxPD2mL6s2dBE=; b=m4zURRuM+kojUX1mxhhjGifWDNN1FczEqCRjyvPEUkYxE1uRwO1voiJYkRKjzyqXgt n4oA03TQE4YxUM2KS7zDiG43Tzi/OdPkTOBy9OdbgXrtuZiC95n9/8fT/c4sdIltL6JN nGMVzYQCtbmQsaslOb6ahVlXm+rNxAzQmahWhy2/vHM0T+JsIkkDzC6ZKA9Mvu3pTA8s JMN7q0TdLfKU2uxsQayEwjYE08zRY+KH5cxG0x96C0bUtxWtlIzMbt7Jjpp7WObX9Cg3 CPk3oBg81NyHjGbRV3aL4WeP3e9R3vks2BMquatsGytZc8VIBg1eU9TrG9y5otJP4rib dFKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=huJ8dvqB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y5-20020a17090ad70500b002b32d5f0e34si2122983pju.160.2024.05.02.18.47.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 18:47:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=huJ8dvqB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167159-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 228F6284C62 for ; Fri, 3 May 2024 01:47:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FB8A134A5; Fri, 3 May 2024 01:47:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="huJ8dvqB" 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 33095125C9; Fri, 3 May 2024 01:47:22 +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=1714700843; cv=none; b=G4Zn8Vc1dd8dwpZWmnQCfPotUXsOaKeoZTEJtOxrLjLrJkUx9XNILruxFdOXPw6/bBb80PGs3/hAkhaZlIfx+iP4Hc92GizjGdK58MaQzhHZ30MXbHZMuppxSAdIMEftwl74E5+mc4tCSHdIU8VAx/lDftZ/GmDKZWhp6XnWZzE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714700843; c=relaxed/simple; bh=jnztmxuaRUJ/EUjiAcJ6LSXXmWw6auqF5LGM5XsjF8A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EXodj5zcdND99yW5yNsTCjvpTWtIijJ1o29wDKVDWSCPHZvq5y47zqnuI8PUBeKzZe5YyDhbepO3pYma6FmPTmEbKgQctZVOihdDOUDtaBXTRfkfmTOXBEDm5Z553UA6zRi6UwL6aZILpJycgSXYo4KORvEqReW6LTaIOAG1pKE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=huJ8dvqB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DB22C113CC; Fri, 3 May 2024 01:47:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714700842; bh=jnztmxuaRUJ/EUjiAcJ6LSXXmWw6auqF5LGM5XsjF8A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=huJ8dvqB+TN/5IgJ6rtnCXfVgXOlZfAdZYA/7vs7YuLO962TFb+avL/V+5+Rni204 u9/f/fRre6WsTm1XAt3biIJ7MtrAkKMlIcdBiezfCUBrbLhc4GQOvDOFdoMrywy15G HVDUuTPVvWfCo/LWmMR/YAYd76bJuAAZMqubdIdTqLpUHdoyUTiJr/OhqWHi1DQwX/ TTfuZAYA+OBxUo5XMadmDCz6i1lMZq0CwsUh/khAN9yCvtk9LCjCamRsZktG50n/EX TDY9n+egIwFoWC/EpRvSADEFoGvRx918hONbY9legxC9/dh+ROPGl1a4VHgQWky9Ab R0tQiZIJgiz0A== Date: Fri, 3 May 2024 10:47:19 +0900 From: Mark Brown To: Mauro Carvalho Chehab Cc: Takashi Iwai , 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: References: <1710834674-3285-1-git-send-email-shengjiu.wang@nxp.com> <20240430082112.jrovosb6lgblgpfg@basti-XPS-13-9310> <20240430172752.20ffcd56@sal.lan> <87sez0k661.wl-tiwai@suse.de> <20240502095956.0a8c5b26@sal.lan> <20240502102643.4ee7f6c2@sal.lan> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YhSjxC/xCHptpvaf" Content-Disposition: inline In-Reply-To: <20240502102643.4ee7f6c2@sal.lan> X-Cookie: lisp, v.: --YhSjxC/xCHptpvaf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 02, 2024 at 10:26:43AM +0100, Mauro Carvalho Chehab wrote: > Mauro Carvalho Chehab escreveu: > > There are still time control associated with it, as audio and video > > needs to be in sync. This is done by controlling the buffers size=20 > > and could be fine-tuned by checking when the buffer transfer is done. =2E.. > Just complementing: on media, we do this per video buffer (or > per half video buffer). A typical use case on cameras is to have > buffers transferred 30 times per second, if the video was streamed=20 > at 30 frames per second.=20 IIRC some big use case for this hardware was transcoding so there was a desire to just go at whatever rate the hardware could support as there is no interactive user consuming the output as it is generated. > I would assume that, on an audio/video stream, the audio data > transfer will be programmed to also happen on a regular interval. With audio the API is very much "wake userspace every Xms". --YhSjxC/xCHptpvaf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmY0QicACgkQJNaLcl1U h9DEDgf+OxkntU8LcfqnvW2Z51UqNQJ0p62Te/DmJ+wZWQotYcbwAQdb4fMKfeyw TU+Kka5bvWBtYfhoCnXFlDqQUh4Ldk7wZEWfHS2KCCM+o3mr/WHvxCRqSvy2geXZ +76U6qA5/RPQnAFUlNe9Kp4LK4LpvGg9KONljKpsIdFBEDvJG84wr+zLwDuboy4O rVP1hJQmucWST9qsBWFT+7VmJt9tbK2I3iwIB2Z3utiJvBFvyyj8bVMx5I1ssxfj Rh5yL+iQ+aEQkTwEBTzuAS055XYNxzl/eBa25iRWCgoYOrMiphGpWBDWp5qUoPiB SWVL9dU2q9I5o4Y+GNohSdEw9Rctfw== =OLs5 -----END PGP SIGNATURE----- --YhSjxC/xCHptpvaf--