* ASoC: Configuring codec PCM port question
@ 2011-01-28 13:00 Babu, Ramesh
2011-01-28 13:19 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Babu, Ramesh @ 2011-01-28 13:00 UTC (permalink / raw)
To: alsa-devel@alsa-project.org; +Cc: Mark Brown, Liam Girdwood
Hi
My codec has 2 ports, PCM1 and PCM2 ports.
PCM2 port is used for playback and capture operations and
PCM1 is connected to Modem.
The ASoC driver has to configure, enable and disable PCM1 port during voice
call activity.
I am thinking of following two options to configure PCM1 port:
1. AlSA Mixer control: Create mixer control and provide options like VOICE_HS,
VOICE_IHF, VOICE_EP and VOICE_DISABLE. Application will use one of the option to
Configure the PCM1 port.
2. IOCTL : Application invokes IOCTL in hardware specific driver code and then it enables
PCM1 port (cross-path DAPM ?)
Which is the best way to implement it?
Are there any other existing way to implement it?
Thanks
Ramesh
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ASoC: Configuring codec PCM port question
2011-01-28 13:00 ASoC: Configuring codec PCM port question Babu, Ramesh
@ 2011-01-28 13:19 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-01-28 13:19 UTC (permalink / raw)
To: Babu, Ramesh; +Cc: alsa-devel@alsa-project.org, Liam Girdwood
On Fri, Jan 28, 2011 at 06:30:59PM +0530, Babu, Ramesh wrote:
> I am thinking of following two options to configure PCM1 port:
> 1. AlSA Mixer control: Create mixer control and provide options like VOICE_HS,
> VOICE_IHF, VOICE_EP and VOICE_DISABLE. Application will use one of the option to
> Configure the PCM1 port.
> 2. IOCTL : Application invokes IOCTL in hardware specific driver code and then it enables
> PCM1 port (cross-path DAPM ?)
> Which is the best way to implement it?
> Are there any other existing way to implement it?
The current mainline solution to this is to do something like the
OpenMoko GTA02 or Samsung Aquilla and Goni do and represent the modem as
a dummy CPU DAI then use application code like this:
http://opensource.wolfsonmicro.com/~gg/bluetooth-pcm/bluetooth_pcm.c
to start the audio - ie, run through everything except DMA.
There's some updates that I'd expect to see soon which will allow the
configuration for the hw_params() for the link to be baked into the
machine driver (I'll be doing that in the next couple of weeks) and
which will allow DAPM to propagate power over links between CODECs (Liam
has some work for that in his git, though he's still working on tidying
it up for mainline) which should make life much easier but it may be
easier for you to submit something now and then update later as the
support for this scenario improves.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-28 13:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-28 13:00 ASoC: Configuring codec PCM port question Babu, Ramesh
2011-01-28 13:19 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).