a2dp_audio_policy_configuration.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <mixPort name="a2dp input" role="sink">
  7. <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
  8. samplingRates="44100,48000"
  9. channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
  10. </mixPort>
  11. </mixPorts>
  12. <devicePorts>
  13. <devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink">
  14. <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
  15. samplingRates="44100"
  16. channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
  17. </devicePort>
  18. <devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink">
  19. <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
  20. samplingRates="44100"
  21. channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
  22. </devicePort>
  23. <devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink">
  24. <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
  25. samplingRates="44100"
  26. channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
  27. </devicePort>
  28. <devicePort tagName="BT A2DP In" type="AUDIO_DEVICE_IN_BLUETOOTH_A2DP" role="source">
  29. <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
  30. samplingRates="44100,48000"
  31. channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
  32. </devicePort>
  33. </devicePorts>
  34. <routes>
  35. <route type="mix" sink="BT A2DP Out"
  36. sources="a2dp output"/>
  37. <route type="mix" sink="BT A2DP Headphones"
  38. sources="a2dp output"/>
  39. <route type="mix" sink="BT A2DP Speaker"
  40. sources="a2dp output"/>
  41. <route type="mix" sink="a2dp input"
  42. sources="BT A2DP In"/>
  43. </routes>
  44. </module>