[alsa-devel] [PATCH v3] ASoC: Add support for cs42l73 codec

Austin, Brian Brian.Austin at cirrus.com
Wed Oct 12 23:37:51 CEST 2011


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.  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3917 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20111012/ce8f2171/attachment.p7s 


More information about the Alsa-devel mailing list