Lines Matching refs:preset
102 context->preset = PRESET_CUSTOM; in equalizer_set_band_level()
147 ALOGV("%s: preset: %d", __func__, context->preset); in equalizer_get_preset()
148 return context->preset; in equalizer_get_preset()
151 int equalizer_set_preset(equalizer_context_t *context, int preset) in equalizer_set_preset() argument
155 ALOGV("%s: preset: %d", __func__, preset); in equalizer_set_preset()
156 context->preset = preset; in equalizer_set_preset()
159 equalizer_band_presets_level[i + preset * NUM_EQ_BANDS]; in equalizer_set_preset()
161 offload_eq_set_preset(&(context->offload_eq), preset); in equalizer_set_preset()
174 int32_t preset) in equalizer_get_preset_name() argument
176 ALOGV("%s: preset: %s", __func__, equalizer_preset_names[preset]); in equalizer_get_preset_name()
177 if (preset == PRESET_CUSTOM) { in equalizer_get_preset_name()
180 return equalizer_preset_names[preset]; in equalizer_get_preset_name()
377 int32_t preset; in equalizer_set_parameter() local
393 preset = (int32_t)(*(uint16_t *)value); in equalizer_set_parameter()
395 if ((preset >= equalizer_get_num_presets(eq_ctxt)) || (preset < 0)) { in equalizer_set_parameter()
399 equalizer_set_preset(eq_ctxt, preset); in equalizer_set_parameter()