[alsa-devel] ASoC: Configuring codec PCM port question
broonie at opensource.wolfsonmicro.com
Fri Jan 28 14:19:02 CET 2011
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:
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.
More information about the Alsa-devel