Skip to content

Commit

Permalink
ginkgo: Checkout audio policy configuration to stock
Browse files Browse the repository at this point in the history
 * ginkgo-user-11-RKQ1.201004.002-V12.0.2.0.RCOMIXM
 * the existing one was adapted for aosp and gives errors like:

08-26 21:27:15.819   807   807 E APM::AudioPolicyEngine/Config: parseLegacyVolumeFile: libxml failed to resolve XIncludes on document /vendor/etc/audio/audio_policy_configuration.xml
  • Loading branch information
adithya2306 authored and whyredfire committed Sep 2, 2021
1 parent 61f0359 commit f198fff
Showing 1 changed file with 39 additions and 6 deletions.
45 changes: 39 additions & 6 deletions configs/audio/audio_policy_configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -382,18 +382,51 @@

</module>

<!-- A2DP Input Audio HAL -->
<xi:include href="/vendor/etc/a2dp_in_audio_policy_configuration.xml"/>
<!-- 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 -->
<xi:include href="/vendor/etc/usb_audio_policy_configuration.xml"/>
<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"/>

<!-- QTI Bluetooth Audio HAL -->
<xi:include href="/vendor/etc/bluetooth_qti_audio_policy_configuration.xml"/>

</modules>
<!-- End of Modules section -->

Expand Down

0 comments on commit f198fff

Please sign in to comment.