Home
last modified time | relevance | path

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

/device/generic/car/emulator/audio/driver/
Dext_pcm.c32 static struct ext_pcm *shared_ext_pcm = NULL; variable
141 if (shared_ext_pcm == NULL) { in ext_pcm_open()
142 shared_ext_pcm = calloc(1, sizeof(struct ext_pcm)); in ext_pcm_open()
143 pthread_mutex_init(&shared_ext_pcm->lock, (const pthread_mutexattr_t *) NULL); in ext_pcm_open()
144 shared_ext_pcm->pcm = pcm_open(card, device, flags, config); in ext_pcm_open()
145 pthread_mutex_init(&shared_ext_pcm->mixer_lock, (const pthread_mutexattr_t *)NULL); in ext_pcm_open()
146 pthread_create(&shared_ext_pcm->mixer_thread, (const pthread_attr_t *)NULL, in ext_pcm_open()
147 mixer_thread_loop, shared_ext_pcm); in ext_pcm_open()
148 shared_ext_pcm->mixer_pipeline_map = hashmapCreate(8, str_hash_fn, str_eq); in ext_pcm_open()
149 shared_ext_pcm->run_mixer = true; in ext_pcm_open()
[all …]