On Sat, Nov 7, 2009 at 3:35 AM, Liam Girdwood <lrg@xxxxxxxxxxxxxxx> wrote: > On Sat, 2009-11-07 at 01:33 -0700, Grant Likely wrote: >> All DMA blocks are lined up to period boundaries, but the DMA >> handling code tracks bytes instead. This patch reworks the code >> to track the period index into the DMA buffer instead of the >> physical address pointer. Doing so makes the code simpler and >> easier to understand. >> >> Signed-off-by: Grant Likely <grant.likely@xxxxxxxxxxxx> > > Very minor coding style thing below otherwise all get my Ack. > > Acked-by: Liam Girdwood <lrg@xxxxxxxxxxxxxxx> Thanks Liam. >> - s->period_current_pt += s->period_bytes; >> - if (s->period_current_pt >= s->period_end) >> - s->period_current_pt = s->period_start; >> + s->period_current = (s->period_current+1) % s->runtime->periods; > > I prefer a space around operators. > > s->period_current = (s->period_current + 1) % s->runtime->periods; So do I, but this kept the line length down below 80 chars. Avoiding the line spillage this way looks nicer than the alternatives. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel