Lines Matching refs:cal

923 static int parse_audiocal_cfg(struct str_parms *parms, acdb_audio_cal_cfg_t *cal)  in parse_audiocal_cfg()  argument
929 if (parms == NULL || cal == NULL) in parse_audiocal_cfg()
935 cal->persist = (uint32_t)strtoul(value, NULL, 0); in parse_audiocal_cfg()
941 cal->app_type = (uint32_t)strtoul(value, NULL, 0); in parse_audiocal_cfg()
947 cal->cal_type = (uint32_t)strtoul(value, NULL, 0); in parse_audiocal_cfg()
953 cal->sampling_rate = (uint32_t)strtoul(value, NULL, 0); in parse_audiocal_cfg()
959 cal->dev_id = (uint32_t)strtoul(value, NULL, 0); in parse_audiocal_cfg()
965 cal->snd_dev_id = (uint32_t)strtoul(value, NULL, 0); in parse_audiocal_cfg()
971 cal->topo_id = (uint32_t)strtoul(value, NULL, 0); in parse_audiocal_cfg()
977 cal->module_id = (uint32_t)strtoul(value, NULL, 0); in parse_audiocal_cfg()
983 cal->param_id = (uint32_t)strtoul(value, NULL, 0); in parse_audiocal_cfg()
990 cal->instance_id = (uint32_t)strtoul(value, NULL, 0); in parse_audiocal_cfg()
1001 acdb_audio_cal_cfg_t cal; in set_audiocal() local
1011 memset(&cal, 0, sizeof(acdb_audio_cal_cfg_t)); in set_audiocal()
1013 ret = parse_audiocal_cfg(parms, &cal); in set_audiocal()
1041 if (cal.dev_id) { in set_audiocal()
1042 if (audio_is_input_device(cal.dev_id)) { in set_audiocal()
1045 cal.snd_dev_id = platform_get_input_snd_device(platform, NULL, cal.dev_id); in set_audiocal()
1047 cal.snd_dev_id = platform_get_output_snd_device(platform, cal.dev_id); in set_audiocal()
1050 cal.acdb_dev_id = platform_get_snd_device_acdb_id(cal.snd_dev_id); in set_audiocal()
1052 cal.snd_dev_id, cal.acdb_dev_id); in set_audiocal()
1053 if (cal.acdb_dev_id == -EINVAL) { in set_audiocal()
1055 __func__, cal.acdb_dev_id, cal.snd_dev_id); in set_audiocal()
1059 ret = my_data->acdb_set_audio_cal((void *)&cal, (void *)dptr, dlen); in set_audiocal()