Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 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 { |
Zvikomborero VIncent Zvikaramba | 49a48a8 | 2016-07-22 01:39:05 -0400 | [diff] [blame] | 6 | attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 7 | default_output_device AUDIO_DEVICE_OUT_SPEAKER |
Zvikomborero VIncent Zvikaramba | 49a48a8 | 2016-07-22 01:39:05 -0400 | [diff] [blame] | 8 | attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_THIRD_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX|AUDIO_DEVICE_IN_VOICE_CALL |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 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|48000 |
| 27 | channel_masks AUDIO_CHANNEL_OUT_STEREO |
| 28 | formats AUDIO_FORMAT_PCM_16_BIT |
Zvikomborero VIncent Zvikaramba | 49a48a8 | 2016-07-22 01:39:05 -0400 | [diff] [blame] | 29 | devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_EXTERNAL_WIFI|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 30 | flags AUDIO_OUTPUT_FLAG_PRIMARY |
| 31 | } |
| 32 | fast { |
| 33 | sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000 |
| 34 | channel_masks AUDIO_CHANNEL_OUT_STEREO |
| 35 | formats AUDIO_FORMAT_PCM_16_BIT |
Zvikomborero VIncent Zvikaramba | 49a48a8 | 2016-07-22 01:39:05 -0400 | [diff] [blame] | 36 | devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_EXTERNAL_WIFI|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 37 | flags AUDIO_OUTPUT_FLAG_FAST |
| 38 | } |
| 39 | hdmi { |
| 40 | sampling_rates 48000 |
| 41 | channel_masks dynamic |
| 42 | formats AUDIO_FORMAT_PCM_16_BIT |
| 43 | devices AUDIO_DEVICE_OUT_AUX_DIGITAL |
| 44 | flags AUDIO_OUTPUT_FLAG_MULTI_CH |
| 45 | } |
| 46 | compress_offload { |
Zvikomborero VIncent Zvikaramba | 49a48a8 | 2016-07-22 01:39:05 -0400 | [diff] [blame] | 47 | sampling_rates 11025|16000|22050|32000|44100|48000 |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 48 | channel_masks AUDIO_CHANNEL_OUT_MONO|AUDIO_CHANNEL_OUT_STEREO|AUDIO_CHANNEL_OUT_2POINT1|AUDIO_CHANNEL_OUT_QUAD|AUDIO_CHANNEL_OUT_PENTA|AUDIO_CHANNEL_OUT_5POINT1|AUDIO_CHANNEL_OUT_6POINT1|AUDIO_CHANNEL_OUT_7POINT1 |
Zvikomborero VIncent Zvikaramba | 49a48a8 | 2016-07-22 01:39:05 -0400 | [diff] [blame] | 49 | formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_AC3|AUDIO_FORMAT_E_AC3 |
| 50 | devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_EXTERNAL_WIFI|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 51 | flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING |
| 52 | } |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 53 | } |
| 54 | inputs { |
| 55 | primary { |
| 56 | sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000 |
| 57 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_FRONT_BACK|AUDIO_CHANNEL_IN_VOICE_UPLINK|AUDIO_CHANNEL_IN_VOICE_DNLINK |
Zvikomborero VIncent Zvikaramba | 49a48a8 | 2016-07-22 01:39:05 -0400 | [diff] [blame] | 58 | formats AUDIO_FORMAT_PCM_16_BIT |
| 59 | devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADPHONE|AUDIO_DEVICE_IN_AUX_DIGITAL|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_THIRD_MIC|AUDIO_DEVICE_IN_FM |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 60 | } |
| 61 | } |
| 62 | } |
| 63 | a2dp { |
| 64 | outputs { |
| 65 | a2dp { |
| 66 | sampling_rates 44100 |
| 67 | channel_masks AUDIO_CHANNEL_OUT_STEREO |
| 68 | formats AUDIO_FORMAT_PCM_16_BIT |
| 69 | devices AUDIO_DEVICE_OUT_ALL_A2DP |
| 70 | } |
| 71 | } |
| 72 | inputs { |
| 73 | a2dp { |
| 74 | sampling_rates 44100|48000 |
| 75 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO |
| 76 | formats AUDIO_FORMAT_PCM_16_BIT |
| 77 | devices AUDIO_DEVICE_IN_BLUETOOTH_A2DP |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | usb { |
| 82 | outputs { |
| 83 | usb_accessory { |
| 84 | sampling_rates 44100 |
| 85 | channel_masks AUDIO_CHANNEL_OUT_STEREO |
| 86 | formats AUDIO_FORMAT_PCM_16_BIT |
| 87 | devices AUDIO_DEVICE_OUT_USB_ACCESSORY |
| 88 | } |
| 89 | usb_device { |
| 90 | sampling_rates 44100|48000 |
| 91 | channel_masks dynamic |
| 92 | formats AUDIO_FORMAT_PCM_16_BIT |
| 93 | devices AUDIO_DEVICE_OUT_USB_DEVICE|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | tms { |
| 98 | outputs { |
| 99 | tms { |
| 100 | sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000 |
| 101 | channel_masks AUDIO_CHANNEL_OUT_STEREO |
| 102 | formats AUDIO_FORMAT_PCM_16_BIT |
| 103 | devices AUDIO_DEVICE_OUT_EXTERNAL_TMS |
| 104 | } |
| 105 | } |
| 106 | inputs { |
| 107 | tms { |
| 108 | sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000 |
| 109 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO |
| 110 | formats AUDIO_FORMAT_PCM_16_BIT |
| 111 | devices AUDIO_DEVICE_IN_EXTERNAL_TMS |
| 112 | } |
| 113 | } |
| 114 | } |
| 115 | r_submix { |
| 116 | outputs { |
| 117 | submix { |
| 118 | sampling_rates 48000 |
| 119 | channel_masks AUDIO_CHANNEL_OUT_STEREO |
| 120 | formats AUDIO_FORMAT_PCM_16_BIT |
| 121 | devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX |
| 122 | } |
| 123 | } |
| 124 | inputs { |
| 125 | submix { |
| 126 | sampling_rates 48000 |
| 127 | channel_masks AUDIO_CHANNEL_IN_STEREO |
| 128 | formats AUDIO_FORMAT_PCM_16_BIT |
| 129 | devices AUDIO_DEVICE_IN_REMOTE_SUBMIX |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 | } |