Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1080426ybv; Thu, 20 Feb 2020 12:47:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxWg+7rD/87ddBfK9il7PM5tX1eLDqWCcji51iuvZn8IjeBAxZmlc3rPSkq3J+fqS8xBjR9 X-Received: by 2002:aca:1b17:: with SMTP id b23mr3568207oib.95.1582231677907; Thu, 20 Feb 2020 12:47:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582231677; cv=none; d=google.com; s=arc-20160816; b=yDLgEFfPXAzznWXJ1o8w/fbbFvxSb31o88mkCwy9DVnyIHq9NVsaou7eZ+lFpJY+Gy y3xP5h0qzECwA4aB7G88nlj6x9lEV9zL4WsPQt3NEwojkHG2IjGTNqTRLJpLCIbesbJf Dfj4Qm0/NlsSF0/dtYjut/avO6Xh7UjxCGrMVtZjbnCAMGDVjFJS4hQ60rV/S0k9nwNv KCBsPYPD0TNw9pQILcIWVAxnC+fbNkqlDXRn9qvVE1rMZf8Npyn8vrnRoyGr29l3cZq/ bzzAvrnYNs1PBSx5i8JIedzWDHwO/25n2Nw/8hNnF7BoutcBHjN1K6ixjyIe3sebO7k9 ibnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zhAIqLnnnv+wodCzFnBPaFPLL1axodY6rIUf0WW6IXA=; b=pS519+GLCdaHAqix640rFy17cZGKVQchGGAXv7SWr3z0EugqDILfQSDeEqVeIvKquM HyuIPWE+fCtN+jHs+EHhEfmwFoRr+ITlofN2P/Hgh0lKS+4d/ikcPgQvKlfEQj6rDtIw l0Fnb/5HQgn+U8eORcoRjWG3SWE046NTbQnlk5urxykk3uDqqGxAFApHt65WloFTp8UR 7q00D5wQ1k+qFRuJah5YAcrZjONE3knPZ0sho+muob54OyjBpuR8t0MSvjoQ/KGh5H9h 3bCrYcWzrKVZPBnWkCu1W7hAjgM4hKV3ZH1RsaxwTkQ3LRPpobBPcgP1cFs73dDq+0X/ DazA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="d/MuCgRG"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id a6si221748oia.33.2020.02.20.12.47.44; Thu, 20 Feb 2020 12:47:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="d/MuCgRG"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728990AbgBTUrg (ORCPT + 99 others); Thu, 20 Feb 2020 15:47:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:60150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728618AbgBTUrg (ORCPT ); Thu, 20 Feb 2020 15:47:36 -0500 Received: from earth.universe (unknown [185.62.205.105]) (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 8EF53208CD; Thu, 20 Feb 2020 20:47:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582231655; bh=zhAIqLnnnv+wodCzFnBPaFPLL1axodY6rIUf0WW6IXA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d/MuCgRGhzj4SWM35SD0udulwCF++XSwdk6qoVb/vDe0O/IdUOopK+nJHPL2jApYF FQYTrlZTy+tMMPncuKH3JAnyr06NbncLW1PbKANYkgvP8SPRCF1cYhFm0vWzGaDUSS +adLvgsIyCqEdWHFTz5CCMEt613I5qcRUfgczAD0= Received: by earth.universe (Postfix, from userid 1000) id 1142E3C0C83; Thu, 20 Feb 2020 21:47:33 +0100 (CET) Date: Thu, 20 Feb 2020 21:47:33 +0100 From: Sebastian Reichel To: Peter Ujfalusi Cc: Tony Lindgren , Kuninori Morimoto , Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Aaro Koskinen , "Arthur D ." , Jarkko Nikula , Merlijn Wajer , Pavel Machek Subject: Re: [PATCH] ASoC: ti: Allocate dais dynamically for TDM and audio graph card Message-ID: <20200220204733.ktzhmmaytnglr5nh@earth.universe> References: <20200211171645.41990-1-tony@atomide.com> <20200212143543.GI64767@atomide.com> <346dfd2b-23f8-87e0-6f45-27a5099b1066@ti.com> <20200214170322.GZ64767@atomide.com> <20200217231001.GC35972@atomide.com> <5402eba8-4f84-0973-e11b-6ab2667ada85@ti.com> <20200218211631.fxojsxzvttoidfed@earth.universe> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dedczlb2yot6jtdy" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --dedczlb2yot6jtdy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Feb 20, 2020 at 04:15:22PM +0200, Peter Ujfalusi wrote: > > I suppose in the end its a question if generic card can provide TDM > > support. >=20 > Sure it can, but can it handle the switching between the paths based on > use cases? > There should be machine level DAPM widgets to kick codec2codec (MDM6600 > - CPAC_voice for example) and also to make sure that when you switch > between them the system is not going to get misconfigured. > Switching between CPAC and BT route during call? > Not allowing VoIP while on call, etc. I think the main issue is, that based on the route configuration (which could be a simple DAPM widget generated by the simple-graph-card), we may need to configure different bitrates. Tony's hack adding this knowledge to the cpcap driver is very ugly. > >> In case of B/C you should not have a running stream imho. > >=20 > > I would expect, that MDM6600 codec marks itself as running/stopped > > based on call state. That should enable DAPM widgets automatically > > when CPCAP_voice is routed to MDM6600? > >=20 > >> In all cases CPCAP_voice should be able to run the clocks on i2s, > >> even if it is not used by the audio setup. > >> Not sure if you can just turn Wl1285 as master, but it is possible > >> that it is master, but silent when it is not used? > >=20 > > I provided CPCAP registers for BT call, which should be enough to > > figure this out (I did not yet analyze the results myself). >=20 > I got the datasheet from NXP (thanks for the pointer!), I try to look at > it in a coming days. FWIW the datasheet is not for the same chip, but for a similar one. The audio part seems to be very similar though. -- Sebastian --dedczlb2yot6jtdy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl5O8GEACgkQ2O7X88g7 +pqQ/hAAgEqBO6UXtQnbUsOTqAxQ6FWYfr2uOwPllZ/qaDcYwXg4/JKMDlkdj/TN NVLSo98L3HRUIyVzofJJ8/mNuz26OnUDF+Jmp/NDVyWm494i284b4UcejTuq2QZF PIUBEuEZAbXjZssKqNiWLK0sIbhSfGGjFwKMHJL7u5hnQ4LTBtjIbiQ7hcIfZIR0 wxpoMupM9HqVuw3Ulic8Vq8bIWWbVy2S8ockuZn5H9R6fACBGJA+gJCcv+jb0xDl 18Nf/b/aYsufjaNuX+cxEI2h8xvzzzr/hOAhXoBTju6UPFr4bHUmDPhV3ycxRMib eRgZ96TX6Gur53dPVz2KxG1Xx6LDsLfqYAvojww6PL5O37xx531jk+z/5w4yUvB1 zNOq8dEyJsPFfG3JH3racUr/GEkdllORvAn5T5Dbbt28kEFs7YuDujwe5yIXi/YR Ve557gjSI6/xWSTA4zlJjzffOYWBg67+JDRiw/V1C1sV+1Eqx+xGsGhq9QqNqyld lkAh3Z5FNPvQbgFofHn+7l7VPu2FH4SfVDow2DCa7gEee90Wwr8SxxaQ/+z6Tghw tOTTER2jXWCdZ74WxrJITLKVT4SRBXwNvcC9/jNMiHmb8q6T9Zr2lmJQ13GRyCoT 2YBZjeEgOkLi8aKbqHMT3lgfK1r9j43SRZCGy2i/zCc0PiIN+L4= =d1zp -----END PGP SIGNATURE----- --dedczlb2yot6jtdy--