/hardware/qcom/audio/hal/ |
D | audio_hw.c | 264 if (out->usecase == USECASE_AUDIO_PLAYBACK_OFFLOAD) in register_out_stream() 548 struct audio_usecase *usecase) in enable_audio_route() argument 553 if (usecase == NULL) in enable_audio_route() 556 ALOGV("%s: enter: usecase(%d)", __func__, usecase->id); in enable_audio_route() 558 if (usecase->type == PCM_CAPTURE) in enable_audio_route() 559 snd_device = usecase->in_snd_device; in enable_audio_route() 561 snd_device = usecase->out_snd_device; in enable_audio_route() 563 audio_extn_utils_send_app_type_cfg(adev, usecase); in enable_audio_route() 564 strcpy(mixer_path, use_case_table[usecase->id]); in enable_audio_route() 566 ALOGD("%s: usecase(%d) apply and update mixer path: %s", __func__, usecase->id, mixer_path); in enable_audio_route() [all …]
|
D | platform_api.h | 41 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type); 87 int64_t platform_render_latency(audio_usecase_t usecase); 101 int platform_get_usecase_index(const char * usecase); 102 int platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t pcm_id); 115 struct audio_usecase *usecase, snd_device_t snd_device);
|
D | voice.c | 299 in->usecase = USECASE_INCALL_REC_UPLINK; in voice_check_and_set_incall_rec_usecase() 303 in->usecase = USECASE_INCALL_REC_DOWNLINK; in voice_check_and_set_incall_rec_usecase() 307 in->usecase = USECASE_INCALL_REC_UPLINK_AND_DOWNLINK; in voice_check_and_set_incall_rec_usecase() 319 ALOGV("%s: Update usecase to %d",__func__, in->usecase); in voice_check_and_set_incall_rec_usecase() 533 struct audio_usecase *usecase; in voice_update_devices_for_all_voice_usecases() local 536 usecase = node_to_item(node, struct audio_usecase, list); in voice_update_devices_for_all_voice_usecases() 537 if (usecase->type == VOICE_CALL) { in voice_update_devices_for_all_voice_usecases() 539 use_case_table[usecase->id]); in voice_update_devices_for_all_voice_usecases() 540 usecase->stream.out = adev->current_call_output; in voice_update_devices_for_all_voice_usecases() 541 select_devices(adev, usecase->id); in voice_update_devices_for_all_voice_usecases()
|
D | audio_hw.h | 187 audio_usecase_t usecase; member 228 audio_usecase_t usecase; member 346 struct audio_usecase *usecase); 355 struct audio_usecase *usecase);
|
/hardware/qcom/audio/hal/audio_extn/ |
D | utils.c | 95 struct audio_usecase *usecase) in audio_extn_utils_send_app_type_cfg() argument 98 int pcm_device_id, acdb_dev_id = 0, snd_device = usecase->out_snd_device; in audio_extn_utils_send_app_type_cfg() 104 if (usecase->type != PCM_HFP_CALL) { in audio_extn_utils_send_app_type_cfg() 109 if ((usecase->id != USECASE_AUDIO_HFP_SCO) && in audio_extn_utils_send_app_type_cfg() 110 (usecase->id != USECASE_AUDIO_HFP_SCO_WB)) { in audio_extn_utils_send_app_type_cfg() 116 snd_device = usecase->out_snd_device; in audio_extn_utils_send_app_type_cfg() 117 pcm_device_id = platform_get_pcm_device_id(usecase->id, PCM_PLAYBACK); in audio_extn_utils_send_app_type_cfg() 128 if (usecase->type == PCM_HFP_CALL) { in audio_extn_utils_send_app_type_cfg() 151 snd_device = usecase->in_snd_device; in audio_extn_utils_send_app_type_cfg()
|
D | ext_speaker.c | 125 struct audio_usecase *usecase; in audio_extn_extspk_update() local 127 usecase = node_to_item(node, struct audio_usecase, list); in audio_extn_extspk_update() 128 if (usecase->devices & AUDIO_DEVICE_OUT_EARPIECE) { in audio_extn_extspk_update() 129 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) { in audio_extn_extspk_update() 133 if (usecase->devices & AUDIO_DEVICE_OUT_SPEAKER) { in audio_extn_extspk_update() 134 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) { in audio_extn_extspk_update()
|
D | tfa_98xx.c | 182 struct audio_usecase *usecase; in tfa_98xx_get_audio_mode() local 192 usecase = node_to_item(node, struct audio_usecase, list); in tfa_98xx_get_audio_mode() 193 if (usecase->devices & AUDIO_DEVICE_OUT_ALL_SCO) { in tfa_98xx_get_audio_mode() 194 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) { in tfa_98xx_get_audio_mode() 199 } else if (usecase->devices & AUDIO_DEVICE_OUT_SPEAKER) { in tfa_98xx_get_audio_mode() 202 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) { in tfa_98xx_get_audio_mode() 208 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) { in tfa_98xx_get_audio_mode() 215 if (data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) { in tfa_98xx_get_audio_mode()
|
D | audio_extn.h | 114 struct audio_usecase *usecase);
|
/hardware/qcom/audio/hal/msm8960/ |
D | platform.c | 403 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) in platform_get_pcm_device_id() argument 407 device_id = pcm_device_table[usecase][0]; in platform_get_pcm_device_id() 409 device_id = pcm_device_table[usecase][1]; in platform_get_pcm_device_id() 993 int64_t platform_render_latency(audio_usecase_t usecase) in platform_render_latency() argument 995 switch (usecase) { in platform_render_latency() 1024 int platform_get_usecase_index(const char * usecase __unused) in platform_get_usecase_index() 1029 int platform_set_usecase_pcm_id(audio_usecase_t usecase __unused, int32_t type __unused, in platform_set_usecase_pcm_id() 1052 struct audio_usecase *usecase; in platform_swap_lr_channels() local 1061 usecase = node_to_item(node, struct audio_usecase, list); in platform_swap_lr_channels() 1062 if (usecase->type == PCM_PLAYBACK && in platform_swap_lr_channels() [all …]
|
/hardware/qcom/audio/hal/msm8974/ |
D | platform.c | 634 struct audio_usecase *usecase; in platform_send_gain_dep_cal() local 648 usecase = node_to_item(node, struct audio_usecase, list); in platform_send_gain_dep_cal() 650 if (usecase != NULL && in platform_send_gain_dep_cal() 651 usecase->type == PCM_PLAYBACK && in platform_send_gain_dep_cal() 652 (usecase->stream.out->devices == AUDIO_DEVICE_OUT_SPEAKER)) { in platform_send_gain_dep_cal() 654 ALOGV("%s: out device is %d", __func__, usecase->out_snd_device); in platform_send_gain_dep_cal() 656 acdb_dev_id = audio_extn_spkr_prot_get_acdb_id(usecase->out_snd_device); in platform_send_gain_dep_cal() 658 acdb_dev_id = acdb_device_table[usecase->out_snd_device]; in platform_send_gain_dep_cal() 1435 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) in platform_get_pcm_device_id() argument 1439 device_id = pcm_device_table[usecase][0]; in platform_get_pcm_device_id() [all …]
|
/hardware/qcom/audio/hal/msm8916/ |
D | platform.c | 1097 struct audio_usecase *usecase __unused, in platform_check_and_set_capture_backend_cfg() 1163 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) in platform_get_pcm_device_id() argument 1168 device_id = pcm_device_table[usecase][0]; in platform_get_pcm_device_id() 1170 device_id = pcm_device_table[usecase][1]; in platform_get_pcm_device_id() 2121 int64_t platform_render_latency(audio_usecase_t usecase) in platform_render_latency() argument 2123 switch (usecase) { in platform_render_latency() 2162 int platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t pcm_id) in platform_set_usecase_pcm_id() argument 2165 if ((usecase <= USECASE_INVALID) || (usecase >= AUDIO_USECASE_MAX)) { in platform_set_usecase_pcm_id() 2166 ALOGE("%s: invalid usecase case idx %d", __func__, usecase); in platform_set_usecase_pcm_id() 2175 pcm_device_table[usecase][type] = pcm_id; in platform_set_usecase_pcm_id() [all …]
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
D | msm8960_use_cases.h | 300 const char *value, const char *usecase); 301 static int get_usecase_type(snd_use_case_mgr_t *uc_mgr, const char *usecase);
|
D | alsa_ucm.c | 1282 static int get_usecase_type(snd_use_case_mgr_t *uc_mgr, const char *usecase) in get_usecase_type() argument 1288 if (!strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], usecase, in get_usecase_type() 1289 (strlen(usecase)+1))) { in get_usecase_type() 1309 const char *device, const char *usecase, int enable) in set_controls_of_device_for_usecase() argument 1316 ALOGV("set_device_for_ident(): %s %s", device, usecase); in set_controls_of_device_for_usecase() 1323 if (usecase != NULL) { in set_controls_of_device_for_usecase() 1324 strlcpy(use_case, usecase, sizeof(use_case)); in set_controls_of_device_for_usecase() 1327 get_usecase_type(uc_mgr, usecase))) < 0) { in set_controls_of_device_for_usecase() 1343 get_usecase_type(uc_mgr, usecase), uc_index); in set_controls_of_device_for_usecase() 1607 const char *value, const char *usecase) in snd_use_case_set_case() argument [all …]
|
/hardware/qcom/audio/hal/voice_extn/ |
D | voice_extn.c | 583 out->usecase = USECASE_INCALL_MUSIC_UPLINK; in voice_extn_check_and_set_incall_music_usecase() 585 out->usecase = USECASE_INCALL_MUSIC_UPLINK2; in voice_extn_check_and_set_incall_music_usecase()
|