This file is indexed.

/usr/share/alsa/ucm/chtrt5645/HiFi.conf is in libasound2-data 1.1.3-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
SectionVerb {
	# ALSA PCM
	Value {
		TQ "HiFi"

		# ALSA PCM device for HiFi
		PlaybackPCM "hw:chtrt5645,0"
		CapturePCM "hw:chtrt5645,0"
	}

	EnableSequence [
		cdev "hw:chtrt5645"

		# Enable audio output path
		cset "name='codec_out1 mix 0 pcm0_in Switch' on"
		cset "name='media0_out mix 0 media1_in Switch' on"

		cset "name='media1_in Gain 0 Ramp Delay' 50"
		cset "name='media1_in Gain 0 Switch' on"
		cset "name='media1_in Gain 0 Volume' 80% 80%"

		cset "name='pcm0_in Gain 0 Ramp Delay' 50"
		cset "name='pcm0_in Gain 0 Switch' on"
		cset "name='pcm0_in Gain 0 Volume' 80% 80%"

		cset "name='codec_out1 Gain 0 Ramp Delay' 50"
		cset "name='codec_out1 Gain 0 Switch' on"
		cset "name='codec_out1 Gain 0 Volume' 70% 70%"

		# Enable audio input path
		cset "name='pcm1_out mix 0 media_loop2_in Switch' on"
		cset "name='media_loop2_out mix 0 codec_in0 Switch' on"

		cset "name='codec_in0 Gain 0 Ramp Delay' 50"
		cset "name='codec_in0 Gain 0 Switch' on"
		cset "name='codec_in0 Gain 0 Volume' 80% 80%"

		cset "name='media_loop2_out Gain 0 Ramp Delay' 50"
		cset "name='media_loop2_out Gain 0 Switch' on"
		cset "name='media_loop2_out Gain 0 Volume' 80% 80%"

		cset "name='pcm1_out Gain 0 Ramp Delay' 50"
		cset "name='pcm1_out Gain 0 Switch' on"
		cset "name='pcm1_out Gain 0 Volume' 80% 80%"

		# Output Configuration
		cset "name='DAC L2 Mux' 'IF1 DAC'"
		cset "name='DAC R2 Mux' 'IF1 DAC'"
		cset "name='Mono DAC MIXL DAC L2 Switch' on"
		cset "name='Mono DAC MIXR DAC R2 Switch' on"
		cset "name='DAC2 Playback Switch' on"

		cset "name='HPOVOL MIXL DAC2 Switch' on"
		cset "name='HPOVOL MIXR DAC2 Switch' on"
		cset "name='HPO MIX HPVOL Switch' on"
		cset "name='HPOVOL L Switch' on"
		cset "name='HPOVOL R Switch' on"

		cset "name='SPK MIXL DAC L2 Switch' on"
		cset "name='SPK MIXR DAC R2 Switch' on"
		cset "name='SPOL MIX SPKVOL L Switch' on"
		cset "name='SPOR MIX SPKVOL R Switch' on"
		cset "name='SPKVOL L Switch' on"
		cset "name='SPKVOL R Switch' on"

		# Input Configuration
		cset "name='Stereo1 DMIC Mux' 0"
		cset "name='Stereo1 ADC2 Mux' 1"
		cset "name='ADC Capture Switch' on"
		cset "name='ADC Capture Volume' 31"
		cset "name='ADC Boost Capture Volume' 3"
		cset "name='Mono ADC Capture Volume' 63"
		cset "name='Mono ADC Boost Capture Volume' 2"
		cset "name='IN Capture Volume' 63"
		cset "name='I2S2 Func Switch' on"

	]

	DisableSequence [
		cdev "hw:chtrt5645"

		# Disable audio output path
		cset "name='codec_out1 mix 0 pcm0_in Switch' off"
		cset "name='media0_out mix 0 media1_in Switch' off"

		cset "name='media1_in Gain 0 Switch' off"
		cset "name='pcm0_in Gain 0 Switch' off"
		cset "name='codec_out1 Gain 0 Switch' off"

		# Disable audio input path
		cset "name='pcm1_out mix 0 media_loop2_in Switch' off"
		cset "name='media_loop2_out mix 0 codec_in0 Switch' off"

		cset "name='media_loop2_out Gain 0 Switch' off"
		cset "name='pcm1_out Gain 0 Switch' off"
		cset "name='codec_in0 Gain 0 Switch' off"
	]
}

SectionDevice."Speaker" {
	Comment "Speaker"

	Value {
		PlaybackChannels "2"
	}

	ConflictingDevice [
		"Headphone"
	]

	EnableSequence [
		cdev "hw:chtrt5645"

		cset "name='Ext Spk Switch' on"
		cset "name='Speaker Channel Switch' on"
		cset "name='Speaker Playback Volume' 39"
	]

	DisableSequence [
		cdev "hw:chtrt5645"

		cset "name='Ext Spk Switch' off"
		cset "name='Speaker Channel Switch' off"
	]
}

SectionDevice."Headphone".0 {
	Comment "Headphones"

	Value {
		PlaybackChannels "2"
		JackControl "Headphone Jack"
		JackHWMute "Speaker"
	}

	ConflictingDevice [
		"Speaker"
	]

	EnableSequence [
		cdev "hw:chtrt5645"

		cset "name='Headphone Switch' on"
		cset "name='Headphone Channel Switch' on"
		cset "name='Headphone Playback Volume' 39"
	]

	DisableSequence [
		cdev "hw:chtrt5645"

		cset "name='Headphone Switch' off"
		cset "name='Headphone Channel Switch' off"
	]
}

SectionDevice."Mic".0 {
	Comment "Internal Microphone"

	Value {
		CaptureChannels "2"
		CapturePriority "150"
	}

	EnableSequence [
		cdev "hw:chtrt5645"

		cset "name='Int Mic Switch' on"
		cset "name='Sto1 ADC MIXL ADC2 Switch' on"
		cset "name='Sto1 ADC MIXR ADC2 Switch' on"
	]

	DisableSequence [
		cdev "hw:chtrt5645"

		cset "name='Sto1 ADC MIXL ADC2 Switch' off"
		cset "name='Sto1 ADC MIXR ADC2 Switch' off"
		cset "name='Int Mic Switch' off"
	]
}

SectionDevice."HSMic".0 {
	Comment "Headset Microphone"

	Value {
		CaptureChannels "2"
		JackControl "Headset Mic Jack"
		JackHWMute "Mic"
	}

	EnableSequence [
		cdev "hw:chtrt5645"

		cset "name='Headset Mic Switch' on"
		cset "name='RECMIXL BST1 Switch' on"
		cset "name='RECMIXR BST1 Switch' on"
		cset "name='Sto1 ADC MIXL ADC1 Switch' on"
		cset "name='Sto1 ADC MIXR ADC1 Switch' on"
	]

	DisableSequence [
		cdev "hw:chtrt5645"

		cset "name='Headset Mic Switch' off"
		cset "name='RECMIXL BST1 Switch' off"
		cset "name='RECMIXR BST1 Switch' off"
		cset "name='Sto1 ADC MIXL ADC1 Switch' off"
		cset "name='Sto1 ADC MIXR ADC1 Switch' off"
	]
}