summaryrefslogtreecommitdiff
path: root/ucm-config/veyron_fievel/VEYRON-I2S/HiFi.conf
blob: f23f3bc4ea834c918032f9f3fd4318913049fb2f (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
SectionVerb {
	Value {
		OutputDspName "speaker_eq"
		MinBufferLevel "512"
		FullySpecifiedUCM "1"
	}

	EnableSequence [
		cdev "hw:VEYRONI2S"

		cset "name='Left Speaker Mixer Left DAC Switch' on"
		cset "name='Right Speaker Mixer Right DAC Switch' on"
		cset "name='Digital EQ 3 Band Switch' off"
		cset "name='Digital EQ 5 Band Switch' off"
		cset "name='Digital EQ 7 Band Switch' off"
		cset "name='Biquad Switch' off"
		cset "name='Filter Mode' Music"
		cset "name='ADC Oversampling Rate' 0"

		cset "name='DMIC Mux' DMIC"
		cset "name='MIC2 Mux' IN34"
		cset "name='Right ADC Mixer MIC2 Switch' on"
		cset "name='Left ADC Mixer MIC2 Switch' on"
		cset "name='MIC2 Volume' 20"
		cset "name='Headset Mic Switch' off"
		cset "name='Int Mic Switch' on"

		cset "name='ADCR Boost Volume' 4"
		cset "name='ADCL Boost Volume' 4"
		cset "name='ADCR Volume' 11"
		cset "name='ADCL Volume' 11"

		cset "name='Left Speaker Mixer Left DAC Switch' on"
		cset "name='Right Speaker Mixer Right DAC Switch' on"
		cset "name='Speaker Left Mixer Volume' 2"
		cset "name='Speaker Right Mixer Volume' 2"
		cset "name='Record Path DC Blocking' on"
		cset "name='Playback Path DC Blocking' on"

		cset "name='Speaker Left Switch' off"
		cset "name='Speaker Right Switch' off"
		cset "name='Speaker Switch' off"

		cset "name='Headphone Switch' off"
		cset "name='HP Left Out Switch' off"
		cset "name='HP Right Out Switch' off"
		cset "name='Headphone Left Switch' on"
		cset "name='Headphone Right Switch' on"
	]

	DisableSequence [
	]
}

SectionDevice."Headphone".0 {
	Value {
		PlaybackPCM "hw:VEYRONI2S,0"
		MixerName "Headphone"
		JackType "gpio"
		JackName "VEYRON-I2S Headset Jack"
		OutputDspName ""
	}

	EnableSequence [
		cdev "hw:VEYRONI2S"

		cset "name='HP Left Out Switch' on"
		cset "name='HP Right Out Switch' on"
		cset "name='Headphone Switch' on"
	]
	DisableSequence [
		cdev "hw:VEYRONI2S"

		cset "name='Headphone Switch' off"
		cset "name='HP Left Out Switch' off"
		cset "name='HP Right Out Switch' off"
	]
}

SectionDevice."Mic".0 {
	Value {
		CapturePCM "hw:VEYRONI2S,0"
		MixerName "Headset Mic"
		JackType "gpio"
		JackName "VEYRON-I2S Headset Jack"
	}

	EnableSequence [
		cdev "hw:VEYRONI2S"

		cset "name='Int Mic Switch' off"
		cset "name='DMIC Mux' ADC"
		cset "name='Headset Mic Switch' on"
		cset "name='Record Path DC Blocking' on"
	]

	DisableSequence [
		cdev "hw:VEYRONI2S"

		cset "name='Headset Mic Switch' off"
		cset "name='DMIC Mux' DMIC"
		cset "name='Int Mic Switch' on"
		cset "name='Record Path DC Blocking' off"
	]
}

SectionDevice."HDMI".0 {
	Value {
		PlaybackPCM "hw:VEYRONI2S,1"
		JackName "VEYRON-I2S HDMI Jack"
		JackType "gpio"
		EDIDFile "/sys/class/drm/card1-HDMI-A-1/edid"
	}
	EnableSequence [
		cdev "hw:VEYRONI2S"
	]
	DisableSequence [
		cdev "hw:VEYRONI2S"
	]
}