summaryrefslogtreecommitdiffstats
path: root/configs/tinyalsa-audio.xml
blob: c35d8f58195ae657c3a9ee4b9b25ee48be604a5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<tinyalsa-audio device="Galaxy S2">
	<output card="0" device="0"
		rate="44100" channels="2" format="PCM_16"
		period_size="1024" period_count="4">

		<device type="default">
			<path type="enable">
				<ctrl name="AD Digital Volume" value="75" />
				<ctrl name="AD Digital Switch" value="on" />
				<ctrl name="AENG6 Volume" value="75" />
				<ctrl name="AENG6 Switch" value="on" />
				<ctrl name="DIR#0 Volume" value="75" />
				<ctrl name="DIR#0 Switch" value="on" />
				<ctrl name="DIR#1 Volume" value="75" />
				<ctrl name="DIR#1 Switch" value="on" />
				<ctrl name="DIR#2 Volume" value="75" />
				<ctrl name="DIR#2 Switch" value="on" />
				<ctrl name="DIR#0 ATT Volume" value="75" />
				<ctrl name="DIR#0 ATT Switch" value="on" />
				<ctrl name="DIR#1 ATT Volume" value="75" />
				<ctrl name="DIR#1 ATT Switch" value="on" />
				<ctrl name="DIR#2 ATT Volume" value="75" />
				<ctrl name="DIR#2 ATT Switch" value="on" />
				<ctrl name="Master Playback Volume" value="75" />
				<ctrl name="Master Playback Switch" value="on" />
				<ctrl name="DAC Playback Volume" value="75" />
				<ctrl name="DAC Playback Switch" value="on" />
				<ctrl name="DIT#0 Capture Volume" value="75" />
				<ctrl name="DIT#0 Capture Switch" value="on" />
				<ctrl name="DIT#1 Capture Volume" value="75" />
				<ctrl name="DIT#1 Capture Switch" value="on" />
				<ctrl name="DIT#2 Capture Volume" value="75" />
				<ctrl name="DIT#2 Capture Switch" value="on" />
				<ctrl name="AD Analog Volume" value="19" />
				<ctrl name="AD Analog Switch" value="on" />
			</path>
		</device>
		<device type="earpiece">
			<path type="enable">
				<ctrl name="Receiver Playback Volume" value="31" />
				<ctrl name="Receiver Playback Switch" value="on" />
			</path>
			<path type="disable">
				<ctrl name="Receiver Playback Volume" value="0" />
				<ctrl name="Receiver Playback Switch" value="off" />
			</path>
		</device>
		<device type="speaker">
			<path type="enable">
				<ctrl name="Speaker Playback Volume" value="26" />
				<ctrl name="Speaker Playback Switch" value="on" />
			</path>
			<path type="disable">
				<ctrl name="Speaker Playback Volume" value="0" />
				<ctrl name="Speaker Playback Switch" value="off" />
			</path>
		</device>
		<device type="wired-headphone">
			<path type="enable">
				<ctrl name="Headphone Playback Volume" value="15" />
				<ctrl name="HP Gain Playback Volume" value="3" />
				<ctrl name="Headphone Playback Switch" value="on" />
			</path>
			<path type="disable">
				<ctrl name="Headphone Playback Volume" value="0" />
				<ctrl name="HP Gain Playback Volume" value="0" />
				<ctrl name="Headphone Playback Switch" value="off" />
			</path>
		</device>
		<device type="wired-headset">
			<path type="enable">
				<ctrl name="Headphone Playback Volume" value="15" />
				<ctrl name="HP Gain Playback Volume" value="3" />
				<ctrl name="Headphone Playback Switch" value="on" />
			</path>
			<path type="disable">
				<ctrl name="Headphone Playback Volume" value="0" />
				<ctrl name="HP Gain Playback Volume" value="0" />
				<ctrl name="Headphone Playback Switch" value="off" />
			</path>
		</device>
	</output>

	<input card="0" device="0"
		rate="44100" channels="2" format="PCM_16"
		period_size="1024" period_count="4">

		<device type="builtin-mic">
			<path type="enable">
				<ctrl name="AD Analog Volume" value="26" />
				<ctrl name="Mic 1 Gain Volume" value="2" />
			</path>
			<path type="disable">
				<ctrl name="AD Analog Volume" value="19" />
				<ctrl name="Mic 1 Gain Volume" value="0" />
			</path>
		</device>
		<device type="wired-headset">
			<path type="enable">
				<ctrl name="AD Analog Volume" value="26" />
				<ctrl name="Mic 2 Gain Volume" value="2" />
			</path>
			<path type="disable">
				<ctrl name="AD Analog Volume" value="19" />
				<ctrl name="Mic 2 Gain Volume" value="0" />
			</path>
		</device>
	</input>

	<modem card="0" device="0">
		<device type="earpiece">
			<path type="enable">
				<ctrl name="AD Digital Volume" value="84" />
				<ctrl name="DIR#1 Volume" value="80" />
				<ctrl name="Master Playback Volume" value="76" />
				<ctrl name="AD Analog Volume" value="22" />
			</path>
			<path type="disable">
				<ctrl name="AD Digital Volume" value="75" />
				<ctrl name="DIR#1 Volume" value="75" />
				<ctrl name="Master Playback Volume" value="75" />
				<ctrl name="AD Analog Volume" value="19" />
			</path>
		</device>
		<device type="speaker">
			<path type="enable">
				<ctrl name="AD Digital Volume" value="80" />
				<ctrl name="Speaker Playback Volume" value="31" />
				<!-- <ctrl name="Mic 3 Gain Volume" value="3" /> -->
			</path>
			<path type="disable">
				<ctrl name="AD Digital Volume" value="75" />
				<ctrl name="Speaker Playback Volume" value="26" />
				<!-- <ctrl name="Mic 3 Gain Volume" value="0" /> -->
			</path>
		</device>
		<device type="wired-headphone">
			<path type="enable">
				<ctrl name="AD Digital Volume" value="84" />
				<ctrl name="Master Playback Volume" value="69" />
				<ctrl name="AD Analog Volume" value="22" />
				<ctrl name="Headphone Playback Volume" value="31" />
			</path>
			<path type="disable">
				<ctrl name="AD Digital Volume" value="75" />
				<ctrl name="Master Playback Volume" value="75" />
				<ctrl name="AD Analog Volume" value="19" />
				<ctrl name="Headphone Playback Volume" value="15" />
			</path>
		</device>
		<device type="wired-headset">
			<path type="enable">
				<ctrl name="Master Playback Volume" value="69" />
				<ctrl name="AD Analog Volume" value="26" />
				<ctrl name="Headphone Playback Volume" value="31" />
				<ctrl name="Mic 2 Gain Volume" value="2" />
			</path>
			<path type="disable">
				<ctrl name="Master Playback Volume" value="75" />
				<ctrl name="AD Analog Volume" value="19" />
				<ctrl name="Headphone Playback Volume" value="15" />
				<ctrl name="Mic 2 Gain Volume" value="0" />
			</path>
		</device>
		<device type="bt-sco-headset">
			<path type="enable">
				<ctrl name="DIR#2 Volume" value="81" />
			</path>
			<path type="disable">
				<ctrl name="DIR#2 Volume" value="75" />
			</path>
		</device>
	</modem>
</tinyalsa-audio>