All of lore.kernel.org
 help / color / mirror / Atom feed
* asoc SND_SOC_DAPM_AIF_IN question
@ 2010-12-22 17:09 Koul, Vinod
  2010-12-22 17:55 ` Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Koul, Vinod @ 2010-12-22 17:09 UTC (permalink / raw)
  To: alsa-devel@alsa-project.org; +Cc: Harsha, Priya, Mark Brown, Liam Girdwood

Hi,

In the codec driver I am writing I added 2 paths in map, one for Headset and 
second for Speaker. Both of these paths have common PCM port enable button so I 
added that using SND_SOC_DAPM_AIF_IN

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"},

The debugfs tell me this seems right
[root@localhost dapm]# cat PCM_In
PCM_In: Off  in 0 out 5 - R636(0x27c) bit 0
 stream HeadSet Speaker inactive
 in  static Speaker Rail
 in  static Headset Rail
 out static IHFDAC Right
 out static IHFDAC Left
 out static HSDAC Right
 out static HSDAC Left

But when the stream is started now all the widgets get powered on. The debugfs 
entry says
[root@localhost dapm]# cat PCM_In
PCM_In: On  in 1 out 5 - R636(0x27c) bit 0
 stream HeadSet Speaker active
 in  static Speaker Rail
 in  static Headset Rail
 out static IHFDAC Right
 out static IHFDAC Left
 out static HSDAC Right
 out static HSDAC Left

How is this detecting input as 1 (is this due to AIF_IN and thus turning on all 
the widgets in map? (turns on IHFDAC for HeadSet stream as well :(

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.

~Vinod

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

end of thread, other threads:[~2010-12-24 11:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-22 17:09 asoc SND_SOC_DAPM_AIF_IN question Koul, Vinod
2010-12-22 17:55 ` Mark Brown
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

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.