From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: "Koul, Vinod" <vinod.koul@intel.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"Harsha, Priya" <priya.harsha@intel.com>,
Liam Girdwood <lrg@slimlogic.co.uk>
Subject: Re: asoc SND_SOC_DAPM_AIF_IN question
Date: Wed, 22 Dec 2010 17:55:03 +0000 [thread overview]
Message-ID: <20101222175503.GA27401@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <438BB0150E931F4B9CE701519A44630104C104C2AA@bgsmsx502.gar.corp.intel.com>
On Wed, Dec 22, 2010 at 10:39:55PM +0530, Koul, Vinod wrote:
> So my codec map looks like:
> /*headset map*/
> { "HSDAC Left", NULL, "PCM_In"},
> { "HSDAC Right", NULL, "PCM_In"},
> { "PCM_In", NULL, "Headset Rail"},
> { "Headset Rail", NULL, "Audio Rail"},
> /*speaker map*/
> { "IHFDAC Left", NULL, "PCM_In"},
> { "IHFDAC Right", NULL, "PCM_In"},
> { "PCM_In", NULL, "Speaker Rail"},
> { "Speaker Rail", NULL, "Audio Rail"},
> But when the stream is started now all the widgets get powered on. The debugfs
> entry says
You have unconditionally connected both speaker and headphone widgets to
the same input so when that input becomes active paths are completed to
both outputs and both outpus are enabled.
These "Rail" widgets look quite unusual - what are they?
> What could I be doing wrong here? I want to add this PCM button for all streams
> (4 eventually) and this be enabled whenever anyone of them is started.
What is a "PCM button" and what do you mean by starting a "stream"?
Normally a stream would be a path between the CPU and the CODEC.
The way this works is that as described in reply to your previous mail
DAPM powers anything on which has a completed path from input to output.
As mentioned then if you have no routing control in the device the
machine driver will arrange to enable and disable input and output
widgets on the edge of the CODEC, either automatically using jack
detection or by offering SOC_DAPM_PIN_SWITCH() or similar controls to
applications.
next prev parent reply other threads:[~2010-12-22 17:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-22 17:09 asoc SND_SOC_DAPM_AIF_IN question Koul, Vinod
2010-12-22 17:55 ` Mark Brown [this message]
2010-12-23 3:06 ` Koul, Vinod
2010-12-23 11:28 ` Mark Brown
2010-12-23 13:01 ` Koul, Vinod
2010-12-24 11:35 ` Mark Brown
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=20101222175503.GA27401@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=lrg@slimlogic.co.uk \
--cc=priya.harsha@intel.com \
--cc=vinod.koul@intel.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.