Home | History | Annotate | Download | only in audio

Lines Matching defs:pcm

128     struct pcm *pcm;
148 struct pcm *pcm;
230 pcm_close(out->pcm);
231 out->pcm = NULL;
251 pcm_close(in->pcm);
252 in->pcm = NULL;
276 * (speaker/headphone) PCM or the BC SCO PCM open at
306 out->pcm = pcm_open(PCM_CARD, device, PCM_OUT | PCM_NORESTART | PCM_MONOTONIC, out->pcm_config);
308 if (out->pcm && !pcm_is_ready(out->pcm)) {
309 ALOGE("pcm_open(out) failed: %s", pcm_get_error(out->pcm));
310 pcm_close(out->pcm);
315 * If the stream rate differs from the PCM rate, we need to
328 out->buffer = malloc(pcm_frames_to_bytes(out->pcm, out->buffer_frames));
346 * mic PCM or the BC SCO PCM open at the same time.
374 in->pcm = pcm_open(PCM_CARD, device, PCM_IN, in->pcm_config);
376 if (in->pcm && !pcm_is_ready(in->pcm)) {
377 ALOGE("pcm_open(in) failed: %s", pcm_get_error(in->pcm));
378 pcm_close(in->pcm);
383 * If the stream rate differs from the PCM rate, we need to
397 in->buffer_size = pcm_frames_to_bytes(in->pcm,
418 if (in->pcm == NULL) {
426 in->read_status = pcm_read(in->pcm,
575 * because SCO uses a different PCM.
704 * pcm driver buffer */
707 if (pcm_get_htimestamp(out->pcm,
711 kernel_frames = pcm_get_buffer_size(out->pcm) - kernel_frames;
757 ret = pcm_write(out->pcm, in_buffer, out_frames * frame_size);
809 if (pcm_get_htimestamp(out->pcm, &avail, timestamp) == 0) {
907 * because SCO uses a different PCM.
969 * If the PCM is stereo, capture twice as many frames and
975 ret = pcm_read(in->pcm, in->buffer, bytes * 2);
981 ret = pcm_read(in->pcm, buffer, bytes);
1235 /* default PCM config */