Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp864114ybv; Wed, 19 Feb 2020 10:49:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyOkm5SxMNh71gQ4TtJjDWwR8MRYo93pTSQnNSPMIBkmOrEoolOkQoyJGUApI/O+s+GcvE0 X-Received: by 2002:a05:6808:658:: with SMTP id z24mr5681105oih.91.1582138183011; Wed, 19 Feb 2020 10:49:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582138183; cv=none; d=google.com; s=arc-20160816; b=xH/AoA7y5369VWp+S/7sEgP2TlXVjx/HRNBHXmXTtw53VmFM1hnAsAJRqecYHlOjSU znn5KjDEkg/rhfWtcJ1v0eZS+HKvBBdOSCXF9QnEyQQoQfeS9wfUze0kpqBhR6iFrJY4 yXIW7//1ORv3zFZEB+i9ze3YeNn21vl1R56dNaP6BdbbM+t/nqkCxdYOCRnfrubotdEj 07sICoRqLvcN+yVgPAZij3WxBXWYfIaU1o/FUsJzioLHcv626P5x/+dBDlAz3gTp6aO0 j1HC8HhKkV88tHGxhloAFEfawwfdYJZ9rMPQJ2fuQJikV6bsr1ZxvgpoHZSJn0dRn6Fu Yavg== 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=owhGddXrMtAqHFFdyQbnbjfKSgSh6tBlvvf1SbhJs5U=; b=sxkIX1I5l82X9S9VvyLrJOWaLaT0UJT3vHV+x50gNKieaeHtSSPsak4c8HE18sqC5D ab5EesNAGbp4Gvk20eevMvbaX4kfaYS8L6HPLookdhX6vZFhUyimib/Be1ysakcR5qUs 9JoaEjL+joingw080WKWvD7xYzEoo7rvYjYDyBIJIn6bK59c90J9Pcmi1m9X6gN7uNff luuPykDy+73UyBrLeiG6APPLcVzybapI3RCvOo1aVHgGiiJkN5WL+9ZauyQ2HOyOdNa5 97zx32aVd/5pbzwWRpwMFpELdoY0WV51Dv69n4/4IOS3nX/cO+Cj7oIu/KadccML9wal cjgg== 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 w5si271989otk.244.2020.02.19.10.49.31; Wed, 19 Feb 2020 10:49:42 -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 S1726682AbgBSStV (ORCPT + 99 others); Wed, 19 Feb 2020 13:49:21 -0500 Received: from muru.com ([72.249.23.125]:56096 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726634AbgBSStV (ORCPT ); Wed, 19 Feb 2020 13:49:21 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 9CA2B80F3; Wed, 19 Feb 2020 18:50:03 +0000 (UTC) Date: Wed, 19 Feb 2020 10:49:16 -0800 From: Tony Lindgren To: Mark Brown Cc: Sebastian Reichel , Peter Ujfalusi , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, "Arthur D ." , Merlijn Wajer , Pavel Machek , Jarkko Nikula Subject: Re: [PATCH] ASoC: cpcap: Implement set_tdm_slot for voice call support Message-ID: <20200219184916.GB37466@atomide.com> References: <20200212144620.GJ64767@atomide.com> <9a060430-5a3e-61e1-3d2c-f89819d9436f@ti.com> <20200217232325.GD35972@atomide.com> <8fc1dded-6d28-f5cd-f2f9-3a6810571119@ti.com> <20200218153211.GI35972@atomide.com> <20200218170628.r47xc3yydg6xx2yh@earth.universe> <20200218174258.GK4232@sirena.org.uk> <20200219173902.GA37466@atomide.com> <20200219174600.GH4488@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200219174600.GH4488@sirena.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mark Brown [200219 17:46]: > On Wed, Feb 19, 2020 at 09:39:02AM -0800, Tony Lindgren wrote: > > * Mark Brown [200218 17:43]: > > > > you to address for system enablement. OTOH if you manage to get one of > > > the generic cards working well that'd be excellent! > > > Well to me it seems that we just already have all the data needed with > > the graph binding and snd-soc-audio-graph-card + codec2codec support. > > > I don't think we have cases where the cpcap codec is not the master, > > so as long as the cpcap codec knows what's going on then there > > may not be a need for machine driver. > > > I guess the the bluetooth to modem path is the one to check to see > > what provides the clocks.. > > Usually in telephony cases it's the modem that's the clock master FWIW. Well at least the samplerate needs to be configured in the cpcap codec driver for voice calls, and we're setting CPCAP_BIT_CDC_CLK_EN bit for voice call which is the "Voice DAI Clock". It's also set when just playing audio using the voice channel is used. And we also have a similar bit for CPCAP_BIT_ST_CLK_EN for "HiFi DAI Clock" for the hifi channel. So these would seem to hit that it is really the cpcap that's the clock master for voice calls in this case. But I guess the test to do there would be to just clear the bit for CPCAP_BIT_CDC_CLK_EN during a voice call and see if it still works. Regards, Tony