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.c30 static struct ext_pcm *shared_ext_pcm = NULL; variable
114 if (shared_ext_pcm == NULL) { in ext_pcm_open()
115 shared_ext_pcm = calloc(1, sizeof(struct ext_pcm)); in ext_pcm_open()
116 pthread_mutex_init(&shared_ext_pcm->lock, (const pthread_mutexattr_t *) NULL); in ext_pcm_open()
117 shared_ext_pcm->pcm = pcm_open(card, device, flags, config); in ext_pcm_open()
118 pthread_mutex_init(&shared_ext_pcm->mixer_lock, (const pthread_mutexattr_t *)NULL); in ext_pcm_open()
119 pthread_create(&shared_ext_pcm->mixer_thread, (const pthread_attr_t *)NULL, in ext_pcm_open()
120 mixer_thread_loop, shared_ext_pcm); in ext_pcm_open()
121 shared_ext_pcm->mixer_pipeline_map = hashmapCreate(8, str_hash_fn, str_eq); in ext_pcm_open()
125 pthread_mutex_lock(&shared_ext_pcm->lock); in ext_pcm_open()
[all …]