* ASoC - Output widgets
@ 2008-02-22 16:39 Alexandre BOUIN
0 siblings, 0 replies; 6+ messages in thread
From: Alexandre BOUIN @ 2008-02-22 16:39 UTC (permalink / raw)
To: alsa-devel
Hi list,
Using ASoC layer, I'd like to perform this example behaviour with my widgets
:
- 1 output mixer MIXOUT is connected to 2 outputs OUT1 and OUT2
- OUT1 and OUT2 can be powered independently
This seems easy, but atm while one is powered, the other is powered too.
Does someone have already made this widget behavior ?
Regards,
Alex.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ASoC - Output widgets
@ 2008-02-23 15:57 Mark Brown
2008-02-25 9:39 ` Alexandre BOUIN
0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2008-02-23 15:57 UTC (permalink / raw)
To: Alexandre BOUIN; +Cc: alsa-devel
On Fri, Feb 22, 2008 at 05:39:54PM +0100, Alexandre BOUIN wrote:
> Using ASoC layer, I'd like to perform this example behaviour with my widgets
> :
> - 1 output mixer MIXOUT is connected to 2 outputs OUT1 and OUT2
> - OUT1 and OUT2 can be powered independently
> This seems easy, but atm while one is powered, the other is powered too.
I may be misunderstanding what you're doing here but I suspect that
you need to use snd_soc_dapm_set_endpoint() to mark the outputs that are
not in use as disconnected. If you do that then then DAPM will not
power up the relevant output path.
You can do this at any point at run time - see sound/soc/pxa/tosa.c for
an example of this.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ASoC - Output widgets
2008-02-23 15:57 Mark Brown
@ 2008-02-25 9:39 ` Alexandre BOUIN
0 siblings, 0 replies; 6+ messages in thread
From: Alexandre BOUIN @ 2008-02-25 9:39 UTC (permalink / raw)
To: 'Mark Brown'; +Cc: alsa-devel
> From: Mark Brown [mailto:broonie@opensource.wolfsonmicro.com]
>
> On Fri, Feb 22, 2008 at 05:39:54PM +0100, Alexandre BOUIN wrote:
>
> > Using ASoC layer, I'd like to perform this example behaviour with my
> widgets
> > :
> > - 1 output mixer MIXOUT is connected to 2 outputs OUT1 and OUT2
> > - OUT1 and OUT2 can be powered independently
> > This seems easy, but atm while one is powered, the other is powered
> too.
>
> I may be misunderstanding what you're doing here but I suspect that
> you need to use snd_soc_dapm_set_endpoint() to mark the outputs that
> are
> not in use as disconnected. If you do that then then DAPM will not
> power up the relevant output path.
>
> You can do this at any point at run time - see sound/soc/pxa/tosa.c for
> an example of this.
I've used tosa board as an example.
Maybe I've done something wrong but when I play sound files, both amplifier
are powered together.
After playing this track, both amplifier are shutdown together.
As it should be an audio path problem, I detail you my audio path here :
- 1 SND_SOC_DAPM_MIXER is connected to 2 SND_SOC_DAPM_PGA with power
control.
- each PGA is connected to an SND_SOC_DAPM_OUTPUT
- according to tosa example :
- first OUTPUT is connected to a SND_SOC_DAPM_HP defined as endpoint
- second OUTPUT is connected to a SND_SOC_DAPM_SPK defined as endpoint
this SPK is set disconnected in my tosa_ac97_init -like function
Using DPAM debug traces, I've notice that both PGAs are powered regardless
of their ON/OFF status.
Regards,
Alex.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ASoC - Output widgets
@ 2008-02-25 13:34 Mark Brown
2008-02-26 9:11 ` Alexandre BOUIN
0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2008-02-25 13:34 UTC (permalink / raw)
To: Alexandre BOUIN; +Cc: alsa-devel
On Mon, Feb 25, 2008 at 10:39:15AM +0100, Alexandre BOUIN wrote:
> - 1 SND_SOC_DAPM_MIXER is connected to 2 SND_SOC_DAPM_PGA with power
> control.
> - each PGA is connected to an SND_SOC_DAPM_OUTPUT
> - according to tosa example :
> - first OUTPUT is connected to a SND_SOC_DAPM_HP defined as endpoint
> - second OUTPUT is connected to a SND_SOC_DAPM_SPK defined as endpoint
> this SPK is set disconnected in my tosa_ac97_init -like function
Could you please post dmesg output with DAPM_DEBUG turned on which shows
this happening?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ASoC - Output widgets
2008-02-25 13:34 Mark Brown
@ 2008-02-26 9:11 ` Alexandre BOUIN
0 siblings, 0 replies; 6+ messages in thread
From: Alexandre BOUIN @ 2008-02-26 9:11 UTC (permalink / raw)
To: 'Mark Brown'; +Cc: alsa-devel
> Could you please post dmesg output with DAPM_DEBUG turned on which
> shows
> this happening?
Here is my DAPM_DEBUG traces :
Please notice that for some internal reasons, this driver is not at all the
same as wolfson release ;)
DAPM WM8900 snd_soc_dapm_stream_event
FM Transmitter: On in 2 out 1
in static FMOUT_R
in static FMOUT_L
Headphone Jack: On in 2 out 1
in static HPOUT_R
in static HPOUT_L
HPOUT_R: Off in 2 out 1
in static HPOUT CP
out static Headphone Jack
HPOUT_L: Off in 2 out 1
in static HPOUT CP
out static Headphone Jack
FMOUT_R: Off in 1 out 1
in static FMOUT_R PGA
out static FM Transmitter
FMOUT_L: Off in 1 out 1
in static FMOUT_L PGA
out static FM Transmitter
HPOUT CP: On in 2 out 2
in static HPOUT_R PGA
in static HPOUT_L PGA
out static HPOUT_R
out static HPOUT_L
HPOUT_R PGA: On in 1 out 2
in static MIXOUT_R
out static HPOUT CP
HPOUT_L PGA: On in 1 out 2
in static MIXOUT_L
out static HPOUT CP
FMOUT_R PGA: On in 1 out 1
in static MIXOUT_R
out static FMOUT_R
FMOUT_L PGA: On in 1 out 1
in static MIXOUT_L
out static FMOUT_L
MIXOUT_R: On in 1 out 3
in DAC_R Switch DAC_R
out static HPOUT_R PGA
out static FMOUT_R PGA
MIXOUT_L: On in 1 out 3
in DAC_L Switch DAC_L
out static HPOUT_L PGA
out static FMOUT_L PGA
DAC_R: On in 1 out 3
out DAC_R Switch MIXOUT_R
DAC_L: On in 1 out 3
out DAC_L Switch MIXOUT_L
I initialize FM Transmitter like this :
snd_soc_dapm_set_endpoint(codec, "FM Transmitter", 0);
but it still enabled. Why ?
Do you have any ideas on why both HP and FMOUT PGAs are powered ?
Thanks.
Regards,
Alex.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ASoC - Output widgets
@ 2008-02-26 11:07 Mark Brown
0 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2008-02-26 11:07 UTC (permalink / raw)
To: Alexandre BOUIN; +Cc: alsa-devel
On Tue, Feb 26, 2008 at 10:11:42AM +0100, Alexandre BOUIN wrote:
> DAPM WM8900 snd_soc_dapm_stream_event
> FM Transmitter: On in 2 out 1
> in static FMOUT_R
> in static FMOUT_L
> I initialize FM Transmitter like this :
> snd_soc_dapm_set_endpoint(codec, "FM Transmitter", 0);
> but it still enabled. Why ?
According to the above trace your FM transmitter is still reporting as
being connected. Have you checked to ensure that your your call to
configure the transmitter is happening after your board widgets have
been registered?
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-02-26 11:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-26 11:07 ASoC - Output widgets Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2008-02-25 13:34 Mark Brown
2008-02-26 9:11 ` Alexandre BOUIN
2008-02-23 15:57 Mark Brown
2008-02-25 9:39 ` Alexandre BOUIN
2008-02-22 16:39 Alexandre BOUIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox