Searched refs:hw_avail (Results 1 – 2 of 2) sorted by relevance
1965 int swptr, hwptr, hw_avail, sw_avail, swidx; in pcm_output() local1974 hw_avail = (hwmax - hw_unavail) & -fragsize; in pcm_output()1993 if (!sw_avail || !hw_avail) in pcm_output()2004 nb = hw_avail; in pcm_output()2014 DBGP("hw_avail = %d\n", hw_avail); in pcm_output()2090 int swptr, hwptr, hw_avail, sw_avail, swidx; in pcm_input() local2096 hw_avail = (hwptr - swptr + hwsize) % hwsize & -fragsize; in pcm_input()2097 if (hw_avail > hwmax) in pcm_input()2098 hw_avail = hwmax; in pcm_input()2109 if (!sw_avail || !hw_avail) in pcm_input()[all …]
2188 snd_pcm_sframes_t hw_avail; in snd_pcm_playback_rewind() local2210 hw_avail = snd_pcm_playback_hw_avail(runtime); in snd_pcm_playback_rewind()2211 if (hw_avail <= 0) { in snd_pcm_playback_rewind()2215 if (frames > (snd_pcm_uframes_t)hw_avail) in snd_pcm_playback_rewind()2216 frames = hw_avail; in snd_pcm_playback_rewind()2233 snd_pcm_sframes_t hw_avail; in snd_pcm_capture_rewind() local2255 hw_avail = snd_pcm_capture_hw_avail(runtime); in snd_pcm_capture_rewind()2256 if (hw_avail <= 0) { in snd_pcm_capture_rewind()2260 if (frames > (snd_pcm_uframes_t)hw_avail) in snd_pcm_capture_rewind()2261 frames = hw_avail; in snd_pcm_capture_rewind()