Home
last modified time | relevance | path

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

/hardware/qcom/audio/hal/
Daudio_hw.c256 struct audio_usecase *usecase) in enable_audio_route() argument
261 if (usecase == NULL) in enable_audio_route()
264 ALOGV("%s: enter: usecase(%d)", __func__, usecase->id); in enable_audio_route()
266 if (usecase->type == PCM_CAPTURE) in enable_audio_route()
267 snd_device = usecase->in_snd_device; in enable_audio_route()
269 snd_device = usecase->out_snd_device; in enable_audio_route()
271 strcpy(mixer_path, use_case_table[usecase->id]); in enable_audio_route()
281 struct audio_usecase *usecase) in disable_audio_route() argument
286 if (usecase == NULL) in disable_audio_route()
289 ALOGV("%s: enter: usecase(%d)", __func__, usecase->id); in disable_audio_route()
[all …]
Dplatform_api.h26 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type);
60 int64_t platform_render_latency(audio_usecase_t usecase);
74 int platform_get_usecase_index(const char * usecase);
75 int platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t pcm_id);
Dvoice.c291 in->usecase = USECASE_INCALL_REC_UPLINK; in voice_check_and_set_incall_rec_usecase()
295 in->usecase = USECASE_INCALL_REC_DOWNLINK; in voice_check_and_set_incall_rec_usecase()
299 in->usecase = USECASE_INCALL_REC_UPLINK_AND_DOWNLINK; in voice_check_and_set_incall_rec_usecase()
311 ALOGV("%s: Update usecase to %d",__func__, in->usecase); in voice_check_and_set_incall_rec_usecase()
524 struct audio_usecase *usecase; in voice_update_devices_for_all_voice_usecases() local
527 usecase = node_to_item(node, struct audio_usecase, list); in voice_update_devices_for_all_voice_usecases()
528 if (usecase->type == VOICE_CALL) { in voice_update_devices_for_all_voice_usecases()
530 use_case_table[usecase->id]); in voice_update_devices_for_all_voice_usecases()
531 usecase->stream.out = adev->current_call_output; in voice_update_devices_for_all_voice_usecases()
532 select_devices(adev, usecase->id); in voice_update_devices_for_all_voice_usecases()
Daudio_hw.h141 audio_usecase_t usecase; member
175 audio_usecase_t usecase; member
272 struct audio_usecase *usecase);
281 struct audio_usecase *usecase);
/hardware/qcom/audio/hal/audio_extn/
Dext_speaker.c125 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()
/hardware/qcom/audio/hal/msm8960/
Dplatform.c403 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()
986 int64_t platform_render_latency(audio_usecase_t usecase) in platform_render_latency() argument
988 switch (usecase) { in platform_render_latency()
1017 int platform_get_usecase_index(const char * usecase __unused) in platform_get_usecase_index()
1022 int platform_set_usecase_pcm_id(audio_usecase_t usecase __unused, int32_t type __unused, in platform_set_usecase_pcm_id()
1045 struct audio_usecase *usecase; in platform_swap_lr_channels() local
1054 usecase = node_to_item(node, struct audio_usecase, list); in platform_swap_lr_channels()
1055 if (usecase->type == PCM_PLAYBACK && in platform_swap_lr_channels()
[all …]
/hardware/qcom/audio/hal/msm8974/
Dplatform.c572 struct audio_usecase *usecase; in platform_send_gain_dep_cal() local
586 usecase = node_to_item(node, struct audio_usecase, list); in platform_send_gain_dep_cal()
588 if (usecase != NULL && in platform_send_gain_dep_cal()
589 usecase->type == PCM_PLAYBACK && in platform_send_gain_dep_cal()
590 (usecase->stream.out->devices == AUDIO_DEVICE_OUT_SPEAKER)) { in platform_send_gain_dep_cal()
592 ALOGV("%s: out device is %d", __func__, usecase->out_snd_device); in platform_send_gain_dep_cal()
594 acdb_dev_id = audio_extn_spkr_prot_get_acdb_id(usecase->out_snd_device); in platform_send_gain_dep_cal()
596 acdb_dev_id = acdb_device_table[usecase->out_snd_device]; in platform_send_gain_dep_cal()
1227 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) in platform_get_pcm_device_id() argument
1231 device_id = pcm_device_table[usecase][0]; in platform_get_pcm_device_id()
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Dmsm8960_use_cases.h300 const char *value, const char *usecase);
301 static int get_usecase_type(snd_use_case_mgr_t *uc_mgr, const char *usecase);
Dalsa_ucm.c1282 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/
Dvoice_extn.c559 out->usecase = USECASE_INCALL_MUSIC_UPLINK; in voice_extn_check_and_set_incall_music_usecase()
561 out->usecase = USECASE_INCALL_MUSIC_UPLINK2; in voice_extn_check_and_set_incall_music_usecase()