Home | History | Annotate | Download | only in config
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!-- A2dp Audio HAL Audio Policy Configuration file -->
      3 <module name="a2dp" halVersion="2.0">
      4     <mixPorts>
      5         <mixPort name="a2dp output" role="source">
      6             <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
      7                      samplingRates="44100"
      8                      channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
      9         </mixPort>
     10         <mixPort name="a2dp input" role="sink">
     11             <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
     12                      samplingRates="44100,48000"
     13                      channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
     14         </mixPort>
     15     </mixPorts>
     16     <devicePorts>
     17         <devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink">
     18             <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
     19                      samplingRates="44100"
     20                      channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
     21         </devicePort>
     22         <devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink">
     23             <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
     24                      samplingRates="44100"
     25                      channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
     26         </devicePort>
     27         <devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink">
     28             <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
     29                      samplingRates="44100"
     30                      channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
     31         </devicePort>
     32         <devicePort tagName="BT A2DP In" type="AUDIO_DEVICE_IN_BLUETOOTH_A2DP" role="source">
     33             <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
     34                      samplingRates="44100,48000"
     35                      channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
     36         </devicePort>
     37     </devicePorts>
     38     <routes>
     39         <route type="mix" sink="BT A2DP Out"
     40                sources="a2dp output"/>
     41         <route type="mix" sink="BT A2DP Headphones"
     42                sources="a2dp output"/>
     43         <route type="mix" sink="BT A2DP Speaker"
     44                sources="a2dp output"/>
     45         <route type="mix" sink="a2dp input"
     46                sources="BT A2DP In"/>
     47     </routes>
     48 </module>
     49