Commit | Line | Data |
---|---|---|
d11af90e BM |
1 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
2 | <!-- add for Samsung LSI model --> | |
3 | ||
4 | <audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude"> | |
5 | ||
6 | <globalConfiguration speaker_drc_enabled="false"/> | |
7 | ||
8 | <modules> | |
9 | <module name="primary" halVersion="3.0"> | |
10 | <attachedDevices> | |
11 | <item>Earpiece</item> | |
12 | <item>Speaker</item> | |
13 | <item>Built-In Mic</item> | |
14 | <item>Built-In Back Mic</item> | |
d11af90e BM |
15 | </attachedDevices> |
16 | ||
17 | <defaultOutputDevice>Speaker</defaultOutputDevice> | |
18 | ||
19 | <mixPorts> | |
20 | <!-- Playback(Output) Streams --> | |
21 | <mixPort name="primary-out" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY|AUDIO_OUTPUT_FLAG_DEEP_BUFFER"> | |
22 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
23 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> | |
24 | </mixPort> | |
25 | ||
d11af90e BM |
26 | <!-- Capture(Input) Streams --> |
27 | <mixPort name="primary-in" role="sink"> | |
28 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
29 | samplingRates="48000" | |
30 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_VOICE_UPLINK,AUDIO_CHANNEL_IN_VOICE_DNLINK"/> | |
31 | </mixPort> | |
d11af90e BM |
32 | </mixPorts> |
33 | ||
34 | <devicePorts> | |
35 | <!-- output devices declaration, i.e. Sink DEVICE PORT --> | |
36 | <devicePort tagName="Earpiece" role="sink" type="AUDIO_DEVICE_OUT_EARPIECE"> | |
37 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
38 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> | |
39 | </devicePort> | |
40 | <devicePort tagName="Speaker" role="sink" type="AUDIO_DEVICE_OUT_SPEAKER"> | |
41 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
42 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> | |
43 | </devicePort> | |
44 | <devicePort tagName="Wired Headset" role="sink" type="AUDIO_DEVICE_OUT_WIRED_HEADSET"> | |
45 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
46 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> | |
47 | </devicePort> | |
48 | <devicePort tagName="Wired Headphone" role="sink" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE"> | |
49 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
50 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> | |
51 | </devicePort> | |
d11af90e BM |
52 | <devicePort tagName="Bt Sco" role="sink" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO"> |
53 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
54 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> | |
55 | </devicePort> | |
56 | <devicePort tagName="Bt Sco Headset" role="sink" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET"> | |
57 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
58 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> | |
59 | </devicePort> | |
60 | <devicePort tagName="Bt Sco Car Kit" role="sink" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT"> | |
61 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
62 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> | |
63 | </devicePort> | |
64 | ||
65 | <!-- input devices declaration, i.e. source DEVICE PORT --> | |
66 | <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source"> | |
67 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
68 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" | |
69 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_IN_VOICE_UPLINK,AUDIO_CHANNEL_IN_VOICE_DNLINK"/> | |
70 | </devicePort> | |
71 | <devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source"> | |
72 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
73 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" | |
74 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_IN_VOICE_UPLINK,AUDIO_CHANNEL_IN_VOICE_DNLINK"/> | |
75 | </devicePort> | |
76 | <devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source"> | |
77 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
78 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" | |
79 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_IN_VOICE_UPLINK,AUDIO_CHANNEL_IN_VOICE_DNLINK"/> | |
80 | </devicePort> | |
81 | <devicePort tagName="Bt Sco Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source"> | |
82 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
83 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" | |
84 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_IN_VOICE_UPLINK,AUDIO_CHANNEL_IN_VOICE_DNLINK"/> | |
85 | </devicePort> | |
d11af90e BM |
86 | </devicePorts> |
87 | ||
88 | <routes> | |
89 | <route sink="Earpiece" type="mix" | |
52e4e987 | 90 | sources="primary-out"/> |
d11af90e | 91 | <route sink="Speaker" type="mix" |
52e4e987 | 92 | sources="primary-out"/> |
d11af90e | 93 | <route sink="Wired Headset" type="mix" |
52e4e987 | 94 | sources="primary-out"/> |
d11af90e | 95 | <route sink="Wired Headphone" type="mix" |
52e4e987 | 96 | sources="primary-out"/> |
d11af90e | 97 | <route sink="Bt Sco" type="mix" |
52e4e987 | 98 | sources="primary-out"/> |
d11af90e | 99 | <route sink="Bt Sco Headset" type="mix" |
52e4e987 | 100 | sources="primary-out"/> |
d11af90e | 101 | <route sink="Bt Sco Car Kit" type="mix" |
52e4e987 | 102 | sources="primary-out"/> |
d11af90e BM |
103 | |
104 | <route sink="primary-in" type="mix" | |
52e4e987 | 105 | sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,Bt Sco Headset Mic"/> |
d11af90e BM |
106 | |
107 | </routes> | |
108 | </module> | |
109 | ||
110 | <!-- A2dp Audio HAL --> | |
111 | <xi:include href="a2dp_audio_policy_configuration.xml"/> | |
112 | ||
113 | <!-- Usb Audio HAL --> | |
114 | <xi:include href="usb_audio_policy_configuration.xml"/> | |
115 | ||
116 | <!-- Remote Submix Audio HAL --> | |
117 | <xi:include href="r_submix_audio_policy_configuration.xml"/> | |
118 | ||
119 | </modules> | |
120 | ||
121 | <!-- Volume section --> | |
122 | <xi:include href="audio_policy_volumes.xml"/> | |
123 | <xi:include href="default_volume_tables.xml"/> | |
124 | ||
125 | </audioPolicyConfiguration> |