Lines Matching refs:ma_cal
278 static void ma_cal_init(struct ma_audio_cal_settings *ma_cal) in ma_cal_init() argument
280 ma_cal->version.major = AUDIO_CAL_SETTINGS_VERSION_MAJOR_DEFAULT; in ma_cal_init()
281 ma_cal->version.minor = AUDIO_CAL_SETTINGS_VERSION_MINOR_DEFAULT; in ma_cal_init()
282 ma_cal->common.app_type = APP_TYPE_DEFAULT; in ma_cal_init()
283 ma_cal->common.device = DEVICE_DEFAULT; in ma_cal_init()
284 ma_cal->effect_scope_flag = EFFECTIVE_SCOPE_ALL; in ma_cal_init()
294 struct ma_audio_cal_settings ma_cal; in check_and_send_all_audio_cal() local
296 ma_cal_init(&ma_cal); in check_and_send_all_audio_cal()
301 ma_cal.common.app_type = usecase->stream.out->app_type_cfg.app_type; in check_and_send_all_audio_cal()
302 ma_cal.common.device = usecase->stream.out->devices; in check_and_send_all_audio_cal()
304 __func__, usecase->id, ma_cal.common.app_type, in check_and_send_all_audio_cal()
305 ma_cal.common.device); in check_and_send_all_audio_cal()
309 ret = ma_set_volume_table_l(&ma_cal, STREAM_MAX_TYPES, in check_and_send_all_audio_cal()
320 if (ma_cal.common.device & AUDIO_DEVICE_OUT_SPEAKER) { in check_and_send_all_audio_cal()
321 ret = ma_set_lr_swap_l(&ma_cal, true); in check_and_send_all_audio_cal()
330 ret = ma_set_lr_swap_l(&ma_cal, false); in check_and_send_all_audio_cal()
338 if (ma_cal.common.device & AUDIO_DEVICE_OUT_SPEAKER) { in check_and_send_all_audio_cal()
339 ret = ma_set_orientation_l(&ma_cal, my_data->dispaly_orientation); in check_and_send_all_audio_cal()
350 ret = ma_set_orientation_l(&ma_cal, 0); in check_and_send_all_audio_cal()
689 struct ma_audio_cal_settings ma_cal; in audio_extn_ma_set_device() local
701 ma_cal_init(&ma_cal); in audio_extn_ma_set_device()
704 ma_cal.common.app_type = usecase->stream.out->app_type_cfg.app_type; in audio_extn_ma_set_device()
705 ma_cal.common.device = usecase->stream.out->devices; in audio_extn_ma_set_device()
707 __func__, usecase->id, ma_cal.common.app_type, in audio_extn_ma_set_device()
708 ma_cal.common.device); in audio_extn_ma_set_device()
714 if (ma_cal.common.device & AUDIO_DEVICE_OUT_SPEAKER) { in audio_extn_ma_set_device()
727 if (!ma_set_volume_table_l(&ma_cal, in audio_extn_ma_set_device()