Update audio configuration to enable spatial audio: - build with spatial audio feature enabled and rondo library - list spatializer effect in audio effect configuration file - update audio policy configuration files to declare spatializer output - declare immersive end point in audio platform configuration Bug: 237677573 Test: spatial audio playback Change-Id: Ic9c32d813a19ba2789425e12ee9016d53ab30678 Signed-off-by: Pulkit077 <pulkitagarwal2k1@gmail.com>tirimbino
parent
f064762ef6
commit
90c9b9d34d
@ -0,0 +1,44 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!-- Bluetooth Audio HAL Audio Policy Configuration file --> |
||||
<module name="bluetooth" halVersion="2.0"> |
||||
<mixPorts> |
||||
<!-- A2DP Audio Ports --> |
||||
<mixPort name="a2dp output" role="source" flags="AUDIO_OUTPUT_FLAG_SPATIALIZER"/> |
||||
<!-- Hearing AIDs Audio Ports --> |
||||
<mixPort name="hearing aid output" role="source"> |
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
||||
samplingRates="24000 16000" |
||||
channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
||||
</mixPort> |
||||
</mixPorts> |
||||
<devicePorts> |
||||
<!-- A2DP Audio Ports --> |
||||
<devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink"> |
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
||||
samplingRates="44100 48000 88200 96000" |
||||
channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
||||
</devicePort> |
||||
<devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink"> |
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
||||
samplingRates="44100 48000 88200 96000" |
||||
channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
||||
</devicePort> |
||||
<devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink"> |
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
||||
samplingRates="44100 48000 88200 96000" |
||||
channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
||||
</devicePort> |
||||
<!-- Hearing AIDs Audio Ports --> |
||||
<devicePort tagName="BT Hearing Aid Out" type="AUDIO_DEVICE_OUT_HEARING_AID" role="sink"/> |
||||
</devicePorts> |
||||
<routes> |
||||
<route type="mix" sink="BT A2DP Out" |
||||
sources="a2dp output"/> |
||||
<route type="mix" sink="BT A2DP Headphones" |
||||
sources="a2dp output"/> |
||||
<route type="mix" sink="BT A2DP Speaker" |
||||
sources="a2dp output"/> |
||||
<route type="mix" sink="BT Hearing Aid Out" |
||||
sources="hearing aid output"/> |
||||
</routes> |
||||
</module> |
Loading…
Reference in new issue