Lines Matching defs:sync
212 int sync;
231 sync = voice->sync_cso;
232 sync -= readw(voice->sync_base + SIS_CAPTURE_DMA_FORMAT_CSO);
233 if (sync > (voice->sync_buffer_size / 2))
234 sync -= voice->sync_buffer_size;
236 /* If sync is positive, then we interrupted too early, and
241 if (sync > 0) {
242 if (sync < 16)
243 sync = 16;
244 sis_update_sso(voice, sync);
263 if (sync > -9)
266 voice->vperiod = voice->sync_period_size + sync + 10;
274 sync = voice->sync_cso + voice->sync_period_size;
275 if (sync >= voice->sync_buffer_size)
276 sync -= voice->sync_buffer_size;
277 voice->sync_cso = sync;