29 Mar
2012
29 Mar
'12
9:49 a.m.
gsantosh@codeaurora.org wrote:
I see there is a strict sequence followed for trigger callback to codec dai, platform dai and cpu dai. In the below function of soc-core . int soc_pcm_trigger(struct snd_pcm_substream *substream, int cmd);
In some scenarios we may require the sequence to be the other case to make sure the underlying DSP / codec is configured and triggered properly.
The trigger callback should do nothing but actually start the stream. (In the ideal case, this would be setting one bit in a register of the DMA controller.)
Any configuration should be done in hw_params.
Regards, Clemens