Lines Matching defs:phandle
223 int setparams(snd_pcm_t *phandle, snd_pcm_t *chandle, int *bufsize)
239 if ((err = setparams_stream(phandle, pt_params, "playback")) < 0) {
262 if ((err = setparams_bufsize(phandle, p_params, pt_params, *bufsize, "playback")) < 0) {
301 if ((err = setparams_set(phandle, p_params, p_swparams, "playback")) < 0) {
310 if ((err = snd_pcm_prepare(phandle)) < 0) {
315 snd_pcm_dump(phandle, output);
582 snd_pcm_t *phandle, *chandle;
710 if ((err = snd_pcm_open(&phandle, pdevice, SND_PCM_STREAM_PLAYBACK, block ? 0 : SND_PCM_NONBLOCK)) < 0) {
740 if (setparams(phandle, chandle, &latency) < 0)
743 if ((err = snd_pcm_link(chandle, phandle)) < 0) {
751 if (writebuf(phandle, buffer, latency, &frames_out) < 0) {
755 if (writebuf(phandle, buffer, latency, &frames_out) < 0) {
768 gettimestamp(phandle, &p_tstamp);
772 showstat(phandle, frames_out);
798 pbk_fill = get_avail(phandle);
822 if (writebuf(phandle, buffer, r, &frames_out) < 0)
831 showstat(phandle, frames_out);
846 snd_pcm_nonblock(phandle, 0);
847 snd_pcm_drain(phandle);
848 snd_pcm_nonblock(phandle, !block ? 1 : 0);
861 snd_pcm_hw_free(phandle);
864 snd_pcm_close(phandle);