Home
last modified time | relevance | path

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

/sound/core/
Dcompress_offload.c185 struct snd_compr_avail *avail) in snd_compr_calc_avail() argument
187 memset(avail, 0, sizeof(*avail)); in snd_compr_calc_avail()
188 snd_compr_update_tstamp(stream, &avail->tstamp); in snd_compr_calc_avail()
211 avail->avail = stream->runtime->total_bytes_available - in snd_compr_calc_avail()
214 avail->avail = stream->runtime->buffer_size - avail->avail; in snd_compr_calc_avail()
216 pr_debug("ret avail as %lld\n", avail->avail); in snd_compr_calc_avail()
217 return avail->avail; in snd_compr_calc_avail()
222 struct snd_compr_avail avail; in snd_compr_get_avail() local
224 return snd_compr_calc_avail(stream, &avail); in snd_compr_get_avail()
231 size_t avail; in snd_compr_ioctl_avail() local
[all …]
Drawmidi.c92 return runtime->avail >= runtime->avail_min; in snd_rawmidi_ready()
99 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append()
100 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append()
136 runtime->avail = 0; in snd_rawmidi_runtime_create()
138 runtime->avail = runtime->buffer_size; in snd_rawmidi_runtime_create()
183 runtime->avail = runtime->buffer_size; in snd_rawmidi_drop_output()
198 (runtime->avail >= runtime->buffer_size), in snd_rawmidi_drain_output()
202 if (runtime->avail < runtime->buffer_size && !timeout) { in snd_rawmidi_drain_output()
205 (long)runtime->avail, (long)runtime->buffer_size); in snd_rawmidi_drain_output()
230 runtime->avail = 0; in snd_rawmidi_drain_input()
[all …]
Drawmidi_compat.c61 u32 avail; member
94 put_user(status.avail, &src->avail) || in snd_rawmidi_ioctl_status_compat()
107 u32 avail; member
141 put_user(status.avail, &src->avail) || in snd_rawmidi_ioctl_status_x32()
Dpcm_lib.c80 snd_pcm_sframes_t avail = snd_pcm_playback_hw_avail(runtime); in snd_pcm_playback_silence() local
81 if (avail > runtime->buffer_size) in snd_pcm_playback_silence()
82 avail = runtime->buffer_size; in snd_pcm_playback_silence()
83 runtime->silence_filled = avail > 0 ? avail : 0; in snd_pcm_playback_silence()
208 snd_pcm_uframes_t avail; in snd_pcm_update_state() local
211 avail = snd_pcm_playback_avail(runtime); in snd_pcm_update_state()
213 avail = snd_pcm_capture_avail(runtime); in snd_pcm_update_state()
214 if (avail > runtime->avail_max) in snd_pcm_update_state()
215 runtime->avail_max = avail; in snd_pcm_update_state()
217 if (avail >= runtime->buffer_size) { in snd_pcm_update_state()
[all …]
Dpcm_compat.c201 u32 avail; member
241 put_user(status.avail, &src->avail) || in snd_pcm_status_user_compat()
264 u32 avail; member
305 put_user(status.avail, &src->avail) || in snd_pcm_status_user_x32()
Dpcm_native.c780 status->avail = snd_pcm_playback_avail(runtime); in snd_pcm_status()
783 status->delay = runtime->buffer_size - status->avail; in snd_pcm_status()
788 status->avail = snd_pcm_capture_avail(runtime); in snd_pcm_status()
790 status->delay = status->avail + runtime->delay; in snd_pcm_status()
2554 snd_pcm_sframes_t avail; in snd_pcm_playback_forward() local
2580 avail = snd_pcm_playback_avail(runtime); in snd_pcm_playback_forward()
2581 if (avail <= 0) { in snd_pcm_playback_forward()
2585 if (frames > (snd_pcm_uframes_t)avail) in snd_pcm_playback_forward()
2586 frames = avail; in snd_pcm_playback_forward()
2603 snd_pcm_sframes_t avail; in snd_pcm_capture_forward() local
[all …]
Dpcm.c479 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()
248 mgr->avail = mgr->amount = amount; in rsc_mgr_init()
292 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.c2308 snd_pcm_sframes_t avail; in snd_pcm_oss_get_space() local
2336 err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, &avail); in snd_pcm_oss_get_space()
2337 if (err == -EPIPE || err == -ESTRPIPE || (! err && avail < 0)) { in snd_pcm_oss_get_space()
2338 avail = runtime->buffer_size; in snd_pcm_oss_get_space()
2342 avail = runtime->buffer_size - avail; in snd_pcm_oss_get_space()
2346 err = snd_pcm_oss_capture_position_fixup(substream, &avail); in snd_pcm_oss_get_space()
2351 info.bytes = snd_pcm_oss_bytes(substream, avail) + fixup; in snd_pcm_oss_get_space()
/sound/soc/intel/atom/sst/
Dsst.h311 int avail; member
/sound/soc/codecs/
Dwm_adsp.c798 int avail = SNDRV_CTL_ELEM_ID_NAME_MAXLEN - ret - 2; in wm_adsp_create_control() local
801 if (subname_len > avail) in wm_adsp_create_control()
802 skip = subname_len - avail; in wm_adsp_create_control()