Lines Matching refs:phandle
170 int setparams(snd_pcm_t *phandle, snd_pcm_t *chandle, int *bufsize)
186 if ((err = setparams_stream(phandle, pt_params, "playback")) < 0) {
209 if ((err = setparams_bufsize(phandle, p_params, pt_params, *bufsize, "playback")) < 0) {
247 if ((err = setparams_set(phandle, p_params, p_swparams, "playback")) < 0) {
256 if ((err = snd_pcm_prepare(phandle)) < 0) {
261 snd_pcm_dump(phandle, output);
494 snd_pcm_t *phandle, *chandle;
591 if ((err = snd_pcm_open(&phandle, pdevice, SND_PCM_STREAM_PLAYBACK, block ? 0 : SND_PCM_NONBLOCK)) < 0) {
618 if (setparams(phandle, chandle, &latency) < 0)
621 if ((err = snd_pcm_link(chandle, phandle)) < 0) {
629 if (writebuf(phandle, buffer, latency, &frames_out) < 0) {
633 if (writebuf(phandle, buffer, latency, &frames_out) < 0) {
642 gettimestamp(phandle, &p_tstamp);
646 showstat(phandle, frames_out);
663 if (writebuf(phandle, buffer, r, &frames_out) < 0)
672 showstat(phandle, frames_out);
680 snd_pcm_nonblock(phandle, 0);
681 snd_pcm_drain(phandle);
682 snd_pcm_nonblock(phandle, !block ? 1 : 0);
695 snd_pcm_hw_free(phandle);
698 snd_pcm_close(phandle);