audio_output_policy.conf 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # List of profiles for the output device session where stream is routed.
  2. # A stream opened with the inputs attributes which match the "flags" and
  3. # "formats" as specified in the profile is routed to a device at
  4. # sample rate specified under "sampling_rates" and bit width under
  5. # "bit_width" and the topology extracted from the acdb data against
  6. # the "app_type".
  7. #
  8. # the flags and formats are specified using the strings corresponding to
  9. # enums in audio.h and audio_policy.h. They are concatenated with "|"
  10. # without space or "\n".
  11. # the flags and formats should match the ones in "audio_policy.conf"
  12. outputs {
  13. default {
  14. flags AUDIO_OUTPUT_FLAG_PRIMARY
  15. formats AUDIO_FORMAT_PCM_16_BIT
  16. sampling_rates 48000
  17. bit_width 16
  18. app_type 69937
  19. }
  20. deep_buffer {
  21. flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
  22. formats AUDIO_FORMAT_PCM_16_BIT
  23. sampling_rates 48000
  24. bit_width 16
  25. app_type 69936
  26. }
  27. direct_pcm_16 {
  28. flags AUDIO_OUTPUT_FLAG_DIRECT
  29. formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT
  30. sampling_rates 44100|48000|96000|192000
  31. bit_width 16
  32. app_type 69936
  33. }
  34. direct_pcm_24 {
  35. flags AUDIO_OUTPUT_FLAG_DIRECT
  36. formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT
  37. sampling_rates 44100|48000|96000|192000
  38. bit_width 24
  39. app_type 69940
  40. }
  41. compress_offload_16 {
  42. flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
  43. formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_AC3|AUDIO_FORMAT_E_AC3|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2
  44. sampling_rates 44100|48000|96000|192000
  45. bit_width 16
  46. app_type 69936
  47. }
  48. compress_offload_24 {
  49. flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
  50. formats AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_VORBIS
  51. sampling_rates 44100|48000|96000|192000
  52. bit_width 24
  53. app_type 69940
  54. }
  55. }