I feel i am wrong because as soon as controller is triggered it will request for data from DMA. So this is my controller implementation problem. On 6/6/07, Nobin Mathew <nobin.mathew@xxxxxxxxx> wrote: > Liam, > > I have one suggestion. > > Can we use this > > if (rtd->codec_dai->ops.trigger) { > ret = rtd->codec_dai->ops.trigger(substream, cmd); > if (ret < 0) > return ret; > } > > if (rtd->cpu_dai->ops.trigger) { > ret = rtd->cpu_dai->ops.trigger(substream, cmd); > if (ret < 0) > return ret; > } > if (platform->pcm_ops->trigger) { > ret = platform->pcm_ops->trigger(substream, cmd); > if (ret < 0) > return ret; > } > > Instead of > > if (rtd->codec_dai->ops.trigger) { > ret = rtd->codec_dai->ops.trigger(substream, cmd); > if (ret < 0) > return ret; > } > > if (platform->pcm_ops->trigger) { > ret = platform->pcm_ops->trigger(substream, cmd); > if (ret < 0) > return ret; > } > > if (rtd->cpu_dai->ops.trigger) { > ret = rtd->cpu_dai->ops.trigger(substream, cmd); > if (ret < 0) > return ret; > } > > > That means trigger the Cpu before pcm. Because most of the controllers > needs to be initialized and triggered before external DMA is > triggered. > > Correct me if i am going wrong. > > This was causing so many problems in my hardware. > > Nobin Mathew > _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel