Lines Matching defs:sync
208 int sync;
227 sync = voice->sync_cso;
228 sync -= readw(voice->sync_base + SIS_CAPTURE_DMA_FORMAT_CSO);
229 if (sync > (voice->sync_buffer_size / 2))
230 sync -= voice->sync_buffer_size;
232 /* If sync is positive, then we interrupted too early, and
237 if (sync > 0) {
238 if (sync < 16)
239 sync = 16;
240 sis_update_sso(voice, sync);
259 if (sync > -9)
262 voice->vperiod = voice->sync_period_size + sync + 10;
270 sync = voice->sync_cso + voice->sync_period_size;
271 if (sync >= voice->sync_buffer_size)
272 sync -= voice->sync_buffer_size;
273 voice->sync_cso = sync;