Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5911591ybv; Tue, 18 Feb 2020 06:21:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwyKztarnxaqysyfqO3ttfe+p0dHJ/77FZjysVDkQV2pxwdviP6CyyANTZQUpewayS+49fH X-Received: by 2002:a9d:7586:: with SMTP id s6mr15669240otk.342.1582035664482; Tue, 18 Feb 2020 06:21:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582035664; cv=none; d=google.com; s=arc-20160816; b=hZFZrgk+SZ9tKDFgIKHJtOBA2DHd8SsVBiDqkanE1hEf6z4xhnFdbMW9c0YevaAVtX siFNKzQpU0EjpqAo8Ugk8JnO8zh+8F1v10EJgV6AMWRQg3WoewuN3AWQrUkyHjMWVWsY c8txZ5qTqVn9pBTwzA0meuBhnNA92Kh614NcM3dmIBMrAyRDzsTQYEIh8pVEBi9bRoDR HxG2TXxXYL9lglOdkCz6D7hcq4WEVoAOzzPzpmxUzuQWjHg+hzYTp412CUbfTs1E1W9f DUN99/msDmqRGfCKKywQjXpJByzx+Et49J2WXfq5OCm9W1c8PgOtqmSjyW9pNAL//lrX fDpw== 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=RHBXEKywSpUMo1hZnO7DTLr14O0oSoQkjK5usuOvD8Y=; b=rZfk+YhGpO73G2VU5pGSB4CSP709mA5ON8ykpmDUrxpKswX6SoNpcaj9FZSeXXEVg0 rf1nVKvFtQ/SH+iPW2u157FGITIeZGVgMVi9jZykX7381uRJoR2k9EBLseufbfPok/Lj /P99dyB6HIQgvFHEwwmzmaZXcRQS1yjJlsKyrqwqw96cSM9jrEBl8JQKEc37IXQaWf7H 32z+I2peID+KbEIPCJ67KrIIMWEVkO1go/ElnSEeaoT4V+BpJilst/kWes7Pu+p/7x/u heDVY0hwK3bOlPDPRJZCQNLsKF5EoheaozoFSV5aXc5YfCGzzUY4ebhOTVV4TWJMhk4N Kq6g== 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 p11si1807982ota.300.2020.02.18.06.20.51; Tue, 18 Feb 2020 06:21:04 -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 S1726663AbgBROTJ (ORCPT + 99 others); Tue, 18 Feb 2020 09:19:09 -0500 Received: from muru.com ([72.249.23.125]:55870 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726445AbgBROTJ (ORCPT ); Tue, 18 Feb 2020 09:19:09 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 6B43D8043; Tue, 18 Feb 2020 14:19:52 +0000 (UTC) Date: Tue, 18 Feb 2020 06:19:05 -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, 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: <20200218141905.GG35972@atomide.com> References: <20200211171645.41990-1-tony@atomide.com> <20200212143543.GI64767@atomide.com> <20200214003452.xuadnylj2udqyljs@earth.universe> <20200214013454.GX64767@atomide.com> <20200214130428.gkhmr55ptmi2bh2x@earth.universe> <20200214170946.GB64767@atomide.com> <20200218140431.emrxgvckrpltmg2s@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200218140431.emrxgvckrpltmg2s@earth.universe> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Sebastian Reichel [200218 06:05]: > Hi, > > On Fri, Feb 14, 2020 at 09:09:46AM -0800, Tony Lindgren wrote: > > * Sebastian Reichel [200214 13:05]: > > > On Thu, Feb 13, 2020 at 05:34:54PM -0800, Tony Lindgren wrote: > > > > And bluetooth would be similar to cpcap_audio and mot_mdm6600_audio > > > > above. > > > > > > My understanding is, that CPU is not involved for calls (except for > > > setting up cpcap registers correctly). Basically McBSP3 should > > > remain idle for a call and data goes directly from modem to cpcap. > > > The same should work for modem <-> BT, except that CPCAP seems to > > > always provide the clock. That would imply a direct link between > > > modem and codec / BT? > > > > Yes the direct link is i2s. I'm ot sure if mcbsp can be idle during > > voice call though, I guess it should be doable since mcbsp is not > > the clock master :) > > > > > > My guess is that only cpcap registers and clock rate needs to be > > > > changed for bluetooth audio BTW, so if somebody havs a bluetooth > > > > headset just do the following in Android: > > > > > > > > # cpcaprw --all > /tmp/before > > > > configure bluetooth headset for audio in android and start > > > > playing some music or make a phone call > > > > ... > > > > # cpcaprw --all > /tmp/after > > > > stop playing music or phone call > > > > ... > > > > diff -u /tmp/before /tmp/after > > > > > > > > The registers will be different for a bluetooth phone call and > > > > playing music. > > > > > > I can provider register values once I find some time. > > [NI] Normal idle (no BT headset connected) > [BI] Bluetooth idle (with BT headset connected) > [BC] Bluetooth call in progress > [NC] Normal call in progress (BT headset disabled) > > [NI] => [BI] => [BC] => [NC] > CPCAP_REG_VAUDIOC 0x0065 => 0x0065 => 0x0065 => 0x0025 > CPCAP_REG_CC 0x0000 => 0x0000 => 0x6000 => 0x60df > CPCAP_REG_CDI 0x0040 => 0x0000 => 0xaa40 => 0xae0a > CPCAP_REG_SDAC -------------- 0x0000 -------------- > CPCAP_REG_SDACDI -------------- 0x0004 -------------- > CPCAP_REG_TXI 0x0804 => 0x0004 => 0x0000 => 0x0cc6 > CPCAP_REG_TXMP 0x079c => 0x079c => 0x0400 => 0x0673 > CPCAP_REG_RXOA 0x0000 => 0x0000 => 0x0001 => 0x0001 > CPCAP_REG_RXVC 0x0d34 => 0x0d34 => 0x0000 => 0x0b2c > CPCAP_REG_RXCOA 0x0000 => 0x0000 => 0x0000 => 0x0601 > CPCAP_REG_RXSDOA 0x0000 => 0x0000 => 0x0600 => 0x0600 > CPCAP_REG_RXEPOA -------------- 0x0400 -------------- > CPCAP_REG_RXLL -------------- 0x0000 -------------- > CPCAP_REG_A2LA -------------- 0x0030 -------------- > CPCAP_REG_MIPIS1 -------------- 0x0000 -------------- > CPCAP_REG_MIPIS2 -------------- 0x0000 -------------- > CPCAP_REG_MIPIS3 -------------- 0x0000 -------------- > CPCAP_REG_LVAB -------------- 0x0000 -------------- Great thanks! Care to do also a dump just playing music to on bluetooth headset at some point? Regards, Tony