gimmeitorilltell

audio_policy.conf msm8660

Jan 27th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. # Global configuration section: lists input and output devices always present on the device
  2. # as well as the output device selected by default.
  3. # Devices are designated by a string that corresponds to the enum in audio.h
  4.  
  5. global_configuration {
  6. attached_output_devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE
  7. default_output_device AUDIO_DEVICE_OUT_SPEAKER
  8. attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_VOICE_CALL
  9. }
  10.  
  11. # audio hardware module section: contains descriptors for all audio hw modules present on the
  12. # device. Each hw module node is named after the corresponding hw module library base name.
  13. # For instance, "primary" corresponds to audio.primary.<device>.so.
  14. # The "primary" module is mandatory and must include at least one output with
  15. # AUDIO_OUTPUT_FLAG_PRIMARY flag.
  16. # Each module descriptor contains one or more output profile descriptors and zero or more
  17. # input profile descriptors. Each profile lists all the parameters supported by a given output
  18. # or input stream category.
  19. # The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding
  20. # to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n".
  21.  
  22. audio_hw_modules {
  23. primary {
  24. outputs {
  25. primary {
  26. sampling_rates 44100
  27. channel_masks AUDIO_CHANNEL_OUT_STEREO
  28. formats AUDIO_FORMAT_PCM_16_BIT
  29. devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_FM|AUDIO_DEVICE_OUT_FM_TX|AUDIO_DEVICE_IN_FM_RX|AUDIO_DEVICE_IN_FM_RX_A2DP
  30. flags AUDIO_OUTPUT_FLAG_PRIMARY
  31. }
  32. lpa {
  33. sampling_rates 44100
  34. channel_masks AUDIO_CHANNEL_OUT_STEREO
  35. formats AUDIO_FORMAT_PCM_16_BIT
  36. devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET|AUDIO_DEVICE_OUT_EXTERNAL_WIFI
  37. flags AUDIO_OUTPUT_FLAG_LPA
  38. }
  39. }
  40. inputs {
  41. primary {
  42. sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
  43. channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
  44. formats AUDIO_FORMAT_PCM_16_BIT
  45. devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_AUX_DIGITAL|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_BACK_MIC
  46. }
  47. }
  48. }
  49. a2dp {
  50. outputs {
  51. a2dp {
  52. sampling_rates 44100
  53. channel_masks AUDIO_CHANNEL_OUT_STEREO
  54. formats AUDIO_FORMAT_PCM_16_BIT
  55. devices AUDIO_DEVICE_OUT_ALL_A2DP
  56. }
  57. }
  58. }
  59. usb {
  60. outputs {
  61. usb_accessory {
  62. sampling_rates 44100
  63. channel_masks AUDIO_CHANNEL_OUT_STEREO
  64. formats AUDIO_FORMAT_PCM_16_BIT
  65. devices AUDIO_DEVICE_OUT_USB_ACCESSORY
  66. }
  67. usb_device {
  68. sampling_rates 44100
  69. channel_masks AUDIO_CHANNEL_OUT_STEREO
  70. formats AUDIO_FORMAT_PCM_16_BIT
  71. devices AUDIO_DEVICE_OUT_USB_DEVICE
  72. }
  73. }
  74. }
  75. }
Add Comment
Please, Sign In to add comment