* ASoC:Question on strict sequence followed for trigger
@ 2012-03-29 0:25 gsantosh
2012-03-29 6:49 ` Clemens Ladisch
2012-03-29 11:19 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: gsantosh @ 2012-03-29 0:25 UTC (permalink / raw)
To: alsa-devel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ASoC:Question on strict sequence followed for trigger
2012-03-29 0:25 ASoC:Question on strict sequence followed for trigger gsantosh
@ 2012-03-29 6:49 ` Clemens Ladisch
2012-03-29 11:19 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Clemens Ladisch @ 2012-03-29 6:49 UTC (permalink / raw)
To: gsantosh; +Cc: alsa-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ASoC:Question on strict sequence followed for trigger
2012-03-29 0:25 ASoC:Question on strict sequence followed for trigger gsantosh
2012-03-29 6:49 ` Clemens Ladisch
@ 2012-03-29 11:19 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2012-03-29 11:19 UTC (permalink / raw)
To: gsantosh; +Cc: alsa-devel
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
> 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.
You'll need to be more concrete about what you're actually trying to
achieve.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-29 11:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-29 0:25 ASoC:Question on strict sequence followed for trigger gsantosh
2012-03-29 6:49 ` Clemens Ladisch
2012-03-29 11:19 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.