Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 12 of 12) sorted by relevance

/sound/core/
Dcompress_offload.c184 struct snd_compr_avail *avail) in snd_compr_calc_avail() argument
186 memset(avail, 0, sizeof(*avail)); in snd_compr_calc_avail()
187 snd_compr_update_tstamp(stream, &avail->tstamp); in snd_compr_calc_avail()
210 avail->avail = stream->runtime->total_bytes_available - in snd_compr_calc_avail()
213 avail->avail = stream->runtime->buffer_size - avail->avail; in snd_compr_calc_avail()
215 pr_debug("ret avail as %lld\n", avail->avail); in snd_compr_calc_avail()
216 return avail->avail; in snd_compr_calc_avail()
221 struct snd_compr_avail avail; in snd_compr_get_avail() local
223 return snd_compr_calc_avail(stream, &avail); in snd_compr_get_avail()
230 size_t avail; in snd_compr_ioctl_avail() local
[all …]
Drawmidi.c91 return runtime->avail >= runtime->avail_min; in snd_rawmidi_ready()
98 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append()
99 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append()
124 runtime->avail = 0; in snd_rawmidi_runtime_create()
126 runtime->avail = runtime->buffer_size; in snd_rawmidi_runtime_create()
171 runtime->avail = runtime->buffer_size; in snd_rawmidi_drop_output()
186 (runtime->avail >= runtime->buffer_size), in snd_rawmidi_drain_output()
190 if (runtime->avail < runtime->buffer_size && !timeout) { in snd_rawmidi_drain_output()
193 (long)runtime->avail, (long)runtime->buffer_size); in snd_rawmidi_drain_output()
218 runtime->avail = 0; in snd_rawmidi_drain_input()
[all …]
Drawmidi_compat.c59 u32 avail; member
90 put_user(status.avail, &src->avail) || in snd_rawmidi_ioctl_status_compat()
103 u32 avail; member
135 put_user(status.avail, &src->avail) || in snd_rawmidi_ioctl_status_x32()
Dpcm_lib.c71 snd_pcm_sframes_t avail = snd_pcm_playback_hw_avail(runtime); in snd_pcm_playback_silence() local
72 if (avail > runtime->buffer_size) in snd_pcm_playback_silence()
73 avail = runtime->buffer_size; in snd_pcm_playback_silence()
74 runtime->silence_filled = avail > 0 ? avail : 0; in snd_pcm_playback_silence()
280 snd_pcm_uframes_t avail; in snd_pcm_update_state() local
283 avail = snd_pcm_playback_avail(runtime); in snd_pcm_update_state()
285 avail = snd_pcm_capture_avail(runtime); in snd_pcm_update_state()
286 if (avail > runtime->avail_max) in snd_pcm_update_state()
287 runtime->avail_max = avail; in snd_pcm_update_state()
289 if (avail >= runtime->buffer_size) { in snd_pcm_update_state()
[all …]
Dpcm_native.c724 status->avail = snd_pcm_playback_avail(runtime); in snd_pcm_status()
727 status->delay = runtime->buffer_size - status->avail; in snd_pcm_status()
732 status->avail = snd_pcm_capture_avail(runtime); in snd_pcm_status()
734 status->delay = status->avail + runtime->delay; in snd_pcm_status()
2500 snd_pcm_sframes_t avail; in snd_pcm_playback_forward() local
2526 avail = snd_pcm_playback_avail(runtime); in snd_pcm_playback_forward()
2527 if (avail <= 0) { in snd_pcm_playback_forward()
2531 if (frames > (snd_pcm_uframes_t)avail) in snd_pcm_playback_forward()
2532 frames = avail; in snd_pcm_playback_forward()
2549 snd_pcm_sframes_t avail; in snd_pcm_capture_forward() local
[all …]
Dpcm_compat.c193 u32 avail; member
221 put_user(status.avail, &src->avail) || in snd_pcm_status_user_compat()
Dpcm.c480 snd_iprintf(buffer, "avail : %ld\n", status.avail); in snd_pcm_substream_proc_status_read()
/sound/pci/ctxfi/
Dctresource.c81 if (n > mgr->avail) in mgr_get_resource()
86 mgr->avail -= n; in mgr_get_resource()
94 mgr->avail += n; in mgr_put_resource()
249 mgr->avail = mgr->amount = amount; in rsc_mgr_init()
293 mgr->avail = mgr->amount = 0; in rsc_mgr_uninit()
Dctresource.h60 unsigned int avail; /* The amount of currently available resources */ member
/sound/oss/
Dopl3.c1000 int i, p, best, first, avail, best_time = 0x7fffffff; in opl3_alloc_voice() local
1022 avail = 6; in opl3_alloc_voice()
1030 avail = devc->nr_voice; in opl3_alloc_voice()
1038 for (i = 0; i < avail; i++) in opl3_alloc_voice()
1049 p = (p + 1) % avail; in opl3_alloc_voice()
/sound/core/seq/
Dseq_midi.c90 while (runtime->avail > 0) { in snd_midi_input_event()
122 if ((tmp = runtime->avail) < count) { in dump_midi()
/sound/core/oss/
Dpcm_oss.c2171 snd_pcm_sframes_t avail; in snd_pcm_oss_get_space() local
2199 err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, &avail); in snd_pcm_oss_get_space()
2200 if (err == -EPIPE || err == -ESTRPIPE || (! err && avail < 0)) { in snd_pcm_oss_get_space()
2201 avail = runtime->buffer_size; in snd_pcm_oss_get_space()
2205 avail = runtime->buffer_size - avail; in snd_pcm_oss_get_space()
2209 err = snd_pcm_oss_capture_position_fixup(substream, &avail); in snd_pcm_oss_get_space()
2214 info.bytes = snd_pcm_oss_bytes(substream, avail) + fixup; in snd_pcm_oss_get_space()