From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: Tony Lindgren <tony@atomide.com>
Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>,
Mark Brown <broonie@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
linux-omap@vger.kernel.org, Aaro Koskinen <aaro.koskinen@iki.fi>,
"Arthur D ." <spinal.by@gmail.com>,
Jarkko Nikula <jarkko.nikula@bitmer.com>,
Merlijn Wajer <merlijn@wizzup.org>, Pavel Machek <pavel@ucw.cz>
Subject: Re: [PATCH] ASoC: ti: Allocate dais dynamically for TDM and audio graph card
Date: Tue, 18 Feb 2020 15:04:31 +0100 [thread overview]
Message-ID: <20200218140431.emrxgvckrpltmg2s@earth.universe> (raw)
In-Reply-To: <20200214170946.GB64767@atomide.com>
[-- Attachment #1: Type: text/plain, Size: 2793 bytes --]
Hi,
On Fri, Feb 14, 2020 at 09:09:46AM -0800, Tony Lindgren wrote:
> * Sebastian Reichel <sre@kernel.org> [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 --------------
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: Tony Lindgren <tony@atomide.com>
Cc: alsa-devel@alsa-project.org, linux-omap@vger.kernel.org,
Aaro Koskinen <aaro.koskinen@iki.fi>,
linux-kernel@vger.kernel.org, Merlijn Wajer <merlijn@wizzup.org>,
Takashi Iwai <tiwai@suse.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Peter Ujfalusi <peter.ujfalusi@ti.com>,
Mark Brown <broonie@kernel.org>, Pavel Machek <pavel@ucw.cz>,
"Arthur D ." <spinal.by@gmail.com>,
Jarkko Nikula <jarkko.nikula@bitmer.com>
Subject: Re: [PATCH] ASoC: ti: Allocate dais dynamically for TDM and audio graph card
Date: Tue, 18 Feb 2020 15:04:31 +0100 [thread overview]
Message-ID: <20200218140431.emrxgvckrpltmg2s@earth.universe> (raw)
In-Reply-To: <20200214170946.GB64767@atomide.com>
[-- Attachment #1: Type: text/plain, Size: 2793 bytes --]
Hi,
On Fri, Feb 14, 2020 at 09:09:46AM -0800, Tony Lindgren wrote:
> * Sebastian Reichel <sre@kernel.org> [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 --------------
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-02-18 14:04 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-11 17:16 [PATCH] ASoC: ti: Allocate dais dynamically for TDM and audio graph card Tony Lindgren
2020-02-11 17:16 ` [alsa-devel] " Tony Lindgren
2020-02-12 8:02 ` Peter Ujfalusi
2020-02-12 8:02 ` [alsa-devel] " Peter Ujfalusi
2020-02-12 8:02 ` Peter Ujfalusi
2020-02-12 14:35 ` Tony Lindgren
2020-02-12 14:35 ` [alsa-devel] " Tony Lindgren
2020-02-14 0:34 ` Sebastian Reichel
2020-02-14 0:34 ` [alsa-devel] " Sebastian Reichel
2020-02-14 1:34 ` Tony Lindgren
2020-02-14 1:34 ` [alsa-devel] " Tony Lindgren
2020-02-14 13:04 ` Sebastian Reichel
2020-02-14 13:04 ` [alsa-devel] " Sebastian Reichel
2020-02-14 17:09 ` Tony Lindgren
2020-02-14 17:09 ` [alsa-devel] " Tony Lindgren
2020-02-18 14:04 ` Sebastian Reichel [this message]
2020-02-18 14:04 ` Sebastian Reichel
2020-02-18 14:19 ` Tony Lindgren
2020-02-18 14:19 ` Tony Lindgren
2020-02-18 16:35 ` Sebastian Reichel
2020-02-18 16:35 ` Sebastian Reichel
2020-02-14 12:41 ` Peter Ujfalusi
2020-02-14 12:41 ` [alsa-devel] " Peter Ujfalusi
2020-02-14 12:49 ` Mark Brown
2020-02-14 12:49 ` [alsa-devel] " Mark Brown
2020-02-14 17:05 ` Tony Lindgren
2020-02-14 17:05 ` [alsa-devel] " Tony Lindgren
2020-02-14 20:05 ` Mark Brown
2020-02-14 20:05 ` [alsa-devel] " Mark Brown
2020-02-14 17:03 ` Tony Lindgren
2020-02-14 17:03 ` [alsa-devel] " Tony Lindgren
2020-02-17 1:38 ` Kuninori Morimoto
2020-02-17 1:38 ` [alsa-devel] " Kuninori Morimoto
2020-02-17 5:25 ` Kuninori Morimoto
2020-02-17 5:25 ` [alsa-devel] " Kuninori Morimoto
2020-02-17 12:09 ` Peter Ujfalusi
2020-02-17 12:09 ` [alsa-devel] " Peter Ujfalusi
2020-02-17 23:10 ` Tony Lindgren
2020-02-17 23:10 ` Tony Lindgren
2020-02-17 23:36 ` Tony Lindgren
2020-02-17 23:36 ` Tony Lindgren
2020-02-18 15:26 ` Peter Ujfalusi
2020-02-18 15:26 ` Peter Ujfalusi
2020-02-18 15:34 ` Tony Lindgren
2020-02-18 15:34 ` Tony Lindgren
2020-02-18 12:43 ` Peter Ujfalusi
2020-02-18 12:43 ` Peter Ujfalusi
2020-02-18 15:28 ` Tony Lindgren
2020-02-18 15:28 ` Tony Lindgren
2020-02-20 14:07 ` Peter Ujfalusi
2020-02-20 14:07 ` Peter Ujfalusi
2020-02-20 20:13 ` Tony Lindgren
2020-02-20 20:13 ` Tony Lindgren
2020-02-21 14:07 ` Peter Ujfalusi
2020-02-21 14:07 ` Peter Ujfalusi
2020-02-18 21:16 ` Sebastian Reichel
2020-02-18 21:16 ` Sebastian Reichel
2020-02-20 14:15 ` Peter Ujfalusi
2020-02-20 14:15 ` Peter Ujfalusi
2020-02-20 20:15 ` Tony Lindgren
2020-02-20 20:15 ` Tony Lindgren
2020-02-21 13:20 ` Peter Ujfalusi
2020-02-21 13:20 ` Peter Ujfalusi
2020-02-21 18:08 ` Tony Lindgren
2020-02-21 18:08 ` Tony Lindgren
2020-02-20 20:47 ` Sebastian Reichel
2020-02-20 20:47 ` Sebastian Reichel
2021-01-24 9:27 Pavel Machek
2021-01-25 11:43 ` Péter Ujfalusi
2021-01-28 6:35 ` Tony Lindgren
2021-01-28 6:35 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200218140431.emrxgvckrpltmg2s@earth.universe \
--to=sebastian.reichel@collabora.com \
--cc=aaro.koskinen@iki.fi \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=jarkko.nikula@bitmer.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=merlijn@wizzup.org \
--cc=pavel@ucw.cz \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@ti.com \
--cc=spinal.by@gmail.com \
--cc=tiwai@suse.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.