Lines Matching refs:pConfig
100 int LE_setConfig(LoudnessEnhancerContext *pContext, effect_config_t *pConfig) in LE_setConfig() argument
104 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate) return -EINVAL; in LE_setConfig()
105 if (pConfig->inputCfg.channels != pConfig->outputCfg.channels) return -EINVAL; in LE_setConfig()
106 if (pConfig->inputCfg.format != pConfig->outputCfg.format) return -EINVAL; in LE_setConfig()
107 if (pConfig->inputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) return -EINVAL; in LE_setConfig()
108 if (pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_WRITE && in LE_setConfig()
109 pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_ACCUMULATE) return -EINVAL; in LE_setConfig()
110 if (pConfig->inputCfg.format != AUDIO_FORMAT_PCM_16_BIT) return -EINVAL; in LE_setConfig()
112 pContext->mConfig = *pConfig; in LE_setConfig()
134 void LE_getConfig(LoudnessEnhancerContext *pContext, effect_config_t *pConfig) in LE_getConfig() argument
136 *pConfig = pContext->mConfig; in LE_getConfig()