Lines Matching full:preset
136 * the value of the preset index associated with the parameter.
138 static int cscfg_update_presets(struct cscfg_config_csdev *config_csdev, int preset) in cscfg_update_presets() argument
148 /* preset in range 1 to nr_presets */ in cscfg_update_presets()
149 if (preset < 1 || preset > config_desc->nr_presets) in cscfg_update_presets()
152 * Go through the array of features, assigning preset values to in cscfg_update_presets()
154 * There should be precisely the same number of preset values as the in cscfg_update_presets()
159 preset_base = &config_desc->presets[(preset - 1) * nr_cfg_params]; in cscfg_update_presets()
188 * if we are not using a preset, then need to update the feature params
254 * @preset: preset values to use - 0 for default.
256 int cscfg_csdev_enable_config(struct cscfg_config_csdev *config_csdev, int preset) in cscfg_csdev_enable_config() argument
260 if (preset) in cscfg_csdev_enable_config()
261 err = cscfg_update_presets(config_csdev, preset); in cscfg_csdev_enable_config()