aboutsummaryrefslogtreecommitdiff
blob: 5996e4a26ca5adb98908ac39292519b530521774 (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
SectionVerb {
	EnableSequence [
		cset "name='Headphone Playback Switch' off"
		cset "name='Headphone Source Playback Route' DAC"
		cset "name='Line In Playback Switch' off"
		cset "name='Line Out Playback Switch' off"
		cset "name='Line Out Source Playback Route' Mono Differential"
		cset "name='Mic1 Playback Switch' off"
		cset "name='Mic2 Playback Switch' off"
		cset "name='AIF1 DA0 Playback Volume' 160"
		cset "name='AIF3 ADC Source Capture Route' None"
		cset "name='AIF2 DAC Source Playback Route' None"
		cset "name='DAC Playback Switch' on"
		cset "name='DAC Playback Volume' 160"
		cset "name='ADC Digital DAC Playback Switch' off"
		cset "name='AIF1 Slot 0 Digital DAC Playback Switch' on"
		cset "name='AIF2 Digital DAC Playback Switch' off"
		cset "name='DAC Reversed Playback Switch' off"
		cset "name='Earpiece Playback Switch' off"
		cset "name='Earpiece Source Playback Route' DACL"

		cset "name='Line In Capture Switch' off"
		cset "name='Mic1 Capture Switch' off"
		cset "name='Mic1 Boost Volume' 7"
		cset "name='Mic2 Capture Switch' off"
		cset "name='Mic2 Boost Volume' 7"
		cset "name='Mixer Capture Switch' off"
		cset "name='Mixer Reversed Capture Switch' off"
		cset "name='ADC Capture Volume' 160"
		cset "name='ADC Gain Capture Volume' 7"
		cset "name='AIF1 AD0 Capture Volume' 160"
		cset "name='AIF1 Data Digital ADC Capture Switch' on"
		cset "name='AIF2 ADC Mixer ADC Capture Switch' off"
		cset "name='AIF2 ADC Mixer AIF1 DA0 Capture Switch' off"
		cset "name='AIF2 ADC Mixer AIF2 DAC Rev Capture Switch' off"
		cset "name='AIF2 ADC Mixer AIF1 DA0 Capture Switch' off"
		cset "name='AIF2 ADC Mixer AIF1 DA0 Capture Switch' off"
	]

        DisableSequence [
        ]

	Value {
	}
}

SectionDevice."Speaker" {
	Comment "Internal speaker"
	EnableSequence [
		cset "name='AIF1 DA0 Stereo Playback Route' Mix Mono"
		cset "name='Line Out Playback Switch' on"
		cset "name='Line Out Playback Volume' 100%"
	]

	DisableSequence [
		cset "name='Line Out Playback Switch' off"
	]

	Value {
		PlaybackVolume "Line Out Playback Volume"
		PlaybackSwitch "Line Out Playback Switch"
		PlaybackChannels 2
		PlaybackPriority 300
		PlaybackPCM "hw:${CardId},0"
	}
}
SectionDevice."Earpiece" {
	Comment "Internal Earpiece"
	EnableSequence [
		cset "name='AIF1 DA0 Stereo Playback Route' Mix Mono"
		cset "name='Earpiece Playback Switch' on"
		cset "name='Earpiece Playback Volume' 100%"
	]

	DisableSequence [
		cset "name='Earpiece Playback Switch' off"
	]

	Value {
		PlaybackVolume "Earpiece Playback Volume"
		PlaybackSwitch "Earpiece Playback Switch"
		PlaybackChannels 2
		PlaybackPriority 200
		PlaybackPCM "hw:${CardId},0"
	}
}
SectionDevice."Mic" {
	Comment "Internal Microphone"
	ConflictingDevice [
		"Headset"
	]
	EnableSequence [
		cset "name='Mic1 Capture Switch' on"
	]
	DisableSequence [
		cset "name='Mic1 Capture Switch' off"
	]
	Value {
		CapturePriority 100
		CapturePCM "hw:${CardId},0"
		CaptureChannels 2
		CaptureVolume "ADC Capture Volume"
		CaptureSwitch "Mic1 Capture Switch"
	}
}
SectionDevice."Headset" {
	Comment "Headset Microphone"
	ConflictingDevice [
		"Mic"
	]
	EnableSequence [
		cset "name='Mic2 Capture Switch' on"
	]
	DisableSequence [
		cset "name='Mic2 Capture Switch' off"
	]
	Value {
		CapturePriority 500
		CapturePCM "hw:${CardId},0"
		CaptureChannels 2
		CaptureVolume "ADC Capture Volume"
		CaptureSwitch "Mic2 Capture Switch"
		JackControl "Headset Microphone Jack"
	}
}
SectionDevice."Headphones" {
	Comment "Headphones"
	EnableSequence [
		cset "name='AIF1 DA0 Stereo Playback Route' Stereo"
		cset "name='Headphone Playback Switch' on"
		cset "name='Headphone Playback Volume' 70%"
	]

	DisableSequence [
		cset "name='Headphone Playback Switch' off"
	]

	Value {
		PlaybackVolume "Headphone Playback Volume"
		PlaybackSwitch "Headphone Playback Switch"
		PlaybackChannels 2
		PlaybackPriority 500
		PlaybackPCM "hw:${CardId},0"
		JackControl "Headphone Jack"
	}
}