• Home
  • Raw
  • Download

Lines Matching refs:hw_params

72 	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()
438 err = snd_pcm_hw_params_get_rate_min(state->hw_params, in configure_hw_params()
447 err = snd_pcm_hw_params_set_rate(state->handle, state->hw_params, in configure_hw_params()
460 state->hw_params, &msec_per_buffer, NULL); in configure_hw_params()
496 state->hw_params, &msec_per_period, NULL); in configure_hw_params()
505 state->hw_params, &frames_per_period, NULL); in configure_hw_params()
516 state->hw_params, &msec_per_buffer, NULL); in configure_hw_params()
525 state->hw_params, &frames_per_buffer); in configure_hw_params()
534 return snd_pcm_hw_params(state->handle, state->hw_params); in configure_hw_params()
537 static int retrieve_actual_hw_params(snd_pcm_hw_params_t *hw_params, in retrieve_actual_hw_params() argument
546 err = snd_pcm_hw_params_get_format(hw_params, format); in retrieve_actual_hw_params()
550 err = snd_pcm_hw_params_get_channels(hw_params, in retrieve_actual_hw_params()
555 err = snd_pcm_hw_params_get_rate(hw_params, frames_per_second, in retrieve_actual_hw_params()
560 err = snd_pcm_hw_params_get_access(hw_params, access); in retrieve_actual_hw_params()
564 return snd_pcm_hw_params_get_buffer_size(hw_params, frames_per_buffer); in retrieve_actual_hw_params()
665 snd_pcm_hw_params_dump(state->hw_params, state->log); in xfer_libasound_pre_process()
670 err = retrieve_actual_hw_params(state->hw_params, format, in xfer_libasound_pre_process()
683 state->hw_params, &flag); in xfer_libasound_pre_process()
810 if (!snd_pcm_hw_params_can_pause(state->hw_params)) in xfer_libasound_pause()
878 if (state->hw_params) in xfer_libasound_destroy()
879 snd_pcm_hw_params_free(state->hw_params); in xfer_libasound_destroy()
882 state->hw_params = NULL; in xfer_libasound_destroy()