This file is indexed.

/usr/share/alsa/ucm/Tuna/VoiceCall is in libasound2-data 1.1.0-0ubuntu1.

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
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
# Use case Configuration for TI Tuna RF MODEM Voice Call
# By Liam Girdwood <lrg@ti.com>
# Adapted to Ubuntu Touch by David Henningsson <david.henningsson@canonical.com>

SectionVerb {

	EnableSequence [
		cdev "hw:Tuna"

		# Enable ABE sidetone paths at 0dB (needs tuned)
		cset "name='Sidetone Mixer Capture' 1"
		cset "name='Sidetone Mixer Playback' 1"
		cset "name='SDT DL Volume' 120"
		cset "name='SDT UL Volume' 120"

		# Enable ABE DL1 Voice at 0dB
		cset "name='DL1 Mixer Multimedia' 1"
		cset "name='DL1 Mixer Voice' 1"
		cset "name='DL1 Voice Playback Volume' 120"

		# Only enabled for Speaker
		cset "name='DL2 Mixer Multimedia' 0"
		cset "name='DL2 Mixer Voice' 0"

		# Disable DL2 Mono Mixer
		cset "name='DL2 Mono Mixer' 0"

		# Enable Uplink
		cset "name='Voice Capture Mixer Capture' 1"

		# Todo - Execute modem startup command if required.

		# FIXME: Copying Handset enable here to allow the PCM to be
		# opened. Better fix required, possibly driver-side.
		# Enable ABE paths to PDM and AMIC
		cset "name='DL1 PDM Switch' 1"
		cset "name='MUX_VX0' 11"
		cset "name='MUX_VX1' 12"

		# set ABE capture gains to 0dB
		cset "name='AMIC UL Volume' 120"

		# TWL6040 playback path
		cset "name='Earphone Enable Switch' 1"

		# TWL6040 Capture Path with Main Mic and Sub Mic
		cset "name='Analog Left Capture Route' 1"
		cset "name='Analog Right Capture Route' 1"
		cset "name='Capture Preamplifier Volume' 2"
		# END OF FIXME

		# Enable extra PCMs

		# ABE Music playback path through DL1 at 0dB (tune this)
		cset "name='DL1 Mixer Multimedia' 1"
		cset "name='DL1 Media Playback Volume' 120"

		# Enable VX_REC for call capture at 0dB
		cset "name='Capture Mixer Voice Playback' 1"
		cset "name='Capture Mixer Voice Capture' 1"
		cset "name='VXREC Voice UL Volume' 120"
		cset "name='VXREC Voice DL Volume' 120"

		# set ROUTE_UL path
		cset "name='MUX_UL10' 13"
		cset "name='MUX_UL11' 14"
	]

	DisableSequence [
		cdev "hw:Tuna"

		# Disable Extra PCMs

		# Enable VX_REC for call capture at 0dB
		cset "name='Capture Mixer Voice Playback' 0"
		cset "name='Capture Mixer Voice Capture' 0"
		cset "name='VXREC Voice UL Volume' 0"
		cset "name='VXREC Voice DL Volume' 0"

		# set ROUTE_UL path
		cset "name='MUX_UL10' 0"
		cset "name='MUX_UL11' 0"

		# disable ABE Music path to near end
		cset "name='DL1 Mixer Tones' 0"
		cset "name='DL1 Tones Playback Volume' 0"

		# ABE mute tone playback path through DL2
		cset "name='DL2 Mixer Tones' 0"
		cset "name='DL2 Tones Playback Volume' 0"

		# Todo - Execute modem shutdown command if required.

		# Disable ABE sidetone paths and mute (needs tuned)
		cset "name='Sidetone Mixer Capture' 0"
		cset "name='Sidetone Mixer Playback' 0"
		cset "name='SDT DL Volume' 0"
		cset "name='SDT UL Volume' 0"

		# Disable ABE DL1 Voice and mute
		cset "name='DL1 Mixer Voice' 0"
		cset "name='DL1 Voice Playback Volume' 0"

		# Enable DL2 Multimedia
		cset "name='DL2 Mixer Multimedia' 1"

		# Enable DL2 Mono Mixer
		cset "name='DL2 Mono Mixer' 1"

		# Disable Uplink
		cset "name='Voice Capture Mixer Capture' 0"

		# FIXME: Copying Handset disable here to allow the PCM to be
		# opened. Better fix required, possibly driver-side.
		# Set SDP device for following cset commands
		cdev "hw:Tuna"

		# Enable ABE paths
		cset "name='DL1 PDM Switch' 0"
		cset "name='MUX_VX0' 0"
		cset "name='MUX_VX1' 0"

		# mute ABE capture gains
		cset "name='AMIC UL Volume' 120"

		# TWL6040 playback path
		cset "name='HS Right Playback' 0"
		cset "name='HS Left Playback' 0"

		# TWL6040 Capture path
		cset "name='Analog Left Capture Route' 3"
		cset "name='Analog Right Capture Route' 3"
		cset "name='Capture Preamplifier Volume' 0"
		# END OF FIXME
	]

	# QoS and ALSA PCMs
	Value {
		TQ "Voice"

		CapturePCM "hw:Tuna,1"
		PlaybackPCM "hw:Tuna,0"
	}
}

SectionDevice."Earpiece" {
	#Name "Earpiece"
	Comment "Earpiece output"

	# FIXME
	ConflictingDevice [
		"Headphones"
		"Speaker"
	]

	EnableSequence [
	]
	DisableSequence [
	]

	Value {
		PlaybackChannels "2"
	}
}

SectionDevice."Headphones" {
	#Name "Earpiece"
	Comment "Headphone output"

	# FIXME
	ConflictingDevice [
		"Earpiece"
		"Speaker"
	]

	EnableSequence [
	]
	DisableSequence [
	]

	Value {
		PlaybackChannels "2"
	}
}

SectionDevice."Speaker" {
	#Name "Earpiece"
	Comment "Speaker output"

	# FIXME
	ConflictingDevice [
		"Earpiece"
		"Headphones"
	]

	EnableSequence [
	]
	DisableSequence [
	]

	Value {
		PlaybackChannels "2"
	}
}


SectionDevice."Handset" {
	Comment "Main mic input"

	# FIXME
	ConflictingDevice [
		"Headset"
	]

	EnableSequence [
	]
	DisableSequence [
	]

	Value {
		CaptureChannels "2"
	}
}

SectionDevice."Headset" {
	Comment "Headset mic input"

	# FIXME
	ConflictingDevice [
		"Handset"
	]

	EnableSequence [
	]
	DisableSequence [
	]

	Value {
		CaptureChannels "2"
	}
}