5 Sep
2007
5 Sep
'07
12:17 p.m.
Clemens Ladisch wrote:
Markus Franke wrote:
It seems like that after the 8th period is transferred pcm_trigger(TRIGGER_STOP) isn't getting called.
Indeed. The stop trigger is called when the entire stream is to be stopped.
Well, start and stop trigger get always called mutually. In pseudo code it would look like this:
---snip--- TRIGGER_START
transfer one period via DMA
TRIGGER_STOP
update DMAC settings in DMA transfer finished callback and call snd_pcm_period_elapsed()
TRIGGER_START
transfer one period via DMA
TRIGGER_STOP
update DMAC settings in DMA transfer finished callback and call snd_pcm_period_elapsed()
....and so on. ---snap---
At least this is the behaviour I experienced.
So long, Markus