Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3900344ybz; Mon, 4 May 2020 11:47:12 -0700 (PDT) X-Google-Smtp-Source: APiQypKXd1+ApB68moHxMFXtu/vxu4fxWF7ic8tiFYm/ib1TmUVglsyCHGrhIUOyiwl3aNPJgFi8 X-Received: by 2002:aa7:d892:: with SMTP id u18mr16022304edq.156.1588618032018; Mon, 04 May 2020 11:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588618031; cv=none; d=google.com; s=arc-20160816; b=Ipfp8f8J9Rma2D/TRxmKaJ2VrAJlW/UCbEkcNfCKueA6rdwnQGsq4kaOkwjeUdV/mr jSpueg0vrDD7mMr8BYR0uArWnS5tPe0KqdBpRp/s+9uoLZbTqIwag1qkWG8E5Lyd/5RG x02Ihx3SGkjqM48w69weU0/oZpPMcyg6n/SbT3Vp12BlsPzMaUGVdLxIUPxp5WkuxuPA mAslIwScPZzrleCcb/C/z88uslgJHFMHRyGtijJntvBOGKeyL0Jpr4TeR/v/Kzi4FXmd kQqX/k44ylzz6aKMRFl+LJOOgVwRN3AiDRgsltuyZFWEMaVxzMYj7aO4AGY0V/zchsQx iZAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0jInh2La/I+Coeeu02fYTCNdyTMrvJqiR61PmhF9MuY=; b=GA1s5U80ejCYSKJ8dkpGclhBXpPHbEzRT6VQ9DS6eG/c9nF8XTKco0bvLiD0yacXpp Cpfe3KU/3skd3TgzRGpS+A83/WM4FHFP63kjA0RmQOqePsfVtKpQs2gpxujmyyCQppJl X4jcSwqSsqX/cnD/gM3y+IwHVw73QN/xMs3pWTVGOrYIO09njlypNK0EuxOHvM839vsu m/FU2VyX1KTgz91w2iAqFINwiTsk/4Hs31XPSTHnR4Xofa6pJz30WDbdwNdPtBVPa1ea CdLXEzHNygTSgeOqmakonh2kn5b48a689GWvVHtP6SdVTq43hu/P+83gPjZ8U0d2bgc8 2WvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="T/4b4jqa"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si7183944eja.102.2020.05.04.11.46.48; Mon, 04 May 2020 11:47:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="T/4b4jqa"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730506AbgEDRz6 (ORCPT + 99 others); Mon, 4 May 2020 13:55:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:49234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729386AbgEDRz6 (ORCPT ); Mon, 4 May 2020 13:55:58 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 40165206B8; Mon, 4 May 2020 17:55:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588614957; bh=7AASLHxv2Rby4dstXR1mZull2LY1/sl46uo96ENxXog=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T/4b4jqaWekrwSnAOxrrDnnsqhQdyBbqnCTaU4oZvRIk1eLfkoYWFZ1ih5QvyBaPn /XDMyxX07GqjYgR0nbxYkb7arLT1aQCJjt4ADoIePOJItfhJ06Z1Gf3LlyxSV+FfeV FizZRIenSvfWO2jknmk2ojaBVX7K1p8zWc+VBTk0= Date: Mon, 4 May 2020 18:55:55 +0100 From: Mark Brown To: Sameer Pujar Cc: perex@perex.cz, tiwai@suse.com, kuninori.morimoto.gx@renesas.com, lgirdwood@gmail.com, thierry.reding@gmail.com, jonathanh@nvidia.com, digetx@gmail.com, alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, sharadg@nvidia.com, mkumard@nvidia.com, viswanathl@nvidia.com, rlokhande@nvidia.com, dramesh@nvidia.com, atalambedu@nvidia.com, nwartikar@nvidia.com, swarren@nvidia.com, nicoleotsuka@gmail.com Subject: Re: [RFC] DPCM for Tegra Message-ID: <20200504175555.GG5491@sirena.org.uk> References: <1588250483-10014-1-git-send-email-spujar@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ahP6B03r4gLOj5uD" Content-Disposition: inline In-Reply-To: <1588250483-10014-1-git-send-email-spujar@nvidia.com> X-Cookie: My life is a patio of fun! User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ahP6B03r4gLOj5uD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 30, 2020 at 06:11:23PM +0530, Sameer Pujar wrote: > a) Can I use a DAPM Mux control to activate a BE path? This in turn can > program required switch in XBAR. If it works then sure, that seems sensible. > b) I have modelled SFC and MIXER as backends. Is this allowed? >=20 > This was done to include SFC or MIXER HW components as part of the > sound card and use like below in one of the audio use cases. > =20 > ADMAIF1(FE) --> SFC(BE1) --> I2S(BE2) ... OR > ADMAIF2(FE) --> SFC(BE1) --> I2S(BE2) ... This is the sort of setup that'd be a lot happier using a component model. > I used following workaround to connect multiple BE components. > With this I can see PCM callbacks happen for all BE DAIs along the DA= PM > path. The obective was to connect multiple components together and (a) > was used to connect one component to another. Each "-->" here connects > two components and it is a switch in XBAR.=20 This doesn't strike me as something that's likely to be robust but given that that applies to DPCM in general so long as it doesn't break anyone else's existing stuff I guess it should be viable, it's not like there are actually good options that you could use currently. It's really hard to get enthusiastic about it though. > c) Hostless mode did NOT work: > - Following audio path was intended to be tested: > I2S1 --> SFC --> I2S2 > - [3] offers two options: > * CODEC<->CODEC: If I were to use a separate DAI link for each B= E to BE > connection, then it will result in a similar design what we ha= ve > currently. This is more in line with components so will probably be easier going forwards. > * Hostless: I did not come across references for this. > (Any references in this regard will be helpful) Not sure anyone has ever done this with DPCM, could be wrong though. > May be the current Tegra ASoC design is more suitable for component model= as you > had previously mentioned. I wanted to understand if above, especially (a)= and (b), > are acceptable in this regard or if there are better options to interconn= ect > multiple ASoC components. In general most systems would be happier with components but yeah, I think that's particularly the case for something as powerful and flexible as your hardware seems to be. --ahP6B03r4gLOj5uD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl6wVyoACgkQJNaLcl1U h9BsCQf+NDpQnXUKOhrp8OMCAs73chnv7fTrNscXnf0V+rnrqqSC7b6d0Q2tz3QL 8HYzl1AiMtRaAmybm98BhWpdUWXMGTKdYMBM7uKX2r+uVkm6oWhhK+EST6fOMv3k ZvgRM35+2mIXUrSR5b62uPIi8O3mtbLuFkPb3oWkw/hT0jQm4MPKl/c6h3f9e2qb FY8yrgExhRQkp+NAKMSNKV4gEZbViEJG5M9w879aEjQdWWhJ4tqo2s2QQXZmg5p2 x/uNk6mgWU+edW21BN78iaOB8urYcnac5ItgRCiVVCrhRjNeP8qhs0irsRF5l03X 656KL7U44mgySYNW2tlLHsXV/jmJXg== =W0ip -----END PGP SIGNATURE----- --ahP6B03r4gLOj5uD--