Lines Matching refs:pcm
106 proxy->pcm = NULL; in proxy_prepare()
139 proxy->pcm = pcm_open(profile->card, profile->device, in proxy_open()
141 if (proxy->pcm == NULL) { in proxy_open()
145 if (!pcm_is_ready(proxy->pcm)) { in proxy_open()
146 ALOGE(" proxy_open() pcm_is_ready() failed: %s", pcm_get_error(proxy->pcm)); in proxy_open()
150 pcm_close(proxy->pcm); in proxy_open()
151 proxy->pcm = NULL; in proxy_open()
160 ALOGV("proxy_close() [pcm:%p]", proxy->pcm); in proxy_close()
162 if (proxy->pcm != NULL) { in proxy_close()
163 pcm_close(proxy->pcm); in proxy_close()
164 proxy->pcm = NULL; in proxy_close()
216 if (proxy->pcm != NULL in proxy_get_presentation_position()
217 && pcm_get_htimestamp(proxy->pcm, &avail, timestamp) == 0) { in proxy_get_presentation_position()
243 if (proxy->pcm != NULL in proxy_get_capture_position()
244 && pcm_get_htimestamp(proxy->pcm, &avail, ×tamp) == 0) { in proxy_get_capture_position()
263 int ret = pcm_write(proxy->pcm, data, count); in proxy_write()
272 int ret = pcm_read(proxy->pcm, data, count); in proxy_read()
302 struct pcm * alsa_pcm; in proxy_scan_rates()