[alsa-devel] 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.
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
On Wed, Mar 28, 2012 at 05:25:14PM -0700, gsantosh@codeaurora.org wrote:
Hi All,
*ALWAYS* CC maintainers. Mails sent to the mailing list are likely to be ignored.
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
Codec_dai
Cpu_dai
Platform dai
Will 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.
participants (3)
-
Clemens Ladisch
-
gsantoshļ¼ codeaurora.org
-
Mark Brown