[alsa-devel] [PATCH v3] ASoC: Add support for cs42l73 codec
Brian.Austin at cirrus.com
Wed Oct 12 23:50:41 CEST 2011
On Oct 12, 2011, at 4:37 PM, Austin, Brian wrote:
> 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.
> 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.
I see the problem now…
If you have multiple DAI's on the same serial port you get duplicate entries. I'll fix it.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3917 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20111012/4cac9bcc/attachment-0001.p7s
More information about the Alsa-devel