Lines Matching full:pcm
486 struct pcm *pcm_modem_dl;
487 struct pcm *pcm_modem_ul;
509 struct pcm *pcm;
526 struct pcm *pcm;
614 /* Open modem PCM channels */
618 LOGE("cannot open PCM modem DL stream: %s", pcm_get_error(adev->pcm_modem_dl));
626 LOGE("cannot open PCM modem UL stream: %s", pcm_get_error(adev->pcm_modem_ul));
1126 out->pcm = pcm_open(card, port, PCM_OUT | PCM_MMAP | PCM_NOIRQ, &out->config);
1128 if (!pcm_is_ready(out->pcm)) {
1129 LOGE("cannot open pcm_out driver: %s", pcm_get_error(out->pcm));
1130 pcm_close(out->pcm);
1248 status = pcm_get_htimestamp(out->pcm, &kernel_frames, &buffer->time_stamp);
1258 kernel_frames = pcm_get_buffer_size(out->pcm) - kernel_frames;
1312 pcm_close(out->pcm);
1313 out->pcm = NULL;
1466 pcm_set_avail_min(out->pcm, out->config.avail_min);
1491 /* do not allow more than out->write_threshold frames in kernel pcm driver buffer */
1495 if (pcm_get_htimestamp(out->pcm, (unsigned int *)&kernel_frames, &time_stamp) < 0)
1497 kernel_frames = pcm_get_buffer_size(out->pcm) - kernel_frames;
1509 ret = pcm_mmap_write(out->pcm, (void *)buf, out_frames * frame_size);
1572 in->pcm = pcm_open(0, PORT_MM2_UL, PCM_IN, &in->config);
1573 if (!pcm_is_ready(in->pcm)) {
1574 LOGE("cannot open pcm_in driver: %s", pcm_get_error(in->pcm));
1575 pcm_close(in->pcm);
1636 pcm_close(in->pcm);
1637 in->pcm = NULL;
1742 if (pcm_get_htimestamp(in->pcm, &kernel_frames, &tstamp) < 0) {
1885 if (in->pcm == NULL) {
1893 in->read_status = pcm_read(in->pcm,
2064 ret = pcm_read(in->pcm, buffer, bytes);
2605 /* Set the default route before the PCM stream is opened */