Lines Matching refs:halConfig

79         const buffer_config_t& halConfig, EffectBufferConfig* config) {  in effectBufferConfigFromHal()  argument
80 config->samplingRateHz = halConfig.samplingRate; in effectBufferConfigFromHal()
81 config->channels = mkEnumConverter<AudioChannelMask>(halConfig.channels); in effectBufferConfigFromHal()
82 config->format = AudioFormat(halConfig.format); in effectBufferConfigFromHal()
83 config->accessMode = EffectBufferAccess(halConfig.accessMode); in effectBufferConfigFromHal()
84 config->mask = mkEnumConverter<EffectConfigParameters>(halConfig.mask); in effectBufferConfigFromHal()
89 const EffectBufferConfig& config, buffer_config_t* halConfig) { in effectBufferConfigToHal() argument
90 halConfig->buffer.frameCount = 0; in effectBufferConfigToHal()
91 halConfig->buffer.raw = NULL; in effectBufferConfigToHal()
92 halConfig->samplingRate = config.samplingRateHz; in effectBufferConfigToHal()
93 halConfig->channels = static_cast<uint32_t>(config.channels); in effectBufferConfigToHal()
94 halConfig->bufferProvider.cookie = NULL; in effectBufferConfigToHal()
95 halConfig->bufferProvider.getBuffer = NULL; in effectBufferConfigToHal()
96 halConfig->bufferProvider.releaseBuffer = NULL; in effectBufferConfigToHal()
97 halConfig->format = static_cast<uint8_t>(config.format); in effectBufferConfigToHal()
98 halConfig->accessMode = static_cast<uint8_t>(config.accessMode); in effectBufferConfigToHal()
99 halConfig->mask = static_cast<uint8_t>(config.mask); in effectBufferConfigToHal()
103 void EffectHalHidl::effectConfigFromHal(const effect_config_t& halConfig, EffectConfig* config) { in effectConfigFromHal() argument
104 effectBufferConfigFromHal(halConfig.inputCfg, &config->inputCfg); in effectConfigFromHal()
105 effectBufferConfigFromHal(halConfig.outputCfg, &config->outputCfg); in effectConfigFromHal()
109 void EffectHalHidl::effectConfigToHal(const EffectConfig& config, effect_config_t* halConfig) { in effectConfigToHal() argument
110 effectBufferConfigToHal(config.inputCfg, &halConfig->inputCfg); in effectConfigToHal()
111 effectBufferConfigToHal(config.outputCfg, &halConfig->outputCfg); in effectConfigToHal()
321 const effect_config_t *halConfig = static_cast<effect_config_t*>(pCmdData); in setConfigImpl() local
322 if (halConfig->inputCfg.bufferProvider.getBuffer != NULL || in setConfigImpl()
323 halConfig->inputCfg.bufferProvider.releaseBuffer != NULL || in setConfigImpl()
324 halConfig->outputCfg.bufferProvider.getBuffer != NULL || in setConfigImpl()
325 halConfig->outputCfg.bufferProvider.releaseBuffer != NULL) { in setConfigImpl()
329 effectConfigFromHal(*halConfig, &hidlConfig); in setConfigImpl()