Lines Matching refs:halConfig
76 const buffer_config_t& halConfig, EffectBufferConfig* config) { in effectBufferConfigFromHal() argument
77 config->samplingRateHz = halConfig.samplingRate; in effectBufferConfigFromHal()
78 config->channels = EnumBitfield<AudioChannelMask>(halConfig.channels); in effectBufferConfigFromHal()
79 config->format = AudioFormat(halConfig.format); in effectBufferConfigFromHal()
80 config->accessMode = EffectBufferAccess(halConfig.accessMode); in effectBufferConfigFromHal()
81 config->mask = EnumBitfield<EffectConfigParameters>(halConfig.mask); in effectBufferConfigFromHal()
86 const EffectBufferConfig& config, buffer_config_t* halConfig) { in effectBufferConfigToHal() argument
87 halConfig->buffer.frameCount = 0; in effectBufferConfigToHal()
88 halConfig->buffer.raw = NULL; in effectBufferConfigToHal()
89 halConfig->samplingRate = config.samplingRateHz; in effectBufferConfigToHal()
90 halConfig->channels = static_cast<uint32_t>(config.channels); in effectBufferConfigToHal()
91 halConfig->bufferProvider.cookie = NULL; in effectBufferConfigToHal()
92 halConfig->bufferProvider.getBuffer = NULL; in effectBufferConfigToHal()
93 halConfig->bufferProvider.releaseBuffer = NULL; in effectBufferConfigToHal()
94 halConfig->format = static_cast<uint8_t>(config.format); in effectBufferConfigToHal()
95 halConfig->accessMode = static_cast<uint8_t>(config.accessMode); in effectBufferConfigToHal()
96 halConfig->mask = static_cast<uint8_t>(config.mask); in effectBufferConfigToHal()
100 void EffectHalHidl::effectConfigFromHal(const effect_config_t& halConfig, EffectConfig* config) { in effectConfigFromHal() argument
101 effectBufferConfigFromHal(halConfig.inputCfg, &config->inputCfg); in effectConfigFromHal()
102 effectBufferConfigFromHal(halConfig.outputCfg, &config->outputCfg); in effectConfigFromHal()
106 void EffectHalHidl::effectConfigToHal(const EffectConfig& config, effect_config_t* halConfig) { in effectConfigToHal() argument
107 effectBufferConfigToHal(config.inputCfg, &halConfig->inputCfg); in effectConfigToHal()
108 effectBufferConfigToHal(config.outputCfg, &halConfig->outputCfg); in effectConfigToHal()
327 const effect_config_t *halConfig = static_cast<effect_config_t*>(pCmdData); in setConfigImpl() local
328 if (halConfig->inputCfg.bufferProvider.getBuffer != NULL || in setConfigImpl()
329 halConfig->inputCfg.bufferProvider.releaseBuffer != NULL || in setConfigImpl()
330 halConfig->outputCfg.bufferProvider.getBuffer != NULL || in setConfigImpl()
331 halConfig->outputCfg.bufferProvider.releaseBuffer != NULL) { in setConfigImpl()
335 effectConfigFromHal(*halConfig, &hidlConfig); in setConfigImpl()