Lines Matching refs:fragment_size

115 		if ((bytestocopy >= wiinst->buffer.fragment_size)  in emu10k1_audio_read()
214 if ((bytestocopy >= woinst->buffer.fragment_size) in emu10k1_audio_write()
230 && (woinst->total_copied >= woinst->buffer.fragment_size)) in emu10k1_audio_write()
710 info.fragsize = woinst->buffer.fragment_size * woinst->num_voices;
740 info.fragments = info.bytes / wiinst->buffer.fragment_size;
741 info.fragsize = wiinst->buffer.fragment_size;
788 cinfo.blocks = cinfo.bytes / wiinst->buffer.fragment_size - wiinst->blocks;
789 wiinst->blocks = cinfo.bytes / wiinst->buffer.fragment_size;
797 wiinst->buffer.bytestocopy %= wiinst->buffer.fragment_size;
828 num_fragments = cinfo.bytes / woinst->buffer.fragment_size;
841 woinst->buffer.free_bytes %= woinst->buffer.fragment_size;
857 val = woinst->buffer.fragment_size * woinst->num_voices;
866 val = wiinst->buffer.fragment_size;
1174 wiinst->buffer.fragment_size = 0;
1208 woinst->buffer.fragment_size = 0;
1324 if (bytestocopy >= woinst->buffer.fragment_size)
1339 if (bytestocopy >= wiinst->buffer.fragment_size)
1354 if (buffer->fragment_size)
1369 buffer->fragment_size = 1 << buffer->ossfragshift;
1371 while (buffer->fragment_size * WAVEOUT_MINFRAGS > WAVEOUT_MAXBUFSIZE)
1372 buffer->fragment_size >>= 1;
1382 (buffer->fragment_size * 1000) - 1;
1395 if (buffer->numfrags * buffer->fragment_size > WAVEOUT_MAXBUFSIZE)
1396 buffer->numfrags = WAVEOUT_MAXBUFSIZE / buffer->fragment_size;
1401 buffer->size = buffer->fragment_size * buffer->numfrags;
1404 DPD(2, " calculated playback fragment_size -> %d\n", buffer->fragment_size);
1416 if (buffer->fragment_size)
1431 buffer->fragment_size = 1 << buffer->ossfragshift;
1433 while (buffer->fragment_size * WAVEIN_MINFRAGS > WAVEIN_MAXBUFSIZE)
1434 buffer->fragment_size >>= 1;
1442 …buffer->numfrags = (wiinst->format.bytespersec * WAVEIN_DEFAULTBUFLEN) / (buffer->fragment_size * …
1447 if (buffer->numfrags * buffer->fragment_size > WAVEIN_MAXBUFSIZE)
1448 buffer->numfrags = WAVEIN_MAXBUFSIZE / buffer->fragment_size;
1453 bufsize = buffer->fragment_size * buffer->numfrags;
1482 while (buffer->size % buffer->fragment_size)
1483 buffer->fragment_size >>= 1;
1485 buffer->numfrags = buffer->size / buffer->fragment_size;
1488 DPD(2, " calculated recording fragment_size -> %d\n", buffer->fragment_size);
1517 if (bytestocopy >= wiinst->buffer.fragment_size) {
1552 if (bytestocopy >= woinst->buffer.fragment_size) {