Searched refs:adev (Results 1 – 5 of 5) sorted by relevance
/device/generic/goldfish/audio/ |
D | audio_hw.c | 187 struct generic_audio_device *adev = out->dev; in out_write() local 189 pthread_mutex_lock(&adev->lock); in out_write() 190 if (adev->fd >= 0) in out_write() 191 bytes = write(adev->fd, buffer, bytes); in out_write() 192 pthread_mutex_unlock(&adev->lock); in out_write() 339 struct generic_audio_device *adev = in->dev; in in_read() local 341 pthread_mutex_lock(&adev->lock); in in_read() 342 if (adev->fd >= 0) in in_read() 343 bytes = read(adev->fd, buffer, bytes); in in_read() 344 if (adev->mic_mute && (bytes > 0)) { in in_read() [all …]
|
/device/google/dragon/audio/hal/ |
D | audio_hw.c | 273 struct mixer_card *adev_get_mixer_for_card(struct audio_device *adev, int card) in adev_get_mixer_for_card() argument 278 list_for_each(node, &adev->mixer_list) { in adev_get_mixer_for_card() 299 void free_mixer_list(struct audio_device *adev) in free_mixer_list() argument 305 list_for_each_safe(node, next, &adev->mixer_list) { in free_mixer_list() 313 int mixer_init(struct audio_device *adev) in mixer_init() argument 324 list_init(&adev->mixer_list); in mixer_init() 328 if (adev_get_mixer_for_card(adev, card) == NULL) { in mixer_init() 353 list_add_tail(&adev->mixer_list, &mixer_card->adev_list_node); in mixer_init() 360 free_mixer_list(adev); in mixer_init() 404 static struct audio_usecase *get_usecase_from_id(struct audio_device *adev, in get_usecase_from_id() argument [all …]
|
/device/asus/fugu/libaudio/ |
D | audio_hal_thunks.cpp | 378 const struct atv_audio_device* adev = in adev_set_parameters() local 381 return adev->output->setParameters(kvpairs); in adev_set_parameters() 388 const struct atv_audio_device* adev = in adev_get_parameters() local 391 return adev->output->getParameters(keys); in adev_get_parameters() 410 const struct atv_audio_device* adev = in adev_set_mic_mute() local 413 return adev->input->setMicMute(state); in adev_set_mic_mute() 418 const struct atv_audio_device* adev = in adev_get_mic_mute() local 421 return adev->input->getMicMute(state); in adev_get_mic_mute() 427 const struct atv_audio_device* adev = in adev_get_input_buffer_size() local 430 return adev->input->getInputBufferSize(config); in adev_get_input_buffer_size() [all …]
|
/device/htc/flounder/audio/hal/ |
D | audio_hw.c | 234 static void dummybuf_thread_close(struct audio_device *adev); 305 static struct mixer_card *adev_get_mixer_for_card(struct audio_device *adev, int card) in adev_get_mixer_for_card() argument 310 list_for_each(node, &adev->mixer_list) { in adev_get_mixer_for_card() 331 static void free_mixer_list(struct audio_device *adev) in free_mixer_list() argument 337 list_for_each_safe(node, next, &adev->mixer_list) { in free_mixer_list() 345 static int mixer_init(struct audio_device *adev) in mixer_init() argument 356 list_init(&adev->mixer_list); in mixer_init() 360 if (adev_get_mixer_for_card(adev, card) == NULL) { in mixer_init() 385 list_add_tail(&adev->mixer_list, &mixer_card->adev_list_node); in mixer_init() 392 free_mixer_list(adev); in mixer_init() [all …]
|
/device/linaro/hikey/audio/ |
D | audio_hw.c | 91 struct alsa_audio_device *adev = out->dev; in start_output_stream() local 108 adev->active_output = NULL; in start_output_stream() 113 adev->active_output = out; in start_output_stream() 163 struct alsa_audio_device *adev = out->dev; in do_output_standby() local 168 adev->active_output = NULL; in do_output_standby() 198 struct alsa_audio_device *adev = out->dev; in out_set_parameters() local 209 pthread_mutex_lock(&adev->lock); in out_set_parameters() 211 if (((adev->devices & AUDIO_DEVICE_OUT_ALL) != val) && (val != 0)) { in out_set_parameters() 212 adev->devices &= ~AUDIO_DEVICE_OUT_ALL; in out_set_parameters() 213 adev->devices |= val; in out_set_parameters() [all …]
|