Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2166794ybv; Fri, 21 Feb 2020 10:08:48 -0800 (PST) X-Google-Smtp-Source: APXvYqx+MlGgUEHgbxCSK5WKmY0QabGZot3n4e7f4f+MSUEf7pwuuA/rBJmlGngqSyfyhDexr0k/ X-Received: by 2002:aca:120e:: with SMTP id 14mr2869549ois.135.1582308528464; Fri, 21 Feb 2020 10:08:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582308528; cv=none; d=google.com; s=arc-20160816; b=ftcLW2skm5vjcX9kkEaVX9G+bDUM0ackJED2w2wrAYCtLyudraA04ssGm4hp70rLXo k6Behig1cvLGBzQNpznAFiVbFHkp6an7rCzBPmIRamEJ+QECPNUI2z7XbJgXO09ufGez vJKLot9JjPSZvgTFTcWz99KgWE8Endo7QXgDBN9uVz7tHZ35MhHiYFTzihp0Xx85zU+U /fF9Pnx05gNu7IU7PZ9YVu2wl+5wOHjly9TpbLnpL5SZX0ofOyaqy7Ex19v73h00BrAU elSjQFmErp9jOgHBzVjINevGKuomVhkeaEmejuJeW5ND9qvdKdhcdhT2tN3rB4Y+ZFNS zm8A== 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; bh=7ooxLpmYOr9/3nAMeqwdL2C5i6ig6PGZHAVDHkwD7T0=; b=O+mSNETMrNlOqJlVSiIJyFxCf0Vng85B3XzPps7XsPhPO4EZmvawpzq1sXo81cc1Ye egCmio0RoGBDaiA3/BgE7QKL2knN2dVbhe42Cnd60dp174B51vdrr50v7nRQG4HvmwGk mgEm7wSNAnZT+Vojv5SqcpFPMahM7OpqWeLcUNYkBOicQS7BQ0EWDmAi7UsV4ET1o8BC 3cq/7UE9hhG5RSbW75OwljN5q3cHb9WjpaVz7FHoEL/zYd1mfH8hSgkyltOSzgtc6KCP rhLkfnaVDNh7WP+fiT02M2Vdiu2GqqXjItpT2b++zOm7tWGGkCsGfvLPSEUJ7tSZpoxo fLpQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si1761697ota.259.2020.02.21.10.08.34; Fri, 21 Feb 2020 10:08:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728684AbgBUSI1 (ORCPT + 99 others); Fri, 21 Feb 2020 13:08:27 -0500 Received: from muru.com ([72.249.23.125]:56780 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725995AbgBUSI0 (ORCPT ); Fri, 21 Feb 2020 13:08:26 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 060D9807E; Fri, 21 Feb 2020 18:09:08 +0000 (UTC) Date: Fri, 21 Feb 2020 10:08:21 -0800 From: Tony Lindgren To: Peter Ujfalusi Cc: Sebastian Reichel , 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: <20200221180821.GA37466@atomide.com> References: <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> <20200220201559.GX37466@atomide.com> <9ea8239f-3b2d-8206-95ee-2789fbae83d4@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ea8239f-3b2d-8206-95ee-2789fbae83d4@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Peter Ujfalusi [200221 13:21]: > Hi Tony, > > On 20/02/2020 22.15, Tony Lindgren wrote: > > * Peter Ujfalusi [200220 14:16]: > >> On 18/02/2020 23.16, Sebastian Reichel wrote: > >>> I suppose in the end its a question if generic card can provide TDM > >>> support. > >> > >> 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. > > > > Well I guess the key thing to check here is if it's enough to > > keep track of things in the cpcap codec driver. If cpcap is always > > involved, that should be sufficient. > > The codec driver should keep track on what it can do, but should not > start policing the outside world. > The machine driver knows the connections and should tell the components > on what to do. OK that makes senes to me. So I guess now the question is if we can maintain this state in snd-soc-audio-graph-card instead of needing a custom machine driver. Regards, Tony