Lines Matching refs:sync
213 int sync;
232 sync = voice->sync_cso;
233 sync -= readw(voice->sync_base + SIS_CAPTURE_DMA_FORMAT_CSO);
234 if (sync > (voice->sync_buffer_size / 2))
235 sync -= voice->sync_buffer_size;
237 /* If sync is positive, then we interrupted too early, and
242 if (sync > 0) {
243 if (sync < 16)
244 sync = 16;
245 sis_update_sso(voice, sync);
264 if (sync > -9)
267 voice->vperiod = voice->sync_period_size + sync + 10;
275 sync = voice->sync_cso + voice->sync_period_size;
276 if (sync >= voice->sync_buffer_size)
277 sync -= voice->sync_buffer_size;
278 voice->sync_cso = sync;