Skipped all changes related to BINAURAL_RECORD, SPATIALIZER and VIRTUAL_AUDIO features as those are all unsupported in AOSP. Change-Id: I44e1e4c34e5ab2ec6e07d7d77a18cf918a526c2d
148 lines
6.8 KiB
XML
148 lines
6.8 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<!-- Copyright (c) 2016-2020, The Linux Foundation. All rights reserved
|
|
Not a Contribution.
|
|
-->
|
|
<!-- Copyright (C) 2015 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.
|
|
-->
|
|
|
|
<!--
|
|
Changes from Qualcomm Innovation Center are provided under the following license:
|
|
|
|
Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
modification, are permitted (subject to the limitations in the
|
|
disclaimer below) provided that the following conditions are met:
|
|
|
|
* Redistributions of source code must retain the above copyright
|
|
notice, this list of conditions and the following disclaimer.
|
|
|
|
* Redistributions in binary form must reproduce the above
|
|
copyright notice, this list of conditions and the following
|
|
disclaimer in the documentation and/or other materials provided
|
|
with the distribution.
|
|
|
|
* Neither the name of Qualcomm Innovation Center, Inc. nor the names of its
|
|
contributors may be used to endorse or promote products derived
|
|
from this software without specific prior written permission.
|
|
|
|
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
|
|
GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
|
|
HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
|
|
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
|
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
|
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
-->
|
|
|
|
<audioPolicyConfiguration version="7.0" xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
<!-- version section contains a “version” tag in the form “major.minor” e.g version=”1.0” -->
|
|
|
|
<!-- Global configuration Decalaration -->
|
|
<globalConfiguration speaker_drc_enabled="true" call_screen_mode_supported="true"/>
|
|
|
|
|
|
<!-- Modules section:
|
|
There is one section per audio HW module present on the platform.
|
|
Each module section will contains two mandatory tags for audio HAL “halVersion” and “name”.
|
|
The module names are the same as in current .conf file:
|
|
“primary”, “A2DP”, “remote_submix”, “USB”
|
|
Each module will contain the following sections:
|
|
“devicePorts”: a list of device descriptors for all input and output devices accessible via this
|
|
module.
|
|
This contains both permanently attached devices and removable devices.
|
|
“mixPorts”: listing all output and input streams exposed by the audio HAL
|
|
“routes”: list of possible connections between input and output devices or between stream and
|
|
devices.
|
|
"route": is defined by an attribute:
|
|
-"type": <mux|mix> means all sources are mutual exclusive (mux) or can be mixed (mix)
|
|
-"sink": the sink involved in this route
|
|
-"sources": all the sources than can be connected to the sink via vis route
|
|
“attachedDevices”: permanently attached devices.
|
|
The attachedDevices section is a list of devices names. The names correspond to device names
|
|
defined in <devicePorts> section.
|
|
“defaultOutputDevice”: device to be used by default when no policy rule applies
|
|
-->
|
|
<modules>
|
|
<!-- Primary Audio HAL is now hosted in audio_module_config_primary -->
|
|
|
|
<!-- A2DP Audio HAL -->
|
|
<!-- <module name="a2dp" halVersion="2.0">
|
|
<mixPorts>
|
|
<mixPort name="a2dp input" role="sink">
|
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
|
samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/>
|
|
</mixPort>
|
|
</mixPorts>
|
|
|
|
<devicePorts>
|
|
<devicePort tagName="BT A2DP In" type="AUDIO_DEVICE_IN_BLUETOOTH_A2DP" role="source">
|
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
|
samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/>
|
|
</devicePort>
|
|
</devicePorts>
|
|
|
|
<routes>
|
|
<route type="mix" sink="a2dp input"
|
|
sources="BT A2DP In"/>
|
|
</routes>
|
|
</module> -->
|
|
|
|
<!-- Usb Audio HAL -->
|
|
<module name="usb" halVersion="2.0">
|
|
<mixPorts>
|
|
<mixPort name="usb_accessory output" role="source">
|
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
|
samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
|
</mixPort>
|
|
</mixPorts>
|
|
<devicePorts>
|
|
<devicePort tagName="USB Host Out" type="AUDIO_DEVICE_OUT_USB_ACCESSORY" role="sink">
|
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
|
samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
|
</devicePort>
|
|
</devicePorts>
|
|
<routes>
|
|
<route type="mix" sink="USB Host Out"
|
|
sources="usb_accessory output"/>
|
|
</routes>
|
|
</module>
|
|
|
|
<!-- Remote Submix Audio HAL -->
|
|
<xi:include href="/vendor/etc/r_submix_audio_policy_configuration.xml"/>
|
|
|
|
<!-- Bluetooth Audio HAL for hearing aid -->
|
|
<!-- #ifndef OPLUS_BUG_STABILITY dongchuancheng@MULTIMEDIA.AUDIOSERVER.FRAMEWORK, 2022/09/20, disable unused module
|
|
<xi:include href="/vendor/etc/bluetooth_qti_hearing_aid_audio_policy_configuration.xml"/>
|
|
#endif /* OPLUS_BUG_STABILITY */ -->
|
|
|
|
</modules>
|
|
<!-- End of Modules section -->
|
|
|
|
<!-- Volume section -->
|
|
|
|
<xi:include href="/vendor/etc/audio_policy_volumes.xml"/>
|
|
<xi:include href="/vendor/etc/default_volume_tables.xml"/>
|
|
|
|
<!-- End of Volume section -->
|
|
|
|
</audioPolicyConfiguration>
|