Searched refs:uc_info (Results 1 – 7 of 7) sorted by relevance
/hardware/qcom/audio/hal/audio_extn/ |
D | hfp.c | 247 struct audio_usecase *uc_info; in start_hfp() local 259 uc_info = (struct audio_usecase *)calloc(1, sizeof(struct audio_usecase)); in start_hfp() 260 uc_info->id = hfpmod.ucid; in start_hfp() 261 uc_info->type = PCM_HFP_CALL; in start_hfp() 262 uc_info->stream.out = adev->primary_output; in start_hfp() 263 uc_info->devices = adev->primary_output->devices; in start_hfp() 264 uc_info->in_snd_device = SND_DEVICE_NONE; in start_hfp() 265 uc_info->out_snd_device = SND_DEVICE_NONE; in start_hfp() 267 list_add_tail(&adev->usecase_list, &uc_info->list); in start_hfp() 273 pcm_dev_rx_id = platform_get_pcm_device_id(uc_info->id, PCM_PLAYBACK); in start_hfp() [all …]
|
D | soundtrigger.c | 181 struct audio_usecase *uc_info) in populate_usecase() argument 185 switch (uc_info->type) { in populate_usecase() 187 if (uc_info->id == USECASE_AUDIO_PLAYBACK_VOIP) in populate_usecase() 194 if (uc_info->id == USECASE_AUDIO_RECORD_VOIP) in populate_usecase() 205 ALOGE("%s: unsupported usecase type %d", __func__, uc_info->type); in populate_usecase() 398 void audio_extn_sound_trigger_update_stream_status(struct audio_usecase *uc_info, in audio_extn_sound_trigger_update_stream_status() argument 411 if (uc_info == NULL) { in audio_extn_sound_trigger_update_stream_status() 417 (uc_info->type == PCM_PLAYBACK && in audio_extn_sound_trigger_update_stream_status() 418 platform_snd_device_has_speaker(uc_info->out_snd_device)) || in audio_extn_sound_trigger_update_stream_status() 419 (uc_info->type == PCM_CAPTURE) || in audio_extn_sound_trigger_update_stream_status() [all …]
|
D | a2dp.c | 1545 struct audio_usecase *uc_info; in audio_extn_a2dp_set_parameters() local 1589 uc_info = node_to_item(node, struct audio_usecase, list); in audio_extn_a2dp_set_parameters() 1590 if (uc_info->type == PCM_PLAYBACK && in audio_extn_a2dp_set_parameters() 1591 (uc_info->stream.out->devices & AUDIO_DEVICE_OUT_ALL_A2DP)) { in audio_extn_a2dp_set_parameters() 1593 check_a2dp_restore(a2dp.adev, uc_info->stream.out, false); in audio_extn_a2dp_set_parameters() 1607 struct audio_usecase *uc_info; in audio_extn_a2dp_set_parameters() local 1646 uc_info = node_to_item(node, struct audio_usecase, list); in audio_extn_a2dp_set_parameters() 1647 if (uc_info->type == PCM_PLAYBACK && in audio_extn_a2dp_set_parameters() 1648 (uc_info->stream.out->devices & AUDIO_DEVICE_OUT_ALL_A2DP)) { in audio_extn_a2dp_set_parameters() 1650 check_a2dp_restore(a2dp.adev, uc_info->stream.out, true); in audio_extn_a2dp_set_parameters()
|
D | audio_extn.h | 121 #define audio_extn_sound_trigger_update_stream_status(uc_info, event) (0) argument 141 void audio_extn_sound_trigger_update_stream_status(struct audio_usecase *uc_info,
|
D | spkr_protection.c | 141 struct audio_usecase *uc_info; in audio_extn_spkr_prot_calib_cancel() local 149 uc_info = get_usecase_from_list(adev, USECASE_AUDIO_SPKR_CALIB_RX); in audio_extn_spkr_prot_calib_cancel() 150 if (uc_info) { in audio_extn_spkr_prot_calib_cancel()
|
/hardware/qcom/audio/hal/ |
D | voice.c | 105 struct audio_usecase *uc_info; in voice_stop_usecase() local 112 uc_info = get_usecase_from_list(adev, usecase_id); in voice_stop_usecase() 113 if (uc_info == NULL) { in voice_stop_usecase() 123 voice_set_sidetone(adev, uc_info->out_snd_device, false); in voice_stop_usecase() 138 disable_audio_route(adev, uc_info); in voice_stop_usecase() 141 disable_snd_device(adev, uc_info->out_snd_device); in voice_stop_usecase() 142 disable_snd_device(adev, uc_info->in_snd_device); in voice_stop_usecase() 149 list_remove(&uc_info->list); in voice_stop_usecase() 150 free(uc_info); in voice_stop_usecase() 159 struct audio_usecase *uc_info; in voice_start_usecase() local [all …]
|
D | audio_hw.c | 1130 struct audio_usecase *uc_info, in check_and_route_playback_usecases() argument 1139 uc_info, in check_and_route_playback_usecases() 1169 if (usecase->type == PCM_CAPTURE || usecase == uc_info) in check_and_route_playback_usecases() 1198 d_device = derive_playback_snd_device(usecase, uc_info, in check_and_route_playback_usecases() 1218 struct audio_usecase *uc_info, in check_and_route_capture_usecases() argument 1226 platform_check_and_set_capture_backend_cfg(adev, uc_info, snd_device); in check_and_route_capture_usecases() 1244 usecase != uc_info && in check_and_route_capture_usecases() 1246 ((uc_info->type == VOICE_CALL && in check_and_route_capture_usecases() 1865 struct audio_usecase *uc_info; in stop_input_stream() local 1872 uc_info = get_usecase_from_list(adev, in->usecase); in stop_input_stream() [all …]
|