Lines Matching refs:swlim
1011 int samples, live, ret = 0, swlim, isamp, osamp, rpos, total = 0; in audio_pcm_sw_read() local
1027 swlim = (live * sw->ratio) >> 32; in audio_pcm_sw_read()
1028 swlim = audio_MIN (swlim, samples); in audio_pcm_sw_read()
1030 while (swlim) { in audio_pcm_sw_read()
1041 osamp = swlim; in audio_pcm_sw_read()
1049 swlim -= osamp; in audio_pcm_sw_read()
1108 int hwsamples, samples, isamp, osamp, wpos, live, dead, left, swlim, blck; in audio_pcm_sw_write() local
1134 swlim = ((int64_t) dead << 32) / sw->ratio; in audio_pcm_sw_write()
1135 swlim = audio_MIN (swlim, samples); in audio_pcm_sw_write()
1136 if (swlim) { in audio_pcm_sw_write()
1137 sw->conv (sw->buf, buf, swlim, &sw->vol); in audio_pcm_sw_write()
1140 while (swlim) { in audio_pcm_sw_write()
1147 isamp = swlim; in audio_pcm_sw_write()
1157 swlim -= isamp; in audio_pcm_sw_write()