Lines Matching refs:usecase

243 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
298 usecase = node_to_item(node, struct audio_usecase, list); in check_and_send_all_audio_cal()
299 if (valid_usecase(usecase)) { in check_and_send_all_audio_cal()
300 ma_cal.common.app_type = usecase->stream.out->app_type_cfg.app_type; in check_and_send_all_audio_cal()
301 ma_cal.common.device = usecase->stream.out->devices; in check_and_send_all_audio_cal()
303 __func__, usecase->id, ma_cal.common.app_type, in check_and_send_all_audio_cal()
683 void audio_extn_ma_set_device(struct audio_usecase *usecase) in audio_extn_ma_set_device() argument
695 if (!valid_usecase(usecase)) { in audio_extn_ma_set_device()
696 ALOGV("%s: %d is not supported usecase", __func__, usecase->id); in audio_extn_ma_set_device()
703 ma_cal.common.app_type = usecase->stream.out->app_type_cfg.app_type; in audio_extn_ma_set_device()
704 ma_cal.common.device = usecase->stream.out->devices; in audio_extn_ma_set_device()
706 __func__, usecase->id, ma_cal.common.app_type, in audio_extn_ma_set_device()
715 ma_set_rotation_l(usecase->stream.out->dev, in audio_extn_ma_set_device()
718 ma_set_swap_l(usecase->stream.out->dev, my_data->speaker_lr_swap); in audio_extn_ma_set_device()
721 ma_set_rotation_l(usecase->stream.out->dev, 0); in audio_extn_ma_set_device()
723 ma_set_swap_l(usecase->stream.out->dev, false); in audio_extn_ma_set_device()