Lines Matching refs:pcm_handle

100     snd_pcm_t *pcm_handle;
493 snd_pcm_close(u->pcm_handle);
494 u->pcm_handle = NULL;
517 if ((err = snd_pcm_recover(u->pcm_handle, err, 1)) < 0) {
604 if (PA_UNLIKELY((n = pa_alsa_safe_avail(u->pcm_handle, u->hwbuf_size, &u->source->sample_spec)) < 0)) {
635 char *dn = pa_alsa_get_driver_name_by_pcm(u->pcm_handle);
674 if (PA_UNLIKELY((err = pa_alsa_safe_mmap_begin(u->pcm_handle, &areas, &offset, &frames, u->hwbuf_size, &u->source->sample_spec)) < 0)) {
715 if (PA_UNLIKELY((sframes = snd_pcm_mmap_commit(u->pcm_handle, offset, frames)) < 0)) {
779 if (PA_UNLIKELY((n = pa_alsa_safe_avail(u->pcm_handle, u->hwbuf_size, &u->source->sample_spec)) < 0)) {
801 char *dn = pa_alsa_get_driver_name_by_pcm(u->pcm_handle);
837 frames = snd_pcm_readi(u->pcm_handle, (uint8_t*) p, (snd_pcm_uframes_t) frames);
915 pa_assert(u->pcm_handle);
919 if (PA_UNLIKELY((err = pa_alsa_safe_delay(u->pcm_handle, status, &delay, u->hwbuf_size, &u->source->sample_spec, true)) < 0)) {
975 pa_assert(u->pcm_handle);
980 if (!(u->alsa_rtpoll_item = pa_alsa_build_pollfd(u->pcm_handle, u->rtpoll)))
992 if (!u->pcm_handle)
1046 if ((err = pa_alsa_set_sw_params(u->pcm_handle, avail_min, !u->use_tsched)) < 0) {
1084 pa_assert(!u->pcm_handle);
1095 if ((err = snd_pcm_open(&u->pcm_handle, u->device_name, SND_PCM_STREAM_CAPTURE,
1122 if ((err = pa_alsa_set_hw_params(u->pcm_handle, &ss, &period_frames, &buffer_frames, tsched_frames, &b, &d, true)) < 0) {
1170 if (u->pcm_handle) {
1171 snd_pcm_close(u->pcm_handle);
1172 u->pcm_handle = NULL;
1224 if (u->pcm_handle)
1629 if (!u->pcm_handle)
1724 snd_pcm_start(u->pcm_handle);
1820 if ((err = snd_pcm_poll_descriptors_revents(u->pcm_handle, pollfd, n, &revents)) < 0) {
1826 if ((err = pa_alsa_recover_from_poll(u->pcm_handle, revents)) < 0)
1901 u->mixer_handle = pa_alsa_open_mixer_for_pcm(u->mixers, u->pcm_handle, false);
2215 if (!(u->pcm_handle = pa_alsa_open_by_device_id_mapping(
2229 if (!(u->pcm_handle = pa_alsa_open_by_device_id_auto(
2240 if (!(u->pcm_handle = pa_alsa_open_by_device_string(
2253 if (pa_alsa_pcm_is_modem(u->pcm_handle)) {
2282 u->supported_formats = pa_alsa_get_supported_formats(u->pcm_handle, ss.format);
2288 u->supported_rates = pa_alsa_get_supported_rates(u->pcm_handle, ss.rate);
2326 pa_alsa_init_proplist_pcm(m->core, data.proplist, u->pcm_handle);
2353 pa_alsa_ucm_add_ports(&data.ports, data.proplist, u->ucm_context, false, card, u->pcm_handle, ignore_dB);
2442 pa_alsa_dump(PA_LOG_DEBUG, u->pcm_handle);
2520 if (u->pcm_handle) {
2521 snd_pcm_drop(u->pcm_handle);
2522 snd_pcm_close(u->pcm_handle);