aboutsummaryrefslogtreecommitdiff
path: root/ucm2/HDA-Intel/HiFi-dual.conf
blob: 174fef4787b198ab83482b361c921bd2568069ca (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
SectionVerb {
	Value {
		TQ "HiFi"
	}

	EnableSequence [
		cset "name='Front Playback Volume' 100%"
		cset "name='Front Playback Switch' on"
		cset "name='Rear-Panel Capture Volume' 100%"
		cset "name='Rear-Panel Capture Switch' on"
	]

	DisableSequence [
		cset "name='Front Playback Volume' 0"
		cset "name='Front Playback Switch' off"
		cset "name='Rear-Panel Capture Volume' 0"
		cset "name='Rear-Panel Capture Switch' off"
	]
}

SectionDevice."Speaker" {
	Comment "Speaker"

	Value {
		PlaybackPriority 100
		PlaybackPCM "hw:${CardId},4"
		PlaybackMixerElem "Speaker"
	}

	ConflictingDevice [
		"Headphones"
	]
}

SectionDevice."Line1" {
	Comment "Line Out"

	Value {
		PlaybackPriority 200
		PlaybackPCM "hw:${CardId}"
		JackControl "Line Out Jack"
		JackHWMute "Speaker"
	}
}

SectionDevice."Headphones" {
	Comment "Headphones"

	Value {
		PlaybackPriority 300
		PlaybackPCM "hw:${CardId},4"
		PlaybackMixerElem "Headphone"
		JackControl "Front Headphone Jack"
		JackHWMute "Speaker"
	}

	ConflictingDevice [
		"Speaker"
	]
}

SectionDevice."Line2" {
	Comment "Rear Line In"

	Value {
		CapturePriority 200
		CapturePCM "hw:${CardId}"
		JackControl "Line Jack"
	}

	ConflictingDevice [
		"Mic2"
	]

	EnableSequence [
		cset "name='Input Source' Line"
		If.0 {
			Condition {
				Type ControlExists
				Control "name='Line Boost Volume'"
			}
			True {
				cset "name='Line Boost Volume' 3"
			}
		}
	]
}

SectionDevice."Mic2" {
	Comment "Rear Microphone"

	Value {
		CapturePriority 300
		CapturePCM "hw:${CardId}"
		JackHWMute "Line2"
	}

	ConflictingDevice [
		"Line2"
	]

	EnableSequence [
		cset "name='Input Source' Rear Mic"
	]
}

SectionDevice."Mic1" {
	Comment "Front Microphone"

	Value {
		CapturePriority 100
		CapturePCM "hw:${CardId},4"
		CaptureMixerElem "Front-Panel"
		JackControl "Front Mic Jack"
	}
}