Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp866779ybv; Wed, 19 Feb 2020 10:53:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwHM8fB6u4tj7kA4MfBNhxo7HXWhf0LkTZ7MjJXRd1iiLrJSgM+rJDl/ktx94tM+ABRwZoD X-Received: by 2002:aca:db56:: with SMTP id s83mr5627716oig.171.1582138413936; Wed, 19 Feb 2020 10:53:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582138413; cv=none; d=google.com; s=arc-20160816; b=OC/x5lYgvRZmZOsDqknKWCdyzK4o7QKYRkcnOSAqx1JcBsgfN+mpfE2NGiANNHMOSq HzfyDdRSgJNNbbemYB2AymvGyGq1smiRUqhZRJLVWSJXfzGzTDpobdALjv0RmPLcUNFG Y8ygkJ55e+lLZFH12VZZt5zMke2RB/iB/dv7hxe7LTVygMcvWHcYSVIzACsnnLsKgo72 R+MtqLchCQAqcThLcU/ssBgUmn/JEFG2D/nNmuz8W0PANIxdG5JIghtp2xL11GugAfrS vzQ3tIpFrsOaFyBbHpqSDhXhGvCGgu72fXk4EguJstNO+zi9CdCypfniloJe4SuhsbWz 9THg== 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=PE4vGNHF0EtpHPMWQeTuBHG7akt/3pz9tuQJZxJYI9A=; b=QnjKKIvE8hchJacmoxafwdZ/cnHOzDq8f7sREkUaSNQkiP977dtV7EXMOwhtzQbRFV 1+lDP/sWUyXrvVq4N4gxqKGduOwyQoWVGGnL2+jNpUSMYZWzGPJMYiR4HDyR/MvwBx/9 VZdZqU9VuM8RU0EkbCqDyMl/vZyDmdXlanDopVza6TGZ5eMDrUP5XPBilDvhR/XApKoY F+tbhZJ5hSFLb7qK7wS4J4airliyvBbkpISS5mgWxeBkLSW8kIlxC3EuyPcJL4z0iI11 A4NBSTT8Zy45Yxkihy1QL+ZrQmUFXApnQzLTSDsRgRe2NwKrn6UEMlVopmpjlBvkHpld RVHQ== 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 h128si9654626oif.258.2020.02.19.10.53.21; Wed, 19 Feb 2020 10:53:33 -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 S1726767AbgBSSxH (ORCPT + 99 others); Wed, 19 Feb 2020 13:53:07 -0500 Received: from muru.com ([72.249.23.125]:56130 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726613AbgBSSxH (ORCPT ); Wed, 19 Feb 2020 13:53:07 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 63BF180F3; Wed, 19 Feb 2020 18:53:50 +0000 (UTC) Date: Wed, 19 Feb 2020 10:53:02 -0800 From: Tony Lindgren To: Sebastian Reichel Cc: Peter Ujfalusi , Mark Brown , 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: <20200219185302.GC37466@atomide.com> References: <20200211181005.54008-1-tony@atomide.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200218170628.r47xc3yydg6xx2yh@earth.universe> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Sebastian Reichel [200218 17:07]: > On Tue, Feb 18, 2020 at 07:32:11AM -0800, Tony Lindgren wrote: > > OK, but so what's the machine driver part in this case? > > simple-graph-card is the current machine driver. We might have to > introduce a Droid 4 specific driver instead. I used simple(-graph)-card > instead of introducing a new driver, since the setup was simple enough > without modem and bluetooth. The simple card was perfect to test the CPCAP > codec driver. The TDM things might be complex enough to create > a new machine driver (as I mentioned in the original patchset > adding CPCAP codec support). Well we do have the .set_tdm_slot to configure things. If it turns out we only need to track the machine audio state in cpcap.c, then we don't need a separate machine driver. However, if it turns out that cpcap is not always active for some audio paths, then yeah it seems that we need a custom machine driver to keep track of the machine audio state. > Note: Don't use Motorola's tree to learn about ASoC. Their soundcard > and cpcap codec drivers are full of weird hacks. I'm pretty sure the > author(s) did not really understand how ASoC works. From my > experience you should only use their code to understand the > hardware wiring. You might also want to look into the MC13783 > datasheet for the keyword "network mode". Yeah nope. And just dumping out the cpcap registers in Android seems to provide enough information to get the missing features working. Regards, Tony