ASoC:Question on strict sequence followed for trigger
Hi All,
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. I have a requirement that this sequence has to be
1) Codec_dai 2) Cpu_dai 3) Platform dai
Will this call sequence can be changed or there is no room to change this sequence.
Regards,
Santosh M G.
Quoted 7 lines · [email protected] 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 .
intsoc_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
Quoted 1 line · On Wed, Mar 28, 2012 at 05:25:14PM -0700, [email protected] wrote:
Hi All,
*ALWAYS* CC maintainers. Mails sent to the mailing list are likely to be ignored.
Quoted 9 lines
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. I have a requirement that this sequence has to be
1) Codec_dai 2) Cpu_dai 3) Platform daiWill this call sequence can be changed or there is no room to change this sequence.
You'll need to be more concrete about what you're actually trying to achieve.