All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/2] ASoC: core: Option to reorder widget power sequence
@ 2010-12-02 12:03 Peter Ujfalusi
  2010-12-02 12:03 ` [RFC 1/2] ASoC: core: Reordered DAPM update power on widgets Peter Ujfalusi
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Peter Ujfalusi @ 2010-12-02 12:03 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Liam Girdwood

Hello,

Quite some time ago I have faced similar issue with the sequence of the
DAPM register writes [1]
For that issue, I used a workaround within the twl4030 codec driver.
Now I have again issue with the register write sequence.

The dac33 codec emmits a pop noise, when user enable the analog bypass path.
The route cause in this codec are the DAPM update power and register write
sequence:
1. User enable the bypass
2. DAPM power up sequence takes place
2.1 codec DAPM widgets got powered on, codec is enabled
2.2 External speaker enabled
3. The bit enabling the bypass got changed.

Step 3 cause a pop, which propagate to the speaker, since it is already enabled.

The first patch implements a new flag for the core to reorder the sequence to:
1. User enable the bypass
2. The bit enabling the bypass got changed.
3. DAPM power up sequence takes place
3.1 codec DAPM widgets got powered on, codec is enabled
3.2 External speaker enabled

The default sequence is kept, codec driver must ask to have the reordered
sequence to avoid any side effect on other codecs.

[1]: http://mailman.alsa-project.org/pipermail/alsa-devel/2010-August/030024.html

Peter

---
Peter Ujfalusi (2):
  ASoC: core: Reordered DAPM update power on widgets
  ASoC: tlv320dac33: Request for reordered update power sequence

 include/sound/soc-dapm.h       |    1 +
 sound/soc/codecs/tlv320dac33.c |    1 +
 sound/soc/soc-dapm.c           |   27 +++++++++++++++++++--------
 3 files changed, 21 insertions(+), 8 deletions(-)

-- 
1.7.3.2

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-12-03 14:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-02 12:03 [RFC 0/2] ASoC: core: Option to reorder widget power sequence Peter Ujfalusi
2010-12-02 12:03 ` [RFC 1/2] ASoC: core: Reordered DAPM update power on widgets Peter Ujfalusi
2010-12-02 12:21   ` Mark Brown
2010-12-02 12:54     ` Peter Ujfalusi
2010-12-02 12:03 ` [RFC 2/2] ASoC: tlv320dac33: Request for reordered update power sequence Peter Ujfalusi
2010-12-02 12:24   ` Mark Brown
2010-12-02 12:52     ` Peter Ujfalusi
2010-12-02 13:15       ` Mark Brown
2010-12-03  9:36         ` Peter Ujfalusi
2010-12-02 13:05 ` [RFC 0/2] ASoC: core: Option to reorder widget " Mark Brown
2010-12-03  7:33   ` Peter Ujfalusi
2010-12-03 14:48     ` Mark Brown

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.