aboutsummaryrefslogtreecommitdiffstats
path: root/packages/zaurusd/files/alsa-cxx00-default.state.patch
blob: b7a149be00c1f858df999895e3ab20f8301e5c7b (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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
http://bugs.openembedded.net/show_bug.cgi?id=2617
- Fixes default ALSA state for SL-Cxx00.
  * Treble level reflects kernel fix alsa-wm8750-treble.patch (>2.6.24).
  * Increased Mic Levels and Boost.
  * Enabled Capture Switch.
  * Improved Headphones / Speaker volume balance.
  * 3D Mode changed to "Playback" (still Off by default).
  * Disabled all bypasses.
  * All Mono signals decreased to 0 (not connected).
  * Line Mux changed to differential, keeping PGA unused.
  * Using Digital mono for recording (jack supports ony mono).
  * Enabled Automatic Level Control, optimized for voice recording.
  * Enabled Zero Cross volume changes.
- Do not alter incorrect mixer levels by zaurus-mixer-callback.

Index: zaurusd/config/alsa/cxx00-default.state
===================================================================
--- zaurusd.orig/config/alsa/cxx00-default.state	2006-06-28 08:45:07.000000000 +0000
+++ zaurusd/config/alsa/cxx00-default.state	2007-11-27 23:06:43.000000000 +0000
@@ -6,8 +6,8 @@
 		comment.range '0 - 63'
 		iface MIXER
 		name 'Capture Volume'
-		value.0 23
-		value.1 23
+		value.0 48
+		value.1 48
 	}
 	control.2 {
 		comment.access 'read write'
@@ -15,8 +15,8 @@
 		comment.count 2
 		iface MIXER
 		name 'Capture ZC Switch'
-		value.0 false
-		value.1 false
+		value.0 true
+		value.1 true
 	}
 	control.3 {
 		comment.access 'read write'
@@ -24,26 +24,26 @@
 		comment.count 2
 		iface MIXER
 		name 'Capture Switch'
-		value.0 false
-		value.1 false
+		value.0 true
+		value.1 true
 	}
 	control.4 {
 		comment.access 'read write'
 		comment.type BOOLEAN
 		comment.count 2
 		iface MIXER
-		name 'Out1 Playback ZC Switch'
-		value.0 false
-		value.1 false
+		name 'Headphone Playback ZC Switch'
+		value.0 true
+		value.1 true
 	}
 	control.5 {
 		comment.access 'read write'
 		comment.type BOOLEAN
 		comment.count 2
 		iface MIXER
-		name 'Out2 Playback ZC Switch'
-		value.0 false
-		value.1 false
+		name 'Speaker Playback ZC Switch'
+		value.0 true
+		value.1 true
 	}
 	control.6 {
 		comment.access 'read write'
@@ -92,8 +92,8 @@
 		comment.range '0 - 255'
 		iface MIXER
 		name 'PCM Volume'
-		value.0 255
-		value.1 255
+		value.0 220
+		value.1 220
 	}
 	control.11 {
 		comment.access 'read write'
@@ -131,7 +131,7 @@
 		comment.range '0 - 15'
 		iface MIXER
 		name 'Treble Volume'
-		value 15
+		value 0
 	}
 	control.15 {
 		comment.access 'read write'
@@ -188,7 +188,7 @@
 		comment.item.1 Playback
 		iface MIXER
 		name '3D Mode'
-		value Capture
+		value Playback
 	}
 	control.21 {
 		comment.access 'read write'
@@ -226,7 +226,7 @@
 		comment.count 1
 		iface MIXER
 		name 'ALC Capture ZC Switch'
-		value false
+		value true
 	}
 	control.25 {
 		comment.access 'read write'
@@ -235,7 +235,7 @@
 		comment.range '0 - 15'
 		iface MIXER
 		name 'ALC Capture Hold Time'
-		value 0
+		value 9
 	}
 	control.26 {
 		comment.access 'read write'
@@ -244,7 +244,7 @@
 		comment.range '0 - 15'
 		iface MIXER
 		name 'ALC Capture Decay Time'
-		value 3
+		value 9
 	}
 	control.27 {
 		comment.access 'read write'
@@ -253,7 +253,7 @@
 		comment.range '0 - 15'
 		iface MIXER
 		name 'ALC Capture Attack Time'
-		value 2
+		value 3
 	}
 	control.28 {
 		comment.access 'read write'
@@ -306,7 +306,7 @@
 		comment.count 1
 		iface MIXER
 		name 'ZC Timeout Switch'
-		value false
+		value true
 	}
 	control.34 {
 		comment.access 'read write'
@@ -321,7 +321,7 @@
 		comment.type BOOLEAN
 		comment.count 1
 		iface MIXER
-		name 'Right Out2 Playback Invert Switch'
+		name 'Right Speaker Playback Invert Switch'
 		value true
 	}
 	control.36 {
@@ -331,8 +331,8 @@
 		comment.range '0 - 3'
 		iface MIXER
 		name 'Mic Boost'
-		value.0 2
-		value.1 2
+		value.0 3
+		value.1 3
 	}
 	control.37 {
 		comment.access 'read write'
@@ -341,8 +341,8 @@
 		comment.range '0 - 7'
 		iface MIXER
 		name 'Bypass Left Playback Volume'
-		value.0 2
-		value.1 2
+		value.0 0
+		value.1 0
 	}
 	control.38 {
 		comment.access 'read write'
@@ -361,8 +361,8 @@
 		comment.range '0 - 7'
 		iface MIXER
 		name 'Bypass Mono Playback Volume'
-		value.0 2
-		value.1 2
+		value.0 0
+		value.1 0
 	}
 	control.40 {
 		comment.access 'read write'
@@ -378,9 +378,9 @@
 		comment.count 2
 		comment.range '0 - 127'
 		iface MIXER
-		name 'Out1 Playback Volume'
-		value.0 120
-		value.1 120
+		name 'Headphone Playback Volume'
+		value.0 105
+		value.1 105
 	}
 	control.42 {
 		comment.access 'read write'
@@ -388,9 +388,9 @@
 		comment.count 2
 		comment.range '0 - 127'
 		iface MIXER
-		name 'Out2 Playback Volume'
-		value.0 119
-		value.1 119
+		name 'Speaker Playback Volume'
+		value.0 127
+		value.1 127
 	}
 	control.43 {
 		comment.access 'read write'
@@ -399,7 +399,7 @@
 		comment.range '0 - 127'
 		iface MIXER
 		name 'Mono Playback Volume'
-		value 121
+		value 0
 	}
 	control.44 {
 		comment.access 'read write'
@@ -411,7 +411,7 @@
 		comment.item.3 'Digital Mono'
 		iface MIXER
 		name 'Right ADC Mux'
-		value 'Mono (Left)'
+		value 'Digital Mono'
 	}
 	control.45 {
 		comment.access 'read write'
@@ -423,7 +423,7 @@
 		comment.item.3 'Digital Mono'
 		iface MIXER
 		name 'Left ADC Mux'
-		value 'Mono (Left)'
+		value 'Digital Mono'
 	}
 	control.46 {
 		comment.access 'read write'
@@ -471,7 +471,7 @@
 		comment.item.4 Differential
 		iface MIXER
 		name 'Left Line Mux'
-		value PGA
+		value Differential
 	}
 	control.50 {
 		comment.access 'read write'
@@ -610,9 +610,8 @@
 		comment.access 'read write'
 		comment.type ENUMERATED
 		comment.count 1
-		comment.item.0 Auto
-		comment.item.1 On
-		comment.item.2 Off
+		comment.item.0 On
+		comment.item.1 Off
 		iface MIXER
 		name 'Speaker Function'
 		value On
Index: zaurusd/scripts/zaurus-mixer-callback.in
===================================================================
--- zaurusd.orig/scripts/zaurus-mixer-callback.in	2007-11-27 23:32:45.000000000 +0000
+++ zaurusd/scripts/zaurus-mixer-callback.in	2007-11-27 23:36:54.000000000 +0000
@@ -16,8 +16,6 @@
 JACK="$1"
 SPK="$2"
 LEFT="true"
-RLPLAYBACK="false"
-RLBYPASS="false"
 
 case $SPK in
   "On")
@@ -37,8 +35,6 @@
     ;;
   "Headset" | "Mic" | "Line")
     LEFT="false"
-    RLPLAYBACK="true"
-    RLBYPASS="true"
     SPK="Off"
     ;;
   *)
@@ -58,12 +54,6 @@
 }; /Speaker Function/ {
 N
 s:\(Speaker Function.*\n.*value \).*$:\1$SPK:
-}; /Right Mixer Left Playback/ {
-N
-s:\(Right Mixer Left Playback.*\n.*value \).*$:\1$RLPLAYBACK:
-}; /Right Mixer Left Bypass/ {
-N
-s:\(Right Mixer Left Bypass.*\n.*value \).*$:\1$RLBYPASS:
 }; /Left Mixer Playback/ {
 N
 s:\(Left Mixer Playback.*\n.*value \).*$:\1$LEFT: