Lines Matching refs:numfrags
170 woinst->buffer.numfrags = PT_BLOCKCOUNT;
713 info.fragstotal = woinst->buffer.numfrags * woinst->num_voices;
741 info.fragstotal = wiinst->buffer.numfrags;
914 woinst->buffer.numfrags = (val >> 16) & 0xffff;
922 wiinst->buffer.numfrags = (val >> 16) & 0xffff;
1197 wiinst->buffer.numfrags = 0;
1233 woinst->buffer.numfrags = 0;
1401 if (!buffer->numfrags) {
1402 u32 numfrags;
1404 numfrags = (woinst->format.bytespervoicesample * woinst->format.samplingrate * WAVEOUT_DEFAULTBUFLEN) /
1407 buffer->numfrags = 1;
1409 while (numfrags) {
1410 numfrags >>= 1;
1411 buffer->numfrags <<= 1;
1415 if (buffer->numfrags < WAVEOUT_MINFRAGS)
1416 buffer->numfrags = WAVEOUT_MINFRAGS;
1418 if (buffer->numfrags * buffer->fragment_size > WAVEOUT_MAXBUFSIZE)
1419 buffer->numfrags = WAVEOUT_MAXBUFSIZE / buffer->fragment_size;
1421 if (buffer->numfrags < WAVEOUT_MINFRAGS)
1424 buffer->size = buffer->fragment_size * buffer->numfrags;
1428 DPD(2, " calculated playback numfrags -> %d\n", buffer->numfrags);
1464 if (!buffer->numfrags)
1465 buffer->numfrags = (wiinst->format.bytespersec * WAVEIN_DEFAULTBUFLEN) / (buffer->fragment_size * 1000) - 1;
1467 if (buffer->numfrags < WAVEIN_MINFRAGS)
1468 buffer->numfrags = WAVEIN_MINFRAGS;
1470 if (buffer->numfrags * buffer->fragment_size > WAVEIN_MAXBUFSIZE)
1471 buffer->numfrags = WAVEIN_MAXBUFSIZE / buffer->fragment_size;
1473 if (buffer->numfrags < WAVEIN_MINFRAGS)
1476 bufsize = buffer->fragment_size * buffer->numfrags;
1508 buffer->numfrags = buffer->size / buffer->fragment_size;
1512 DPD(2, " calculated recording numfrags -> %d\n", buffer->numfrags);