Home
last modified time | relevance | path

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

/hardware/qcom/audio/hal/audio_extn/
Dutils.c120 struct audio_usecase *usecase) in audio_extn_utils_send_app_type_cfg_hfp() argument
123 int pcm_device_id, acdb_dev_id = 0, snd_device = usecase->out_snd_device; in audio_extn_utils_send_app_type_cfg_hfp()
129 if (usecase->type != PCM_HFP_CALL) { in audio_extn_utils_send_app_type_cfg_hfp()
134 if ((usecase->id != USECASE_AUDIO_HFP_SCO) && in audio_extn_utils_send_app_type_cfg_hfp()
135 (usecase->id != USECASE_AUDIO_HFP_SCO_WB)) { in audio_extn_utils_send_app_type_cfg_hfp()
141 snd_device = usecase->out_snd_device; in audio_extn_utils_send_app_type_cfg_hfp()
142 pcm_device_id = platform_get_pcm_device_id(usecase->id, PCM_PLAYBACK); in audio_extn_utils_send_app_type_cfg_hfp()
151 if (usecase->type == PCM_HFP_CALL) { in audio_extn_utils_send_app_type_cfg_hfp()
178 snd_device = usecase->in_snd_device; in audio_extn_utils_send_app_type_cfg_hfp()
212 struct audio_usecase *usecase, in derive_capture_app_type_cfg() argument
[all …]
Dmaxxaudio.c243 static inline bool valid_usecase(struct audio_usecase *usecase) in valid_usecase() argument
245 if ((usecase->type == PCM_PLAYBACK) && in valid_usecase()
247 ((usecase->id == USECASE_AUDIO_PLAYBACK_DEEP_BUFFER) || in valid_usecase()
248 (usecase->id == USECASE_AUDIO_PLAYBACK_LOW_LATENCY) || in valid_usecase()
249 (usecase->id == USECASE_AUDIO_PLAYBACK_OFFLOAD)) && in valid_usecase()
251 ((usecase->devices & AUDIO_DEVICE_OUT_SPEAKER) || in valid_usecase()
252 (usecase->devices & AUDIO_DEVICE_OUT_SPEAKER_SAFE) || in valid_usecase()
253 (audio_is_usb_out_device(usecase->devices) && in valid_usecase()
260 __func__, usecase->type, usecase->id, usecase->devices); in valid_usecase()
292 struct audio_usecase *usecase; in check_and_send_all_audio_cal() local
[all …]
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()
Dmaxxaudio.h24 #define audio_extn_ma_set_device(usecase) (0) argument
32 void audio_extn_ma_set_device(struct audio_usecase *usecase);
Dtfa_98xx.c182 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()
Dsoundtrigger.c114 struct audio_hal_usecase usecase; member
180 static int populate_usecase(struct audio_hal_usecase *usecase, in populate_usecase() argument
188 usecase->type = USECASE_TYPE_VOIP_CALL; in populate_usecase()
190 usecase->type = USECASE_TYPE_PCM_PLAYBACK; in populate_usecase()
195 usecase->type = USECASE_TYPE_VOIP_CALL; in populate_usecase()
197 usecase->type = USECASE_TYPE_PCM_CAPTURE; in populate_usecase()
201 usecase->type = USECASE_TYPE_VOICE_CALL; in populate_usecase()
432 if (!populate_usecase(&ev_info.u.usecase, uc_info)) { in audio_extn_sound_trigger_update_stream_status()
Daudio_extn.h188 struct audio_usecase *usecase);
190 struct audio_usecase *usecase);
/hardware/qcom/audio/hal/
Daudio_hw.c392 if (out->usecase == USECASE_AUDIO_PLAYBACK_OFFLOAD) in register_out_stream()
649 struct audio_usecase *usecase) in enable_audio_route() argument
654 if (usecase == NULL) in enable_audio_route()
657 ALOGV("%s: enter: usecase(%d)", __func__, usecase->id); in enable_audio_route()
659 audio_extn_sound_trigger_update_stream_status(usecase, ST_EVENT_STREAM_BUSY); in enable_audio_route()
661 if (usecase->type == PCM_CAPTURE) { in enable_audio_route()
662 struct stream_in *in = usecase->stream.in; in enable_audio_route()
664 snd_device = usecase->in_snd_device; in enable_audio_route()
691 snd_device = usecase->out_snd_device; in enable_audio_route()
692 audio_extn_utils_send_app_type_cfg(adev, usecase); in enable_audio_route()
[all …]
Dplatform_api.h69 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type);
80 int platform_send_audio_calibration_v2(void *platform, struct audio_usecase *usecase,
130 int64_t platform_render_latency(audio_usecase_t usecase);
151 int platform_get_usecase_index(const char * usecase);
152 int platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t pcm_id);
166 struct audio_usecase *usecase, snd_device_t snd_device);
169 struct audio_usecase *usecase, snd_device_t snd_device);
200 audio_usecase_t usecase,
Dvoice.c302 in->usecase = USECASE_INCALL_REC_UPLINK; in voice_check_and_set_incall_rec_usecase()
306 in->usecase = USECASE_INCALL_REC_DOWNLINK; in voice_check_and_set_incall_rec_usecase()
310 in->usecase = USECASE_INCALL_REC_UPLINK_AND_DOWNLINK; in voice_check_and_set_incall_rec_usecase()
326 ALOGV("%s: Update usecase to %d",__func__, in->usecase); in voice_check_and_set_incall_rec_usecase()
366 struct audio_usecase *usecase = NULL; in voice_set_mic_mute() local
569 struct audio_usecase *usecase; in voice_update_devices_for_all_voice_usecases() local
572 usecase = node_to_item(node, struct audio_usecase, list); in voice_update_devices_for_all_voice_usecases()
573 if (usecase->type == VOICE_CALL) { in voice_update_devices_for_all_voice_usecases()
575 use_case_table[usecase->id]); in voice_update_devices_for_all_voice_usecases()
576 usecase->stream.out = adev->current_call_output; in voice_update_devices_for_all_voice_usecases()
[all …]
Daudio_hw.h229 audio_usecase_t usecase; member
287 audio_usecase_t usecase; member
438 struct audio_usecase *usecase);
447 struct audio_usecase *usecase);
/hardware/qcom/audio/hal/msm8960/
Dplatform.c417 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) in platform_get_pcm_device_id() argument
421 device_id = pcm_device_table[usecase][0]; in platform_get_pcm_device_id()
423 device_id = pcm_device_table[usecase][1]; in platform_get_pcm_device_id()
1030 int64_t platform_render_latency(audio_usecase_t usecase) in platform_render_latency() argument
1032 switch (usecase) { in platform_render_latency()
1061 int platform_get_usecase_index(const char * usecase __unused) in platform_get_usecase_index()
1066 int platform_set_usecase_pcm_id(audio_usecase_t usecase __unused, int32_t type __unused, in platform_set_usecase_pcm_id()
1188 struct audio_usecase *usecase; in platform_check_and_set_swap_lr_channels() local
1200 struct audio_usecase *usecase; in platform_set_swap_channels() local
1212 usecase = node_to_item(node, struct audio_usecase, list); in platform_set_swap_channels()
[all …]
/hardware/qcom/audio/hal/msm8974/
Dplatform.c1057 struct audio_usecase *usecase; in platform_send_gain_dep_cal() local
1072 usecase = node_to_item(node, struct audio_usecase, list); in platform_send_gain_dep_cal()
1073 LOG_ALWAYS_FATAL_IF(usecase == NULL, in platform_send_gain_dep_cal()
1075 valid_uc_type = usecase->type == PCM_PLAYBACK; in platform_send_gain_dep_cal()
1078 audio_devices_t dev = usecase->stream.out->devices; in platform_send_gain_dep_cal()
1085 ALOGV("%s: out device is %d", __func__, usecase->out_snd_device); in platform_send_gain_dep_cal()
1087 app_type = usecase->stream.out->app_type_cfg.app_type; in platform_send_gain_dep_cal()
1091 acdb_dev_id = platform_get_snd_device_acdb_id(usecase->out_snd_device); in platform_send_gain_dep_cal()
2150 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) in platform_get_pcm_device_id() argument
2154 device_id = pcm_device_table[usecase][0]; in platform_get_pcm_device_id()
[all …]
/hardware/qcom/audio/hal/msm8916/
Dplatform.c1318 struct audio_usecase *usecase __unused, in platform_check_and_set_playback_backend_cfg()
1325 struct audio_usecase *usecase __unused, in platform_check_and_set_capture_backend_cfg()
1395 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) in platform_get_pcm_device_id() argument
1400 device_id = pcm_device_table[usecase][0]; in platform_get_pcm_device_id()
1402 device_id = pcm_device_table[usecase][1]; in platform_get_pcm_device_id()
2563 int64_t platform_render_latency(audio_usecase_t usecase)
2565 switch (usecase) {
2604 int platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t pcm_id)
2607 if ((usecase <= USECASE_INVALID) || (usecase >= AUDIO_USECASE_MAX)) {
2608 ALOGE("%s: invalid usecase case idx %d", __func__, usecase);
[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.c581 out->usecase = USECASE_INCALL_MUSIC_UPLINK; in voice_extn_check_and_set_incall_music_usecase()
583 out->usecase = USECASE_INCALL_MUSIC_UPLINK2; in voice_extn_check_and_set_incall_music_usecase()
586 out->usecase = USECASE_INCALL_MUSIC_UPLINK; in voice_extn_check_and_set_incall_music_usecase()
595 ALOGV("%s: mode=%d, usecase id=%d", __func__, adev->mode, out->usecase); in voice_extn_check_and_set_incall_music_usecase()
/hardware/knowles/athletico/sound_trigger_hal/
Dsound_trigger_intf.h142 struct audio_hal_usecase usecase; member
Dsound_trigger_hw_iaxxx.c1376 (config->u.usecase.type == USECASE_TYPE_VOICE_CALL || in update_sthal_conditions()
1377 config->u.usecase.type == USECASE_TYPE_VOIP_CALL)) { in update_sthal_conditions()
1382 if (config->u.usecase.type == USECASE_TYPE_PCM_CAPTURE) { in update_sthal_conditions()
1394 (config->u.usecase.type == USECASE_TYPE_VOICE_CALL || in update_sthal_conditions()
1395 config->u.usecase.type == USECASE_TYPE_VOIP_CALL)) { in update_sthal_conditions()
1398 } else if (config->u.usecase.type == USECASE_TYPE_PCM_CAPTURE) in update_sthal_conditions()
1401 if (config->u.usecase.type == USECASE_TYPE_VOICE_CALL || in update_sthal_conditions()
1402 config->u.usecase.type == USECASE_TYPE_VOIP_CALL) { in update_sthal_conditions()
3579 __func__, event, config->u.usecase.type); in sound_trigger_hw_call_back()
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.cpp164 config->ext.mix.useCase.stream = AudioStreamType(halConfig.ext.mix.usecase.stream); in audioPortConfigFromHal()
166 config->ext.mix.useCase.source = AudioSource(halConfig.ext.mix.usecase.source); in audioPortConfigFromHal()
202 halConfig->ext.mix.usecase.stream = in audioPortConfigToHal()
205 halConfig->ext.mix.usecase.source = in audioPortConfigToHal()