alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* ASoC/DAPM: How to make the DAPM routing complete?
@ 2011-09-16 14:07 Bas Vermeulen
  2011-09-17 13:32 ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Bas Vermeulen @ 2011-09-16 14:07 UTC (permalink / raw)
  To: alsa-devel

I am using a slightly modified version of the 88pm860x-codec.c driver 
from 3.x in an android modified 2.6.35 kernel.

I have had to make some changes to allow both capture and playback work 
on the same (I2S) interface, but so far things are working.

I am however having some problems getting the DAPM framework to set the 
correct switches needed to get the complete route to actually start.

What would be needed to get this working as it should? I can post or 
send the driver on request, but basically the same question rises for 
the current driver in the 3.x kernel.

I want/need to go from HS1/HS2 to DIN for playback, and from MIC1 to 
DOUT for capture. In order to do that, I have to set the following switches:

amixer -q sset 'DAC HS1 Mux' 'Right'
amixer -q sset 'DAC HS2 Mux' 'Left'
amixer -q sset 'I2S Mic Mux' 'ADC'
amixer -q sset 'ADC Left Mux' 'ADCL'

I would like to make this automatic, but I am unsure how to express this 
in my dapm routing table.

Note that in order to be able to use playback and capture independently 
on the I2S interface (within reason, it is not possible to use a 
different rate for instance), I had to add a SUPPLY control to the dapm 
widgets that turns on the I2S clock when needed.

Any help, hints or pointers to the right manual to read would be 
appreciated.

Bas Vermeulen

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

end of thread, other threads:[~2011-09-21 14:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-16 14:07 ASoC/DAPM: How to make the DAPM routing complete? Bas Vermeulen
2011-09-17 13:32 ` Mark Brown
2011-09-19 11:35   ` [ASoC] 88pm860x - Allow independent use of I2S capture and playback Bas Vermeulen
2011-09-20 11:34     ` Mark Brown
2011-09-21 14:55     ` Mark Brown
2011-09-19 11:38   ` [ASoC] 88pm860x - Incorporate the marvell errata regarding Audio Power-up Delay Bas Vermeulen
2011-09-20 11:34     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).