On Oct 7, 2011, at 9:29 AM, Vinod Koul wrote:
What i saw in the spec is that this codec has three PCM ports and each one can be input to the DACs. The DAC output goes to output pins and in some cases shared (like DAC2 for ep/spkr).
This is controlled through the 'HL-XSP/ASP/VSP' mixer control for Headphone/LineOut.
For output you have amp switches at end, so we can control where output is going as well. So we can have is APCM -> Mixer's -> DAC -> out switches -> pins
XPCM (hw:0,1) -> Mixers (HL-XSP) -> DAC(NULL) -> HP Amp (DAC1 Mixer Headphone) - > HPOUT.
All this is codec domain so why should machine driver be bothered about this stuff. Anything external to codec should be handled in machine driver, otherwise we end up creating same code in all machine drivers which use this codec.
-- ~Vinod
With the code I have I can do this and it works as intended, at least in my mind. I can enable and disable the outputs to send the stream to wherever I want and only power what is being used.