Lines Matching refs:swlim
990 int samples, live, ret = 0, swlim, isamp, osamp, rpos, total = 0; in audio_pcm_sw_read() local
1006 swlim = (live * sw->ratio) >> 32; in audio_pcm_sw_read()
1007 swlim = audio_MIN (swlim, samples); in audio_pcm_sw_read()
1009 while (swlim) { in audio_pcm_sw_read()
1020 osamp = swlim; in audio_pcm_sw_read()
1028 swlim -= osamp; in audio_pcm_sw_read()
1098 int hwsamples, samples, isamp, osamp, wpos, live, dead, left, swlim, blck; in audio_pcm_sw_write() local
1124 swlim = ((int64_t) dead << 32) / sw->ratio; in audio_pcm_sw_write()
1125 swlim = audio_MIN (swlim, samples); in audio_pcm_sw_write()
1126 if (swlim) { in audio_pcm_sw_write()
1127 sw->conv (sw->buf, buf, swlim, &sw->vol); in audio_pcm_sw_write()
1130 while (swlim) { in audio_pcm_sw_write()
1137 isamp = swlim; in audio_pcm_sw_write()
1147 swlim -= isamp; in audio_pcm_sw_write()