Home
last modified time | relevance | path

Searched refs:ext_pcm (Results 1 – 4 of 4) sorted by relevance

/device/generic/car/emulator/audio/driver/
Dext_pcm.c30 static struct ext_pcm *shared_ext_pcm = NULL;
74 struct ext_pcm *ext_pcm = (struct ext_pcm *)context; in mixer_thread_loop() local
76 pthread_mutex_lock(&ext_pcm->mixer_lock); in mixer_thread_loop()
77 ext_pcm->mixer_pipeline.position = 0; in mixer_thread_loop()
79 hashmapForEach(ext_pcm->mixer_pipeline_map, mixer_thread_mix, in mixer_thread_loop()
80 &ext_pcm->mixer_pipeline); in mixer_thread_loop()
81 if (ext_pcm->mixer_pipeline.position > 0) { in mixer_thread_loop()
82 pcm_write(ext_pcm->pcm, (void *)ext_pcm->mixer_pipeline.buffer, in mixer_thread_loop()
83 ext_pcm->mixer_pipeline.position * sizeof(int16_t)); in mixer_thread_loop()
85 memset(&ext_pcm->mixer_pipeline, 0, sizeof(struct ext_mixer_pipeline)); in mixer_thread_loop()
[all …]
Dext_pcm.h33 struct ext_pcm { struct
43 struct ext_pcm *ext_pcm_open(unsigned int card, unsigned int device, argument
45 int ext_pcm_close(struct ext_pcm *ext_pcm);
46 int ext_pcm_is_ready(struct ext_pcm *ext_pcm);
47 int ext_pcm_write(struct ext_pcm *ext_pcm, const char *bus_address,
49 const char *ext_pcm_get_error(struct ext_pcm *ext_pcm);
50 unsigned int ext_pcm_frames_to_bytes(struct ext_pcm *ext_pcm,
Daudio_hw.c206 struct ext_pcm *ext_pcm = NULL; in out_write_worker() local
216 if (ext_pcm) { in out_write_worker()
217 ext_pcm_close(ext_pcm); // Frees pcm in out_write_worker()
218 ext_pcm = NULL; in out_write_worker()
244 if (!ext_pcm) { in out_write_worker()
245 ext_pcm = ext_pcm_open(PCM_CARD, PCM_DEVICE, in out_write_worker()
247 if (!ext_pcm_is_ready(ext_pcm)) { in out_write_worker()
249 ext_pcm_get_error(ext_pcm), in out_write_worker()
258 buffer_size = ext_pcm_frames_to_bytes(ext_pcm, buffer_frames); in out_write_worker()
268 int write_error = ext_pcm_write(ext_pcm, out->bus_address, in out_write_worker()
[all …]
DAndroid.bp27 "ext_pcm.c",