Home
last modified time | relevance | path

Searched refs:hw_params (Results 1 – 25 of 48) sorted by relevance

12

/third_party/alsa-lib/src/pcm/
Dpcm_simple.c48 snd_pcm_hw_params_t *hw_params, in set_hw_params() argument
62 err = snd_pcm_hw_params_any(pcm, hw_params); in set_hw_params()
65 err = snd_pcm_hw_params_set_access(pcm, hw_params, access); in set_hw_params()
68 err = snd_pcm_hw_params_set_format(pcm, hw_params, format); in set_hw_params()
72 err = snd_pcm_hw_params_set_subformat(pcm, hw_params, subformat); in set_hw_params()
76 err = snd_pcm_hw_params_set_channels(pcm, hw_params, channels); in set_hw_params()
79 err = INTERNAL(snd_pcm_hw_params_set_rate_near)(pcm, hw_params, rate, 0); in set_hw_params()
82 err = INTERNAL(snd_pcm_hw_params_set_buffer_time_near)(pcm, hw_params, buffer_time, NULL); in set_hw_params()
87 err = INTERNAL(snd_pcm_hw_params_set_periods_near)(pcm, hw_params, &periods, NULL); in set_hw_params()
93 err = INTERNAL(snd_pcm_hw_params_get_period_time)(hw_params, period_time, NULL); in set_hw_params()
[all …]
Dpcm_direct.c1146 snd_pcm_hw_params_t hw_params = {0}; local
1158 ret = snd_pcm_hw_params_any(spcm, &hw_params);
1163 ret = snd_pcm_hw_params_set_access(spcm, &hw_params,
1166 ret = snd_pcm_hw_params_set_access(spcm, &hw_params,
1176 ret = snd_pcm_hw_params_set_format(spcm, &hw_params,
1195 ret = snd_pcm_hw_params_set_format(spcm, &hw_params,
1203 &hw_params, &format);
1211 ret = INTERNAL(snd_pcm_hw_params_set_channels_near)(spcm, &hw_params,
1217 ret = INTERNAL(snd_pcm_hw_params_set_rate_near)(spcm, &hw_params,
1227 &hw_params, (unsigned int *)&params->buffer_time, 0);
[all …]
Dpcm_extplug.c187 static int extplug_hw_refine(snd_pcm_hw_params_t *hw_params, in extplug_hw_refine() argument
194 err = snd_ext_parm_mask_refine(hw_param_mask(hw_params, type), in extplug_hw_refine()
197 err = snd_ext_parm_interval_refine(hw_param_interval(hw_params, type), in extplug_hw_refine()
312 if (ext->data->callback->hw_params) { in snd_pcm_extplug_hw_params()
313 err = ext->data->callback->hw_params(ext->data, params); in snd_pcm_extplug_hw_params()
464 .hw_params = snd_pcm_extplug_hw_params,
Dpcm_shm.c293 ctrl->u.hw_params = *params; in snd_pcm_shm_hw_params_slave()
295 *params = ctrl->u.hw_params; in snd_pcm_shm_hw_params_slave()
598 .hw_params = snd_pcm_shm_hw_params,
Dpcm_copy.c159 .hw_params = snd_pcm_copy_hw_params,
Dpcm_ioplug.c442 if (io->data->callback->hw_params) { in snd_pcm_ioplug_hw_params()
443 err = io->data->callback->hw_params(io->data, params); in snd_pcm_ioplug_hw_params()
916 .hw_params = snd_pcm_ioplug_hw_params,
Dpcm_null.c329 .hw_params = snd_pcm_null_hw_params,
Dpcm_alaw.c398 .hw_params = snd_pcm_alaw_hw_params,
Dpcm_mmap_emul.c360 .hw_params = snd_pcm_mmap_emul_hw_params,
Dpcm_mulaw.c413 .hw_params = snd_pcm_mulaw_hw_params,
Dpcm_lfloat.c357 .hw_params = snd_pcm_lfloat_hw_params,
Dpcm_linear.c401 .hw_params = snd_pcm_linear_hw_params,
Dpcm_adpcm.c525 .hw_params = snd_pcm_adpcm_hw_params,
/third_party/alsa-utils/axfer/
Dxfer-libasound.c72 err = snd_pcm_hw_params_malloc(&state->hw_params); in xfer_libasound_init()
222 err = snd_pcm_hw_params_set_access_mask(state->handle, state->hw_params, in set_access_hw_param()
240 if (!snd_pcm_hw_params_can_disable_period_wakeup(state->hw_params)) { in disable_period_wakeup()
249 state->hw_params, 0); in disable_period_wakeup()
289 err = snd_pcm_hw_params_any(state->handle, state->hw_params); in open_handle()
302 snd_pcm_hw_params_dump(state->hw_params, state->log); in open_handle()
396 snd_pcm_hw_params_get_format_mask(state->hw_params, mask); in configure_hw_params()
408 err = snd_pcm_hw_params_set_format(state->handle, state->hw_params, in configure_hw_params()
419 err = snd_pcm_hw_params_get_channels_min(state->hw_params, in configure_hw_params()
427 err = snd_pcm_hw_params_set_channels(state->handle, state->hw_params, in configure_hw_params()
[all …]
Dxfer-libasound-irq-rw.c31 err = snd_pcm_hw_params_get_buffer_time(state->hw_params, in wait_for_avail()
292 err = snd_pcm_hw_params_get_period_size(state->hw_params, in w_process_frames_blocking()
367 err = snd_pcm_hw_params_get_format(state->hw_params, &format); in irq_rw_pre_process()
374 err = snd_pcm_hw_params_get_channels(state->hw_params, in irq_rw_pre_process()
379 err = snd_pcm_hw_params_get_buffer_size(state->hw_params, in irq_rw_pre_process()
384 err = snd_pcm_hw_params_get_access(state->hw_params, &closure->access); in irq_rw_pre_process()
Dxfer-libasound-timer-mmap.c46 err = snd_pcm_hw_params_get_access(state->hw_params, &access); in timer_mmap_pre_process()
50 err = snd_pcm_hw_params_get_channels(state->hw_params, in timer_mmap_pre_process()
55 err = snd_pcm_hw_params_get_rate(state->hw_params, in timer_mmap_pre_process()
60 err = snd_pcm_hw_params_get_buffer_size(state->hw_params, in timer_mmap_pre_process()
346 err = snd_pcm_hw_params_get_buffer_size(state->hw_params, in fill_buffer_with_zero_samples()
356 err = snd_pcm_hw_params_get_format(state->hw_params, &sample_format); in fill_buffer_with_zero_samples()
Dxfer-libasound-irq-mmap.c32 err = snd_pcm_hw_params_get_access(state->hw_params, &access); in irq_mmap_pre_process()
36 err = snd_pcm_hw_params_get_channels(state->hw_params, in irq_mmap_pre_process()
90 err = snd_pcm_hw_params_get_buffer_time(state->hw_params, in irq_mmap_process_frames()
Dxfer-libasound.h30 snd_pcm_hw_params_t *hw_params; member
/third_party/ffmpeg/libavdevice/
Dalsa.c176 snd_pcm_hw_params_t *hw_params; in ff_alsa_open() local
202 res = snd_pcm_hw_params_malloc(&hw_params); in ff_alsa_open()
209 res = snd_pcm_hw_params_any(h, hw_params); in ff_alsa_open()
216 res = snd_pcm_hw_params_set_access(h, hw_params, SND_PCM_ACCESS_RW_INTERLEAVED); in ff_alsa_open()
223 res = snd_pcm_hw_params_set_format(h, hw_params, format); in ff_alsa_open()
230 res = snd_pcm_hw_params_set_rate_near(h, hw_params, sample_rate, 0); in ff_alsa_open()
237 res = snd_pcm_hw_params_set_channels(h, hw_params, channels); in ff_alsa_open()
244 snd_pcm_hw_params_get_buffer_size_max(hw_params, &buffer_size); in ff_alsa_open()
247 res = snd_pcm_hw_params_set_buffer_size_near(h, hw_params, &buffer_size); in ff_alsa_open()
254 snd_pcm_hw_params_get_period_size_min(hw_params, &period_size, NULL); in ff_alsa_open()
[all …]
/third_party/gstreamer/gstplugins_base/ext/alsa/
Dgstalsa.c23 gst_alsa_detect_rates (GstObject * obj, snd_pcm_hw_params_t * hw_params, in gst_alsa_detect_rates() argument
32 if ((err = snd_pcm_hw_params_get_rate_min (hw_params, &min, &dir)) < 0) in gst_alsa_detect_rates()
35 if ((err = snd_pcm_hw_params_get_rate_max (hw_params, &max, &dir)) < 0) in gst_alsa_detect_rates()
172 gst_alsa_detect_formats (GstObject * obj, snd_pcm_hw_params_t * hw_params, in gst_alsa_detect_formats() argument
181 snd_pcm_hw_params_get_format_mask (hw_params, mask); in gst_alsa_detect_formats()
340 gst_alsa_detect_channels (GstObject * obj, snd_pcm_hw_params_t * hw_params, in gst_alsa_detect_channels() argument
350 if ((err = snd_pcm_hw_params_get_channels_min (hw_params, &min)) < 0) in gst_alsa_detect_channels()
353 if ((err = snd_pcm_hw_params_get_channels_max (hw_params, &max)) < 0) in gst_alsa_detect_channels()
498 snd_pcm_hw_params_t *hw_params; in gst_alsa_probe_supported_formats() local
503 snd_pcm_hw_params_malloc (&hw_params); in gst_alsa_probe_supported_formats()
[all …]
/third_party/libsnd/programs/
Dsndfile-play.c151 snd_pcm_hw_params_t *hw_params ; in alsa_open() local
174 if ((err = snd_pcm_hw_params_malloc (&hw_params)) < 0) in alsa_open()
179 if ((err = snd_pcm_hw_params_any (alsa_dev, hw_params)) < 0) in alsa_open()
184 if ((err = snd_pcm_hw_params_set_access (alsa_dev, hw_params, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0) in alsa_open()
189 if ((err = snd_pcm_hw_params_set_format (alsa_dev, hw_params, SND_PCM_FORMAT_FLOAT)) < 0) in alsa_open()
194 if ((err = snd_pcm_hw_params_set_rate_near (alsa_dev, hw_params, &samplerate, 0)) < 0) in alsa_open()
199 if ((err = snd_pcm_hw_params_set_channels (alsa_dev, hw_params, channels)) < 0) in alsa_open()
204 if ((err = snd_pcm_hw_params_set_buffer_size_near (alsa_dev, hw_params, &alsa_buffer_frames)) < 0) in alsa_open()
209 if ((err = snd_pcm_hw_params_set_period_size_near (alsa_dev, hw_params, &alsa_period_size, 0)) < 0) in alsa_open()
214 if ((err = snd_pcm_hw_params (alsa_dev, hw_params)) < 0) in alsa_open()
[all …]
/third_party/alsa-lib/include/
Dpcm_extplug.h146 int (*hw_params)(snd_pcm_extplug_t *ext, snd_pcm_hw_params_t *params); member
Daserver.h73 snd_pcm_hw_params_t hw_params; member
Dpcm_ioplug.h157 int (*hw_params)(snd_pcm_ioplug_t *io, snd_pcm_hw_params_t *params); member
/third_party/alsa-lib/
DNOTES27 When LIBASOUND_DEBUG=1 is set, the errors in hw_params configuration

12