Home
last modified time | relevance | path

Searched refs:sw_params (Results 1 – 25 of 40) sorted by relevance

12

/third_party/alsa-lib/src/pcm/
Dpcm_simple.c111 snd_pcm_sw_params_t *sw_params, in set_sw_params() argument
116 err = snd_pcm_sw_params_current(pcm, sw_params); in set_sw_params()
119 …err = snd_pcm_sw_params_set_start_threshold(pcm, sw_params, (pcm->buffer_size / pcm->period_size) … in set_sw_params()
122 err = snd_pcm_sw_params_set_avail_min(pcm, sw_params, pcm->period_size); in set_sw_params()
127 err = snd_pcm_sw_params_set_stop_threshold(pcm, sw_params, pcm->buffer_size); in set_sw_params()
130 err = snd_pcm_sw_params_set_stop_threshold(pcm, sw_params, pcm->boundary); in set_sw_params()
137 err = snd_pcm_sw_params(pcm, sw_params); in set_sw_params()
168 snd_pcm_sw_params_t sw_params = {0}; in snd_spcm_init() local
186 err = set_sw_params(pcm, &sw_params, xrun_type); in snd_spcm_init()
222 snd_pcm_sw_params_t sw_params = {0}; in snd_spcm_init_duplex() local
[all …]
Dpcm_rate.c56 snd_pcm_sw_params_t sw_params; member
517 sparams = &rate->sw_params; in snd_pcm_rate_sw_params()
1124 snd_pcm_sw_params_t sw_params; in snd_pcm_rate_drain() local
1129 sw_params = rate->sw_params; in snd_pcm_rate_drain()
1130 saved_avail_min = sw_params.avail_min; in snd_pcm_rate_drain()
1131 sw_params.avail_min = 1; in snd_pcm_rate_drain()
1132 snd_pcm_sw_params(rate->gen.slave, &sw_params); in snd_pcm_rate_drain()
1170 sw_params.avail_min = saved_avail_min; in snd_pcm_rate_drain()
1171 snd_pcm_sw_params(rate->gen.slave, &sw_params); in snd_pcm_rate_drain()
1311 .sw_params = snd_pcm_rate_sw_params,
Dpcm_direct.c1147 snd_pcm_sw_params_t sw_params = {0}; local
1306 ret = snd_pcm_sw_params_current(spcm, &sw_params);
1312 ret = snd_pcm_sw_params_get_boundary(&sw_params, &boundary);
1317 ret = snd_pcm_sw_params_set_stop_threshold(spcm, &sw_params, boundary);
1327 ret = snd_pcm_sw_params_set_tstamp_mode(spcm, &sw_params,
1335 ret = snd_pcm_sw_params_set_tstamp_type(spcm, &sw_params,
1347 ret = snd_pcm_sw_params_set_silence_threshold(spcm, &sw_params, 0);
1352 ret = snd_pcm_sw_params_set_silence_size(spcm, &sw_params, boundary);
1360 ret = snd_pcm_sw_params(spcm, &sw_params);
Dpcm_share.c89 snd_pcm_sw_params_t sw_params; member
394 snd_pcm_sw_params_set_avail_min(spcm, &slave->sw_params, avail_min); in snd_pcm_share_thread()
395 err = snd_pcm_sw_params(spcm, &slave->sw_params); in snd_pcm_share_thread()
448 snd_pcm_sw_params_set_avail_min(spcm, &slave->sw_params, avail_min); in _snd_pcm_share_update()
449 err = snd_pcm_sw_params(spcm, &slave->sw_params); in _snd_pcm_share_update()
654 snd_pcm_sw_params_current(slave->pcm, &slave->sw_params); in snd_pcm_share_hw_params()
1319 .sw_params = snd_pcm_share_sw_params,
Dpcm_shm.c322 ctrl->u.sw_params = *params; in snd_pcm_shm_sw_params()
324 *params = ctrl->u.sw_params; in snd_pcm_shm_sw_params()
600 .sw_params = snd_pcm_shm_sw_params,
Dpcm_copy.c161 .sw_params = snd_pcm_generic_sw_params,
Dpcm_ioplug.c470 if (!io->data->callback->sw_params) in snd_pcm_ioplug_sw_params()
474 err = io->data->callback->sw_params(io->data, params); in snd_pcm_ioplug_sw_params()
918 .sw_params = snd_pcm_ioplug_sw_params,
Dpcm_null.c331 .sw_params = snd_pcm_null_sw_params,
Dpcm_alaw.c400 .sw_params = snd_pcm_generic_sw_params,
Dpcm_mmap_emul.c362 .sw_params = snd_pcm_mmap_emul_sw_params,
Dpcm_mulaw.c415 .sw_params = snd_pcm_generic_sw_params,
Dpcm_lfloat.c359 .sw_params = snd_pcm_generic_sw_params,
Dpcm_linear.c403 .sw_params = snd_pcm_generic_sw_params,
Dpcm_adpcm.c527 .sw_params = snd_pcm_generic_sw_params,
Dpcm_hooks.c161 .sw_params = snd_pcm_generic_sw_params,
Dpcm_iec958.c538 .sw_params = snd_pcm_generic_sw_params,
Dpcm_extplug.c466 .sw_params = snd_pcm_generic_sw_params,
Dpcm_dsnoop.c504 .sw_params = snd_pcm_direct_sw_params,
/third_party/alsa-utils/axfer/
Dxfer-libasound.c76 return snd_pcm_sw_params_malloc(&state->sw_params); in xfer_libasound_init()
589 state->sw_params, frame_count); in configure_sw_params()
610 state->sw_params, frame_count); in configure_sw_params()
631 state->sw_params, frame_count); in configure_sw_params()
639 return snd_pcm_sw_params(state->handle, state->sw_params); in configure_sw_params()
677 err = snd_pcm_sw_params_current(state->handle, state->sw_params); in xfer_libasound_pre_process()
730 snd_pcm_sw_params_dump(state->sw_params, state->log); in xfer_libasound_pre_process()
880 if (state->sw_params) in xfer_libasound_destroy()
881 snd_pcm_sw_params_free(state->sw_params); in xfer_libasound_destroy()
883 state->sw_params = NULL; in xfer_libasound_destroy()
Dxfer-libasound-irq-rw.c129 err = snd_pcm_sw_params_get_avail_min(state->sw_params, in r_process_frames_blocking()
137 err = snd_pcm_sw_params_get_start_threshold(state->sw_params, in r_process_frames_blocking()
274 err = snd_pcm_sw_params_get_avail_min(state->sw_params, in w_process_frames_blocking()
285 err = snd_pcm_sw_params_get_start_threshold(state->sw_params, in w_process_frames_blocking()
Dxfer-libasound.h31 snd_pcm_sw_params_t *sw_params; member
Dxfer-libasound-timer-mmap.c38 state->sw_params, 1); in timer_mmap_pre_process()
/third_party/libsnd/programs/
Dsndfile-play.c154 snd_pcm_sw_params_t *sw_params ; in alsa_open() local
229 if ((err = snd_pcm_sw_params_malloc (&sw_params)) != 0) in alsa_open()
234 if ((err = snd_pcm_sw_params_current (alsa_dev, sw_params)) != 0) in alsa_open()
240 snd_pcm_sw_params_current (alsa_dev, sw_params) ; in alsa_open()
242 if ((err = snd_pcm_sw_params_set_start_threshold (alsa_dev, sw_params, buffer_size)) < 0) in alsa_open()
247 if ((err = snd_pcm_sw_params (alsa_dev, sw_params)) != 0) in alsa_open()
252 snd_pcm_sw_params_free (sw_params) ; in alsa_open()
/third_party/alsa-lib/include/
Daserver.h74 snd_pcm_sw_params_t sw_params; member
Dpcm_ioplug.h165 int (*sw_params)(snd_pcm_ioplug_t *io, snd_pcm_sw_params_t *params); member

12