| /hardware/qcom/audio/hal/audio_extn/ |
| ext_speaker.c | 37 struct audio_device *adev; member in struct:speaker_data 101 void *audio_extn_extspk_init(struct audio_device *adev) 106 data->adev = adev; 126 list_for_each(node, &data->adev->usecase_list) { 129 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) { 134 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) {
|
| soundtrigger.c | 48 struct audio_device *adev; member in struct:sound_trigger_audio_device 248 void audio_extn_sound_trigger_set_parameters(struct audio_device *adev __unused, 296 int audio_extn_sound_trigger_init(struct audio_device *adev) 334 st_dev->adev = adev; 348 void audio_extn_sound_trigger_deinit(struct audio_device *adev) 351 if (st_dev && (st_dev->adev == adev) && st_dev->lib_handle) {
|
| spkr_protection.c | 138 void audio_extn_spkr_prot_calib_cancel(void *adev) 145 if (pthread_equal(handle.speaker_prot_threadid, threadid) || !adev) { 149 uc_info = get_usecase_from_list(adev, USECASE_AUDIO_SPKR_CALIB_RX); 273 static int vi_feed_get_channels(struct audio_device *adev) 280 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); 295 // must be called with adev->lock acquired 298 struct audio_device *adev = handle.adev_handle; local 308 if (!adev) { 312 if (!list_empty(&adev->usecase_list)) { 339 uc_info_rx->stream.out = adev->primary_output 530 struct audio_device *adev = handle.adev_handle; local 805 struct audio_device *adev = handle.adev_handle; local 877 struct audio_device *adev = handle.adev_handle; local [all...] |
| /device/asus/fugu/libaudio/ |
| audio_hal_thunks.cpp | 378 const struct atv_audio_device* adev = local 381 return adev->output->setParameters(kvpairs); 388 const struct atv_audio_device* adev = local 391 return adev->output->getParameters(keys); 410 const struct atv_audio_device* adev = local 413 return adev->input->setMicMute(state); 418 const struct atv_audio_device* adev = local 421 return adev->input->getMicMute(state); 427 const struct atv_audio_device* adev = local 430 return adev->input->getInputBufferSize(config) 445 struct atv_audio_device* adev = local 499 struct atv_audio_device* adev = local 518 struct atv_audio_device* adev = local 583 struct atv_audio_device* adev = local 594 const struct atv_audio_device* adev = local 602 struct atv_audio_device* adev = local 611 struct atv_audio_device* adev = local 619 struct atv_audio_device* adev = local 628 struct atv_audio_device* adev = local 636 const struct atv_audio_device* adev = local 648 struct atv_audio_device* adev = local 661 struct atv_audio_device* adev = NULL; local [all...] |
| /hardware/libhardware/modules/audio/ |
| audio_hw.c | 485 struct stub_audio_device *adev; local 491 adev = calloc(1, sizeof(struct stub_audio_device)); 492 if (!adev) 495 adev->device.common.tag = HARDWARE_DEVICE_TAG; 496 adev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0; 497 adev->device.common.module = (struct hw_module_t *) module; 498 adev->device.common.close = adev_close; 500 adev->device.init_check = adev_init_check; 501 adev->device.set_voice_volume = adev_set_voice_volume; 502 adev->device.set_master_volume = adev_set_master_volume [all...] |
| /device/generic/goldfish/audio/ |
| audio_hw.c | 187 struct generic_audio_device *adev = out->dev; local 189 pthread_mutex_lock(&adev->lock); 190 if (adev->fd >= 0) 191 bytes = write(adev->fd, buffer, bytes); 192 pthread_mutex_unlock(&adev->lock); 339 struct generic_audio_device *adev = in->dev; local 341 pthread_mutex_lock(&adev->lock); 342 if (adev->fd >= 0) 343 bytes = read(adev->fd, buffer, bytes); 344 if (adev->mic_mute && (bytes > 0)) 377 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 433 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 456 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 498 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 508 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 532 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 586 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 598 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 623 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 638 struct generic_audio_device *adev; local [all...] |
| /device/linaro/hikey/audio/ |
| audio_hw.c | 91 struct alsa_audio_device *adev = out->dev; local 108 adev->active_output = NULL; 113 adev->active_output = out; 163 struct alsa_audio_device *adev = out->dev; local 168 adev->active_output = NULL; 198 struct alsa_audio_device *adev = out->dev; local 209 pthread_mutex_lock(&adev->lock); 211 if (((adev->devices & AUDIO_DEVICE_OUT_ALL) != val) && (val != 0)) { 212 adev->devices &= ~AUDIO_DEVICE_OUT_ALL; 213 adev->devices |= val 248 struct alsa_audio_device *adev = out->dev; local 643 struct alsa_audio_device *adev; local [all...] |
| /hardware/intel/audio_media/hdmi/ |
| tinyaudio_hw.c | 226 struct audio_device *adev = out->dev; local 230 if ((adev->card < 0) || (adev->device < 0)){ 233 adev->card = DEFAULT_CARD; 234 adev->device = DEFAULT_DEVICE; 235 ALOGV("%s : Setting default card/ device %d,%d",__func__,adev->card,adev->device); 257 adev->card = get_card_number_by_name("IntelHDMI"); 258 ALOGD("%s: HDMI card number = %d, device = %d",__func__,adev->card,adev->device) 379 struct audio_device *adev = out->dev; local 473 struct audio_device *adev = out->dev; local 496 struct audio_device *adev = out->dev; local 684 struct audio_device *adev = (struct audio_device *)dev; local 916 struct audio_device *adev; local [all...] |
| /hardware/bsp/intel/peripheral/audio/generic/ |
| audio_hal.c | 592 struct audio_device *adev = (struct audio_device *)dev; local 622 out->dev = adev; 623 pthread_mutex_lock(&adev->lock); 624 out->profile = &adev->out_profile; 635 pthread_mutex_unlock(&adev->lock); 1116 struct audio_device * adev = (struct audio_device *)dev; local 1146 struct audio_device * adev = (struct audio_device *)dev; local 1165 struct audio_device *adev = (struct audio_device *)device; local 1180 struct audio_device *adev = calloc(1, sizeof(struct audio_device)); local [all...] |
| /hardware/libhardware/modules/usbaudio/ |
| audio_hal.c | 85 struct audio_device *adev; /* hardware information - only using this for the lock */ member in struct:stream_out 116 struct audio_device *adev; /* hardware information - only using this for the lock */ member in struct:stream_in 166 static void device_lock(struct audio_device *adev) { 167 pthread_mutex_lock(&adev->lock); 170 static int device_try_lock(struct audio_device *adev) { 171 return pthread_mutex_trylock(&adev->lock); 174 static void device_unlock(struct audio_device *adev) { 175 pthread_mutex_unlock(&adev->lock); 182 struct audio_device* adev, struct listnode* list, struct listnode* stream_node) { 183 device_lock(adev); 1128 struct audio_device * adev = (struct audio_device *)hw_dev; local 1144 struct audio_device* adev = (struct audio_device*)device; local 1189 struct audio_device *adev = (struct audio_device *)device; local 1200 struct audio_device *adev = calloc(1, sizeof(struct audio_device)); local [all...] |
| /hardware/qcom/audio/hal/msm8960/ |
| platform.c | 79 struct audio_device *adev; member in struct:platform_data 257 void *platform_init(struct audio_device *adev) 264 adev->mixer = mixer_open(MIXER_CARD); 266 if (!adev->mixer) { 271 adev->audio_route = audio_route_init(MIXER_CARD, MIXER_XML_PATH); 272 if (!adev->audio_route) { 279 my_data->adev = adev; 288 adev->acdb_settings |= DMIC_FLAG; 291 adev->acdb_settings |= DMIC_FLAG 612 struct audio_device *adev = my_data->adev; local 706 struct audio_device *adev = my_data->adev; local 876 struct audio_device *adev = my_data->adev; local [all...] |
| /system/bt/audio_a2dp_hw/ |
| audio_a2dp_hw.c | 1400 struct a2dp_audio_device *adev; local [all...] |
| /device/google/dragon/audio/hal/ |
| audio_hw.c | 273 struct mixer_card *adev_get_mixer_for_card(struct audio_device *adev, int card) 278 list_for_each(node, &adev->mixer_list) { 299 void free_mixer_list(struct audio_device *adev) 305 list_for_each_safe(node, next, &adev->mixer_list) { 313 int mixer_init(struct audio_device *adev) 324 list_init(&adev->mixer_list); 328 if (adev_get_mixer_for_card(adev, card) == NULL) { 353 list_add_tail(&adev->mixer_list, &mixer_card->adev_list_node); 360 free_mixer_list(adev); 404 static struct audio_usecase *get_usecase_from_id(struct audio_device *adev, 1277 struct audio_device *adev = in->dev; local 1312 struct audio_device *adev = in->dev; local 1524 struct audio_device *adev = out->dev; local 1558 struct audio_device *adev = out->dev; local 1614 struct audio_device *adev = out->dev; local 1633 struct audio_device *adev = out->dev; local 1653 struct audio_device *adev = out->dev; local 1668 struct audio_device *adev = out->dev; local 1843 struct audio_device *adev = out->dev; local 1856 struct audio_device *adev = out->dev; local 1882 struct audio_device *adev = out->dev; local 2026 struct audio_device *adev = out->dev; local 2063 struct audio_device *adev = out->dev; local 2339 struct audio_device *adev = in->dev; local 2381 struct audio_device *adev = in->dev; local 2396 struct audio_device *adev = in->dev; local 2417 struct audio_device *adev = in->dev; local 2505 struct audio_device *adev = in->dev; local 2521 struct audio_device *adev = in->dev; local 2598 struct audio_device *adev = in->dev; local 2692 struct audio_device *adev = (struct audio_device *)dev; local 2798 struct audio_device *adev = out->dev; local 2813 struct audio_device *adev = (struct audio_device *)dev; local 2921 struct audio_device *adev = (struct audio_device *)dev; local 2965 struct audio_device *adev = (struct audio_device *)dev; local 2978 struct audio_device *adev = (struct audio_device *)dev; local 2994 struct audio_device *adev = (struct audio_device *)dev; local 3025 struct audio_device *adev = (struct audio_device *)dev; local 3092 struct audio_device *adev = (struct audio_device *)dev; local 3141 struct audio_device *adev = (struct audio_device *)device; local 3151 struct audio_device *adev; local [all...] |
| /hardware/qcom/audio/hal/msm8916/ |
| platform.c | 120 struct audio_device *adev; member in struct:platform_data 605 void platform_set_echo_reference(struct audio_device *adev, bool enable, 608 struct platform_data *my_data = (struct platform_data *)adev->platform; 613 audio_route_reset_and_update_path(adev->audio_route, 619 snd_device = platform_get_output_snd_device(adev->platform, out_device); 620 platform_add_backend_name(adev->platform, my_data->ec_ref_mixer_path, snd_device); 627 audio_route_apply_and_update_path(adev->audio_route, 660 void get_cvd_version(char *cvd_version, struct audio_device *adev) 666 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL); 764 fd = hw_util_open(plat_data->adev->snd_card) 1337 struct audio_device *adev = my_data->adev; local 1366 struct audio_device *adev = my_data->adev; local 1392 struct audio_device *adev = my_data->adev; local 1461 struct audio_device *adev = my_data->adev; local 1586 struct audio_device *adev = my_data->adev; local 1878 struct audio_device *adev = my_data->adev; local 1912 struct audio_device *adev = my_data->adev; local 1970 struct audio_device *adev = my_data->adev; local [all...] |
| /hardware/qcom/audio/hal/msm8974/ |
| platform.c | 112 struct audio_device *adev; member in struct:platform_data 627 struct audio_device *adev = my_data->adev; local 639 if (!voice_is_in_call(adev)) { 645 list_for_each(node, &adev->usecase_list) { 677 void platform_set_echo_reference(struct audio_device *adev, bool enable, audio_devices_t out_device) 679 struct platform_data *my_data = (struct platform_data *)adev->platform; 684 audio_route_reset_and_update_path(adev->audio_route, my_data->ec_ref_mixer_path); 690 snd_device = platform_get_output_snd_device(adev->platform, out_device); 691 platform_add_backend_name(adev->platform, my_data->ec_ref_mixer_path, snd_device) 963 struct audio_device *adev = my_data->adev; local 1757 struct audio_device *adev = my_data->adev; local 1793 struct audio_device *adev = my_data->adev; local 1831 struct audio_device *adev = my_data->adev; local 1911 struct audio_device *adev = my_data->adev; local 2039 struct audio_device *adev = my_data->adev; local 2375 struct audio_device *adev = my_data->adev; local 2409 struct audio_device *adev = my_data->adev; local 2466 struct audio_device *adev = my_data->adev; local 2853 struct audio_device *adev = my_data->adev; local [all...] |
| /device/htc/flounder/audio/hal/ |
| 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) 310 list_for_each(node, &adev->mixer_list) { 331 static void free_mixer_list(struct audio_device *adev) 337 list_for_each_safe(node, next, &adev->mixer_list) { 345 static int mixer_init(struct audio_device *adev) 356 list_init(&adev->mixer_list); 360 if (adev_get_mixer_for_card(adev, card) == NULL) { 385 list_add_tail(&adev->mixer_list, &mixer_card->adev_list_node); 392 free_mixer_list(adev); 1189 struct audio_device *adev = in->dev; local 1904 struct audio_device *adev = in->dev; local 1947 struct audio_device *adev = in->dev; local 2300 struct audio_device *adev = out->dev; local 2373 struct audio_device *adev = out->dev; local 2392 struct audio_device *adev = out->dev; local 2411 struct audio_device *adev = out->dev; local 2436 struct audio_device *adev = out->dev; local 2640 struct audio_device *adev = out->dev; local 2675 struct audio_device *adev = out->dev; local 2734 struct audio_device *adev = out->dev; local 2901 struct audio_device *adev = out->dev; local 2942 struct audio_device *adev = (struct audio_device *)context; local 2983 struct audio_device *adev = out->dev; local 3483 struct audio_device *adev = in->dev; local 3506 struct audio_device *adev = in->dev; local 3545 struct audio_device *adev = in->dev; local 3560 struct audio_device *adev = in->dev; local 3581 struct audio_device *adev = in->dev; local 3670 struct audio_device *adev = in->dev; local 3685 struct audio_device *adev = in->dev; local 3774 struct audio_device *adev = in->dev; local 3886 struct audio_device *adev = (struct audio_device *)dev; local 4045 struct audio_device *adev = out->dev; local 4064 struct audio_device *adev = (struct audio_device *)dev; local 4181 struct audio_device *adev = (struct audio_device *)dev; local 4225 struct audio_device *adev = (struct audio_device *)dev; local 4241 struct audio_device *adev = (struct audio_device *)dev; local 4257 struct audio_device *adev = (struct audio_device *)dev; local 4288 struct audio_device *adev = (struct audio_device *)dev; local 4366 struct audio_device *adev = (struct audio_device *)dev; local 4424 struct audio_device *adev = (struct audio_device *)device; local 4436 struct audio_device *adev = (struct audio_device *)context; local 4616 struct audio_device *adev; local [all...] |
| /hardware/qcom/audio/hal/ |
| audio_hw.c | 232 static int set_voice_volume_l(struct audio_device *adev, float volume); 233 static struct audio_device *adev = NULL; variable in typeref:struct:audio_device 239 static bool may_use_noirq_mode(struct audio_device *adev, audio_usecase_t uc_id, 254 if (adev->adm_is_noirq_avail) 255 return adev->adm_is_noirq_avail(adev->adm_data, 256 adev->snd_card, dev_id, dir); 262 struct audio_device *adev = out->dev; local 266 if (!adev->adm_register_output_stream) 269 adev->adm_register_output_stream(adev->adm_data 285 struct audio_device *adev = in->dev; local 306 struct audio_device *adev = out->dev; local 323 struct audio_device *adev = in->dev; local 340 struct audio_device *adev = out->dev; local 348 struct audio_device *adev = in->dev; local 1193 struct audio_device *adev = in->dev; local 1224 struct audio_device *adev = in->dev; local 1566 struct audio_device *adev = out->dev; local 1607 struct audio_device *adev = out->dev; local 1835 struct audio_device *adev = out->dev; local 1872 struct audio_device *adev = out->dev; local 1953 struct audio_device *adev = out->dev; local 2115 struct audio_device *adev = out->dev; local 2148 struct audio_device *adev = out->dev; local 2198 struct audio_device *adev = out->dev; local 2511 struct audio_device *adev = in->dev; local 2551 struct audio_device *adev = in->dev; local 2614 struct audio_device *adev = in->dev; local 2649 struct audio_device *adev = in->dev; local 2763 struct audio_device *adev = in->dev; local 2831 struct audio_device *adev = (struct audio_device *)dev; local 3079 struct audio_device *adev = out->dev; local 3105 struct audio_device *adev = (struct audio_device *)dev; local 3179 struct audio_device *adev = (struct audio_device *)dev; local 3204 struct audio_device *adev = (struct audio_device *)dev; local 3238 struct audio_device *adev = (struct audio_device *)dev; local 3260 struct audio_device *adev = (struct audio_device *)dev; local 3295 struct audio_device *adev = (struct audio_device *)dev; local 3599 struct audio_device *adev = (struct audio_device *)device; local [all...] |