blob: 094d23368ec370f6c760e22d54736ffeb2db8a95 [file] [log] [blame]
/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.hardware.audio.core;
import android.hardware.audio.core.SurroundSoundConfig;
import android.media.audio.common.AudioHalEngineConfig;
/**
* This interface provides system-wide configuration parameters for audio I/O
* (by "system" here we mean the device running Android).
*/
@VintfStability
interface IConfig {
/**
* Returns the surround sound configuration used for the Audio Policy
* Manager initial configuration.
*
* This method will only be called during the initialization of the Audio
* Policy Manager, and must always return the same result.
*
* @return The surround sound configuration
*/
SurroundSoundConfig getSurroundSoundConfig();
/**
* Returns the configuration items used to determine the audio policy engine
* flavor and initial configuration.
*
* Engine flavor is determined by presence of capSpecificConfig, which must
* only be present if the device uses the Configurable Audio Policy (CAP)
* engine. Clients normally use the default audio policy engine. The client
* will use the CAP engine only when capSpecificConfig has a non-null value.
*
* This method is expected to only be called during the initialization of
* the audio policy engine, and must always return the same result.
*
* @return The engine configuration
*/
AudioHalEngineConfig getEngineConfig();
}