blob: 908486f347c8eb8edcd9d784d5e0f0e95825e87e [file] [log] [blame]
merothhd7649fd2022-01-02 20:05:19 +05301# 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
13outputs {
14 default {
15 flags AUDIO_OUTPUT_FLAG_PRIMARY
Adithya Rf91aad62020-10-18 19:54:00 +053016 formats AUDIO_FORMAT_PCM_24_BIT_PACKED
merothhd7649fd2022-01-02 20:05:19 +053017 sampling_rates 48000
Adithya Rf91aad62020-10-18 19:54:00 +053018 bit_width 24
merothhd7649fd2022-01-02 20:05:19 +053019 app_type 69937
20 }
21 proaudio {
22 flags AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW
23 formats AUDIO_FORMAT_PCM_16_BIT
24 sampling_rates 48000
25 bit_width 16
26 app_type 69943
27 }
28 voip_rx {
Michael Bestas418f9e42023-08-30 04:50:56 +030029 flags AUDIO_OUTPUT_FLAG_VOIP_RX
merothhd7649fd2022-01-02 20:05:19 +053030 formats AUDIO_FORMAT_PCM_16_BIT
31 sampling_rates 8000|16000|32000|48000
32 bit_width 16
33 app_type 69946
34 }
35 deep_buffer {
36 flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
Adithya Rf91aad62020-10-18 19:54:00 +053037 formats AUDIO_FORMAT_PCM_24_BIT_PACKED
merothhd7649fd2022-01-02 20:05:19 +053038 sampling_rates 48000
Adithya Rf91aad62020-10-18 19:54:00 +053039 bit_width 24
merothhd7649fd2022-01-02 20:05:19 +053040 app_type 69936
41 }
42 direct_pcm_16 {
43 flags AUDIO_OUTPUT_FLAG_DIRECT
44 formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT
45 sampling_rates 44100|48000|88200|96000|176400|192000
46 bit_width 16
47 app_type 69936
48 }
49 direct_pcm_24 {
50 flags AUDIO_OUTPUT_FLAG_DIRECT
51 formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT
52 sampling_rates 44100|48000|88200|96000|176400|192000|352800|384000
53 bit_width 24
54 app_type 69940
55 }
56 direct_pcm_32 {
57 flags AUDIO_OUTPUT_FLAG_DIRECT
58 formats AUDIO_FORMAT_PCM_32_BIT
59 sampling_rates 44100|48000|88200|96000|176400|192000|352800|384000
60 bit_width 32
61 app_type 69942
62 }
63 compress_passthrough {
64 flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING|AUDIO_OUTPUT_FLAG_COMPRESS_PASSTHROUGH
65 formats AUDIO_FORMAT_DTS|AUDIO_FORMAT_DTS_HD|AUDIO_FORMAT_DSD
66 sampling_rates 32000|44100|48000|88200|96000|176400|192000|352800
67 bit_width 16
68 app_type 69941
69 }
70 compress_offload_16 {
71 flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
Michael Bestas418f9e42023-08-30 04:50:56 +030072 formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_16_BIT_OFFLOAD|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|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|AUDIO_FORMAT_AAC_LATM_LC|AUDIO_FORMAT_AAC_LATM_HE_V1|AUDIO_FORMAT_AAC_LATM_HE_V2
merothhd7649fd2022-01-02 20:05:19 +053073 sampling_rates 44100|48000|88200|96000|176400|192000
74 bit_width 16
75 app_type 69936
76 }
77 compress_offload_24 {
78 flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
Michael Bestas418f9e42023-08-30 04:50:56 +030079 formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|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_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2|AUDIO_FORMAT_AAC_LATM_LC|AUDIO_FORMAT_AAC_LATM_HE_V1|AUDIO_FORMAT_AAC_LATM_HE_V2
merothhd7649fd2022-01-02 20:05:19 +053080 sampling_rates 44100|48000|88200|96000|176400|192000
81 bit_width 24
82 app_type 69940
83 }
84}
85
86inputs {
87 record_16bit {
88 formats AUDIO_FORMAT_PCM_16_BIT
89 sampling_rates 8000|16000|32000|44100|48000|88200|96000|176400|192000
90 bit_width 16
91 app_type 69938
92 }
93 record_24bit {
94 formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_24_BIT
95 sampling_rates 44100|48000|88200|96000|176400|192000
96 bit_width 24
97 app_type 69948
98 }
99 record_32bit {
100 formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_FLOAT
101 sampling_rates 44100|48000|88200|96000|176400|192000
102 bit_width 32
103 app_type 69949
104 }
105 record_compress_16 {
106 flags AUDIO_INPUT_FLAG_COMPRESS
107 formats AUDIO_FORMAT_PCM_16_BIT
108 sampling_rates 8000|16000|32000|44100|48000|88200|96000|176400|192000
109 bit_width 16
110 app_type 69938
111 }
112 record_compress_24 {
113 flags AUDIO_INPUT_FLAG_COMPRESS
114 formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_24_BIT
115 sampling_rates 44100|48000|88200|96000|176400|192000
116 bit_width 24
117 app_type 69948
118 }
119 record_compress_32 {
120 flags AUDIO_INPUT_FLAG_COMPRESS
121 formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_FLOAT
122 sampling_rates 44100|48000|88200|96000|176400|192000
123 bit_width 32
124 app_type 69949
125 }
126 voip_tx {
127 flags AUDIO_INPUT_FLAG_VOIP_TX
128 formats AUDIO_FORMAT_PCM_16_BIT
129 sampling_rates 8000|16000|32000|48000
130 bit_width 16
131 app_type 69946
132 }
133 low_latency_voip_tx {
Michael Bestas418f9e42023-08-30 04:50:56 +0300134 flags AUDIO_INPUT_FLAG_VOIP_TX|AUDIO_INPUT_FLAG_FAST
merothhd7649fd2022-01-02 20:05:19 +0530135 formats AUDIO_FORMAT_PCM_16_BIT
136 sampling_rates 48000
137 bit_width 16
138 app_type 69946
139 }
140}