summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorMisael Lopez Cruz2013-05-02 16:38:36 -0500
committerGerrit Code Review2013-05-02 18:27:22 -0500
commit5f5d3885cf63f90aaebe8965cf5b487ca2185db8 (patch)
treebae25928d97c5c9f43a87369b9804ddf03552ae7 /audio
parentec3b9f2688a6885090b69b86f7276a6130227407 (diff)
downloaddevice-ti-jacinto6evm-5f5d3885cf63f90aaebe8965cf5b487ca2185db8.tar.gz
device-ti-jacinto6evm-5f5d3885cf63f90aaebe8965cf5b487ca2185db8.tar.xz
device-ti-jacinto6evm-5f5d3885cf63f90aaebe8965cf5b487ca2185db8.zip
jacinto6evm: audio: Add audio_policy.conf
Add an audio_policy.conf specific for jacinto6evm platform. Change-Id: I5724d1d935ebe3b2249716a72289c74f57d1c7c0 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'audio')
-rw-r--r--audio/audio_policy.conf101
1 files changed, 101 insertions, 0 deletions
diff --git a/audio/audio_policy.conf b/audio/audio_policy.conf
new file mode 100644
index 0000000..f040935
--- /dev/null
+++ b/audio/audio_policy.conf
@@ -0,0 +1,101 @@
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
5global_configuration {
6 attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER
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
22audio_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_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET|AUDIO_DEVICE_OUT_FM_RADIO_TX
30 flags AUDIO_OUTPUT_FLAG_PRIMARY
31 }
32 deep_buffer {
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_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE
37 flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
38 }
39 }
40 inputs {
41 primary {
42 sampling_rates 8000|11025|16000|22050|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_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_FM_RADIO_RX|AUDIO_DEVICE_IN_USB_HEADSET|AUDIO_DEVICE_IN_VOICE_CALL
46 }
47 }
48 }
49 hdmi {
50 outputs {
51 stereo {
52 sampling_rates 44100|48000
53 channel_masks AUDIO_CHANNEL_OUT_STEREO
54 formats AUDIO_FORMAT_PCM_16_BIT
55 devices AUDIO_DEVICE_OUT_AUX_DIGITAL
56 }
57 multichannel {
58 sampling_rates 44100|48000
59 channel_masks dynamic
60 formats AUDIO_FORMAT_PCM_16_BIT
61 devices AUDIO_DEVICE_OUT_AUX_DIGITAL
62 flags AUDIO_OUTPUT_FLAG_DIRECT
63 }
64 }
65 }
66 a2dp {
67 outputs {
68 a2dp {
69 sampling_rates 44100
70 channel_masks AUDIO_CHANNEL_OUT_STEREO
71 formats AUDIO_FORMAT_PCM_16_BIT
72 devices AUDIO_DEVICE_OUT_ALL_A2DP
73 }
74 }
75 }
76 r_submix {
77 outputs {
78 r_submix {
79 sampling_rates 44100|48000
80 channel_masks AUDIO_CHANNEL_OUT_STEREO
81 formats AUDIO_FORMAT_PCM_16_BIT
82 devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
83 }
84 multichannel {
85 sampling_rates 44100|48000
86 channel_masks AUDIO_CHANNEL_OUT_5POINT1
87 formats AUDIO_FORMAT_PCM_16_BIT
88 devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
89 flags AUDIO_OUTPUT_FLAG_DIRECT
90 }
91 }
92 inputs {
93 r_submix {
94 sampling_rates 44100|48000
95 channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_5POINT1EMUL
96 formats AUDIO_FORMAT_PCM_16_BIT
97 devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
98 }
99 }
100 }
101}