summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2012-06-11 10:18:21 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2012-06-11 13:08:35 +0530
commit2948b9c93afa789faf36f29d64d1de3e7df679a1 (patch)
tree8c6068b41b4595278b5f2d839180afae01ce2ab4 /data
parentcc8e7700980f85979737d532f6f61a1a8e880e22 (diff)
Update UCM config
This pulls in UCM updates from Linaro for the Pandaboard ES and adapts it for Tuna usage. Some tweaking might be necessary for input paths, at least in the VoiceCall verb.
Diffstat (limited to 'data')
-rw-r--r--data/alsa/ucm/Tuna/FMAnalog46
-rw-r--r--data/alsa/ucm/Tuna/HiFi760
-rw-r--r--data/alsa/ucm/Tuna/Tuna.conf29
-rw-r--r--data/alsa/ucm/Tuna/VoiceCall707
-rw-r--r--data/alsa/ucm/Tuna/hifi498
-rw-r--r--data/alsa/ucm/Tuna/hifiLP500
-rw-r--r--data/alsa/ucm/Tuna/voiceCall67
7 files changed, 1474 insertions, 1133 deletions
diff --git a/data/alsa/ucm/Tuna/FMAnalog b/data/alsa/ucm/Tuna/FMAnalog
deleted file mode 100644
index 372caea..0000000
--- a/data/alsa/ucm/Tuna/FMAnalog
+++ /dev/null
@@ -1,46 +0,0 @@
-# Use case Configurationfor TI Tuna HiFi Music
-# By Liam Girdwood <lrg@slimlogic.co.uk>
-
-SectionVerb {
- EnableSequence [
- cdev "hw:Tuna"
- cset "name='AMIC_UL PDM Switch' 1"
- cset "name='MUX_UL00' 9"
- cset "name='MUX_UL01' 10"
- cset "name='Capture Volume' 4"
- ]
-
-
- DisableSequence [
- cdev "hw:Tuna"
- cset "name='AMIC_UL PDM Switch' 0"
- cset "name='MUX_UL00' 0"
- cset "name='MUX_UL01' 0"
- cset "name='Capture Volume' 0"
- ]
-
- # Optional TQ and ALSA PCMs
- Value {
- TQ "Music"
- CapturePCM "hw:0,0"
- }
-}
-
-SectionDevice."Headset".0 {
- Comment "Tuna 3.5mm Headset"
-
- EnableSequence [
- cdev "hw:Tuna"
- cset "name='Analog Left Capture Route' 2"
- cset "name='Analog Right Capture Route' 2"
- cset "name='Capture Preamplifier Volume' 2"
- ]
-
- DisableSequence [
- cdev "hw:Tuna"
- cset "name='Analog Left Capture Route' 3"
- cset "name='Analog Right Capture Route' 3"
- cset "name='Capture Preamplifier Volume' 0"
- ]
-}
-
diff --git a/data/alsa/ucm/Tuna/HiFi b/data/alsa/ucm/Tuna/HiFi
new file mode 100644
index 0000000..a108696
--- /dev/null
+++ b/data/alsa/ucm/Tuna/HiFi
@@ -0,0 +1,760 @@
+# Use case Configuration for TI Tuna HiFi audio playback and capture
+# By Liam Girdwood <lrg@ti.com>
+# Updated by Sebastien Jan <s-jan@ti.com>
+
+######### Main Verb Config #################
+
+SectionVerb {
+
+ EnableSequence [
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # Enable ABE playback path through DL1
+ cset "name='DL1 Mixer Multimedia' 1"
+ cset "name='Sidetone Mixer Playback' 1"
+ cset "name='DL1 PDM Switch' 1"
+
+ # set ABE playback gains to 0dB
+ cset "name='DL1 Media Playback Volume' 120"
+ cset "name='DL2 Media Playback Volume' 120"
+ cset "name='SDT DL Volume' 120"
+
+ # Enable ABE PDM-UL Capture path
+ cset "name='MUX_UL10' 11"
+ cset "name='MUX_UL11' 12"
+
+ # set ABE capture gains to 0dB
+ cset "name='AMIC UL Volume' 120"
+ ]
+
+ DisableSequence [
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # Disable ABE playback path through DL1
+ cset "name='DL1 Mixer Multimedia' 0"
+ cset "name='Sidetone Mixer Playback' 0"
+ cset "name='DL1 PDM Switch' 0"
+
+ # mute ABE playback gains
+ cset "name='DL1 Media Playback Volume' 0"
+ cset "name='DL2 Media Playback Volume' 0"
+ cset "name='SDT DL Volume' 0"
+
+ # Disable ABE PDM-UL Capture path
+ cset "name='MUX_UL10' 0"
+ cset "name='MUX_UL11' 0"
+
+ # mute ABE capture gains
+ cset "name='AMIC UL Volume' 0"
+
+ ]
+
+ # ALSA PCM
+ Value {
+
+ TQ "HiFi"
+
+ # ALSA PCM device for HiFi
+ PlaybackPCM "hw:Tuna,0"
+ CapturePCM "hw:Tuna,1"
+ }
+}
+
+###### Headset Devices Options ############
+
+SectionDevice."Headset" {
+ Comment "Tuna 3.5mm Headset playback and capture"
+
+ # Headset is mutually exclusive to some devices
+ ConflictingDevice [
+ #"HeadsetLP"
+ "Headphones"
+ "HeadphonesLP"
+ "Mainmic"
+ "Submic"
+ "Line"
+ #"FMRadio"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='HS Left Playback' 1"
+ cset "name='HS Right Playback' 1"
+
+ # TWL6040 Capture Path
+ cset "name='Analog Left Capture Route' 0"
+ cset "name='Analog Right Capture Route' 0"
+ cset "name='Capture Preamplifier Volume' 2"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # 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"
+ ]
+
+ TransitionSequence."Earphone" [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='HS Right Playback' 0"
+ cset "name='HS Left Playback' 0"
+
+ # TWL6040 playback path
+ cset "name='Earphone Enable Switch' 1"
+
+ # Disable HS TWL6040 Capture path
+ cset "name='Analog Left Capture Route' 3"
+ cset "name='Analog Right Capture Route' 3"
+ cset "name='Capture Preamplifier Volume' 0"
+ ]
+
+ Value {
+ # Default ALSA volume gain and mute kcontrols
+ CaptureVolume "name='Capture Volume' 4"
+ PlaybackVolume "name='Headset Playback Volume' 13"
+ PlaybackChannels "2"
+ CaptureChannels "2"
+ }
+}
+
+#SectionDevice."HeadsetLP" {
+# Comment "Low Power Tuna 3.5mm Headset playback and capture"
+#
+# # HeadsetLP is mutually exclusive to some devices
+# ConflictingDevice [
+# "Headphones"
+# "HeadphonesLP"
+# "Headset"
+# "Mainmic"
+# "Submic"
+# "Line"
+# #"FMRadio"
+# ]
+#
+# EnableSequence [
+#
+# # Set SDP device for following cset commands
+# cdev "hw:Tuna"
+#
+# # TWL6040 playback path
+# cset "name='HS Left Playback' 1"
+# cset "name='HS Right Playback' 1"
+#
+# # TWL6040 Capture Path
+# cset "name='Analog Left Capture Route' 0"
+# cset "name='Analog Right Capture Route' 0"
+# cset "name='Capture Preamplifier Volume' 2"
+# ]
+#
+# DisableSequence [
+#
+# # Set SDP device for following cset commands
+# cdev "hw:Tuna"
+#
+# # 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"
+# ]
+#
+# TransitionSequence."Earphone" [
+#
+# # Set SDP device for following cset commands
+# cdev "hw:Tuna"
+#
+# # TWL6040 playback path
+# cset "name='HS Right Playback' 0"
+# cset "name='HS Left Playback' 0"
+#
+# # TWL6040 playback path
+# cset "name='Earphone Enable Switch' 1"
+#
+# # Disable HS TWL6040 Capture path
+# cset "name='Analog Left Capture Route' 3"
+# cset "name='Analog Right Capture Route' 3"
+# cset "name='Capture Preamplifier Volume' 0"
+# ]
+#
+# Value {
+# # Default ALSA volume gain and mute kcontrols
+# CaptureVolume "name='Capture Volume' 4"
+# PlaybackVolume "name='Headset Playback Volume' 13"
+# PlaybackPCM "hw:Tuna,6"
+# PlaybackChannels "2"
+# CaptureChannels "2"
+# }
+#}
+
+###### Headphones Devices Options ############
+
+SectionDevice."Headphones" {
+ Comment "Tuna 3.5mm Headphones playback"
+
+ # Headphones is mutually exclusive to some devices
+ ConflictingDevice [
+ "Headset"
+ #"HeadsetLP"
+ "HeadphonesLP"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='HS Left Playback' 1"
+ cset "name='HS Right Playback' 1"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='HS Right Playback' 0"
+ cset "name='HS Left Playback' 0"
+ ]
+
+ TransitionSequence."Earphone" [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='HS Right Playback' 0"
+ cset "name='HS Left Playback' 0"
+
+ # TWL6040 playback path
+ cset "name='Earphone Enable Switch' 1"
+ ]
+
+ Value {
+ # Default ALSA volume gain and mute kcontrols
+ PlaybackVolume "name='Headset Playback Volume' 13"
+ PlaybackChannels "2"
+ }
+}
+
+SectionDevice."HeadphonesLP" {
+ Comment "Low Power Tuna 3.5mm Headphones playback"
+
+ # Headphones is mutually exclusive to some devices
+ ConflictingDevice [
+ "Headset"
+ #"HeadsetLP"
+ "Headphones"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='HS Left Playback' 1"
+ cset "name='HS Right Playback' 1"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='HS Right Playback' 0"
+ cset "name='HS Left Playback' 0"
+ ]
+
+ TransitionSequence."Earphone" [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='HS Right Playback' 0"
+ cset "name='HS Left Playback' 0"
+
+ # TWL6040 playback path
+ cset "name='Earphone Enable Switch' 1"
+ ]
+
+ Value {
+ # Default ALSA volume gain and mute kcontrols
+ PlaybackVolume "name='Headset Playback Volume' 13"
+ PlaybackPCM "plughw:Tuna,6"
+ PlaybackChannels "2"
+ }
+}
+
+########### Earphone Device Options ################
+
+SectionDevice."Earphone" {
+ Comment "Earphone playback"
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='Earphone Enable Switch' 1"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='Earphone Enable Switch' 0"
+ ]
+
+ TransitionSequence."Headset" [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='Earphone Enable Switch' 0"
+
+ # TWL6040 playback path
+ cset "name='HS Right Playback' 1"
+ cset "name='HS Left Playback' 1"
+ ]
+
+ Value {
+ # Default ALSA volume gain and mute kcontrols
+ PlaybackVolume "name='Earphone Enable Volume' 13"
+ PlaybackChannels "2"
+ }
+}
+
+########### Handsfree Device Options ################
+
+SectionDevice."Handsfree" {
+ Comment "Tuna Handsfree Speaker playback"
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE playback path through DL2
+ cset "name='DL2 Mixer Multimedia' 1"
+
+ # TWL6040 playback path
+ cset "name='HF Left Playback' 1"
+ cset "name='HF Right Playback' 1"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE playback path through DL2
+ cset "name='DL2 Mixer Multimedia' 0"
+
+ # TWL6040 playback path
+ cset "name='HF Left Playback' 0"
+ cset "name='HF Right Playback' 0"
+ ]
+
+ Value {
+ # Default ALSA volume gain and mute kcontrols
+ PlaybackVolume "name='Handsfree Playback Volume' 13"
+ PlaybackChannels "2"
+ }
+}
+
+############ Main Mic Device #########################
+
+SectionDevice."Mainmic" {
+ Comment "Main Microphone Left Channel Capture"
+
+ ConflictingDevice [
+ "Headset"
+ #"HeadsetLP"
+ "Line"
+ #"FMRadio"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 Capture Path
+ cset "name='Analog Left Capture Route' 0"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 Capture path
+ cset "name='Analog Left Capture Route' 3"
+ ]
+
+ Value {
+ # Default ALSA volume gain and mute kcontrols
+ CaptureVolume "name='Capture Volume' 4"
+ CaptureChannels "2"
+ }
+}
+
+############ Sub Mic Device #########################
+
+SectionDevice."Submic" {
+ Comment "Sub Microphone Right Channel Capture"
+
+ ConflictingDevice [
+ "Headset"
+ #"HeadsetLP"
+ "Line"
+ #"FMRadio"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 Capture Path
+ cset "name='Analog Right Capture Route' 1"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 Capture path
+ cset "name='Analog Right Capture Route' 3"
+ ]
+
+ Value {
+ # Default ALSA volume gain and mute kcontrols
+ CaptureVolume "name='Capture Volume' 4"
+ CaptureChannels "2"
+ }
+}
+
+############ Line In Device #########################
+
+SectionDevice."Line" {
+ Comment "Line In Capture"
+
+ ConflictingDevice [
+ "Headset"
+ #"HeadsetLP"
+ "Submic"
+ "Mainmic"
+ #"FMRadio"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 Capture Path
+ cset "name='Analog Right Capture Route' 2"
+ cset "name='Analog Left Capture Route' 2"
+
+ # TWL6040 Line Capture to 0dB
+ cset "name='Aux FM Volume' 3"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 Capture path
+ cset "name='Analog Right Capture Route' 3"
+ cset "name='Analog Left Capture Route' 3"
+
+ # TWL6040 Mute Line Capture
+ cset "name='Aux FM Volume' 0"
+ ]
+
+ Value {
+ # Default ALSA volume gain and mute kcontrols
+ CaptureVolume "name='Capture Volume' 4"
+ CaptureChannels "2"
+ }
+}
+
+############ FM Analog Radio Device #########################
+
+#SectionDevice."FMRadio" {
+# Comment "FM Radio Analog Playback and Capture"
+#
+# ConflictingDevice [
+# "Headset"
+# "HeadsetLP"
+# "Submic"
+# "Mainmic"
+# "Line"
+# ]
+#
+# EnableSequence [
+#
+# # Set SDP device for following cset commands
+# cdev "hw:Tuna"
+#
+# # enable ABE path for FM playback via DL1
+# cset "name='DL1 Mixer Capture' 1"
+# cset "name='DL1 Capture Playback Volume' 120"
+#
+# # TWL6040 Capture Path
+# cset "name='Analog Right Capture Route' 2"
+# cset "name='Analog Left Capture Route' 2"
+#
+# # TWL6040 Line Capture to 0dB
+# cset "name='Aux FM Volume' 3"
+# ]
+#
+# DisableSequence [
+#
+# # Set SDP device for following cset commands
+# cdev "hw:Tuna"
+#
+# # disable ABE path for FM playback via DL1
+# cset "name='DL1 Mixer Capture' 0"
+# cset "name='DL1 Capture Playback Volume' 0"
+#
+# # TWL6040 Capture path
+# cset "name='Analog Right Capture Route' 3"
+# cset "name='Analog Left Capture Route' 3"
+#
+# # TWL6040 Mute Line Capture
+# cset "name='Aux FM Volume' 0"
+# ]
+#
+# Value {
+# # Default ALSA volume gain and mute kcontrols
+# CaptureVolume "name='Capture Volume' 4"
+# CaptureChannels "2"
+# }
+#}
+
+############ Digital Mic Device #########################
+
+SectionDevice."Dmic" {
+ Comment "Digital Microphones"
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE DMIC Capture path
+ cset "name='MUX_UL00' 1"
+ cset "name='MUX_UL01' 2"
+ cset "name='MUX_UL02' 3"
+ cset "name='MUX_UL03' 4"
+ cset "name='MUX_UL04' 5"
+ cset "name='MUX_UL05' 6"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE DMIC Capture path
+ cset "name='MUX_UL00' 0"
+ cset "name='MUX_UL01' 0"
+ cset "name='MUX_UL02' 0"
+ cset "name='MUX_UL03' 0"
+ cset "name='MUX_UL04' 0"
+ cset "name='MUX_UL05' 0"
+ ]
+
+ Value {
+ # Default ALSA volume gain and mute kcontrols
+ CaptureVolume "name='DMIC1 UL Capture Volume' 30, 30"
+ CaptureVolume "name='DMIC2 UL Capture Volume' 30, 30"
+ CaptureVolume "name='DMIC3 UL Capture Volume' 30, 30"
+ CapturePCM "hw:Tuna,0"
+ }
+}
+
+############ Bluetooth Device #########################
+
+SectionDevice."Bluetooth" {
+ Comment "Bluetooth Playback and Capture"
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # enable 0dB ABE path for BT capture via ROUTE_UL
+ cset "name='MUX_UL10' 7"
+ cset "name='MUX_UL11' 8"
+ cset "name='BT UL Volume' 120"
+
+ # enable ABE DL1 BT path
+ cset "name='DL1 BT_VX Switch' 1"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # Mute ABE path for BT capture via ROUTE_UL
+ cset "name='MUX_UL10' 0"
+ cset "name='MUX_UL11' 0"
+ cset "name='BT UL Volume' 0"
+
+ # enable ABE DL1 BT path
+ cset "name='DL1 BT_VX Switch' 0"
+ ]
+
+ Value {
+ # Default ALSA volume gain and mute kcontrols
+ TQ "Voice"
+ PlaybackPriority "150"
+ CapturePriority "150"
+ PlaybackChannels "2"
+ CaptureChannels "2"
+ }
+}
+
+############ HDMI Device #########################
+
+#SectionDevice."HDMI" {
+# Comment "HDMI Connected Device"
+#
+# EnableSequence [
+# ]
+#
+# DisableSequence [
+# ]
+#
+# Value {
+# PlaybackPCM "hw:OMAP4HDMI,0"
+# }
+#}
+
+############## Play Tone Modifier ####################
+#
+# We have 2 PlayTone modifiers. Each one supports different devices as the
+# path configuration is different depending on the device being used when
+# the modifier is enabled.
+#
+
+SectionModifier."PlayTone" {
+ Comment "Play a ring tone or system sound"
+
+ # For the following devices we need to set the DL2 path
+ SupportedDevice [
+ "Headset"
+ "HeadsetLP"
+ "Headphones"
+ "Earphone"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE playback path through DL2
+ cset "name='DL2 Mixer Tones' 1"
+ cset "name='DL2 Tones Playback Volume' 120"
+ cset "name='DL1 Mixer Tones' 1"
+ cset "name='DL1 Tones Playback Volume' 120"
+
+ # TWL6040 playback path
+ cset "name='HF Left Playback' 1"
+ cset "name='HF Right Playback' 1"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE playback path through DL2
+ cset "name='DL2 Mixer Tones' 0"
+ cset "name='DL2 Tones Playback Volume' 0"
+ cset "name='DL1 Mixer Tones' 0"
+ cset "name='DL1 Tones Playback Volume' 0"
+
+ # TWL6040 playback path
+ cset "name='HF Left Playback' 0"
+ cset "name='HF Right Playback' 0"
+ ]
+
+ # QoS, Mixers and ALSA PCMs
+ Value {
+ TQ "Tones"
+ PlaybackPCM "hw:Tuna,3"
+ PlaybackVolume "name='DL2 Tones Playback Volume' 120"
+ }
+}
+
+SectionModifier."PlayTone" {
+ Comment "Play a ring tone or system sound"
+
+ # For the following devices we dont need to set the DL2 path
+ SupportedDevice [
+ "Handsfree"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE playback path through DL2
+ cset "name='DL2 Mixer Tones' 1"
+ cset "name='DL2 Tones Playback Volume' 120"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ cset "name='DL2 Mixer Tones' 0"
+ ]
+
+ # QoS, Mixers and ALSA PCMs
+ Value {
+ TQ "Tones"
+ PlaybackPCM "hw:Tuna,3"
+ PlaybackVolume "name='DL2 Tones Playback Volume' 120"
+ }
+}
+
diff --git a/data/alsa/ucm/Tuna/Tuna.conf b/data/alsa/ucm/Tuna/Tuna.conf
index 28706e7..8f51442 100644
--- a/data/alsa/ucm/Tuna/Tuna.conf
+++ b/data/alsa/ucm/Tuna/Tuna.conf
@@ -1,30 +1,15 @@
# UCM configuration for SDP4430
SectionUseCase."HiFi" {
- File "hifi"
- Comment "Play HiFi quality Music."
+ File "HiFi"
+ Comment "Play HiFi quality Music."
}
-SectionUseCase."HiFi_Low_Power" {
- File "hifiLP"
- Comment "Play HiFi quality Music in Low Power Mode."
-}
-
-SectionUseCase."Voice_Call" {
- File "voiceCall"
- Comment "Capture and Playback in Voice quality."
-}
-
-SectionUseCase."Voice_Call_IP" {
- File "voiceCall"
- Comment "Capture and Playback in Voice quality."
-}
-
-SectionUseCase."FM_Analog_Radio" {
- File "FMAnalog"
- Comment "Capture FM Analog Radio."
+SectionUseCase."VoiceCall" {
+ File "VoiceCall"
+ Comment "Capture and Playback in Voice quality."
}
SectionDefaults [
- cdev "hw:Tuna"
- exec "echo Im setting defaults"
+ cdev "hw:Tuna"
+ exec "echo Im setting defaults"
]
diff --git a/data/alsa/ucm/Tuna/VoiceCall b/data/alsa/ucm/Tuna/VoiceCall
new file mode 100644
index 0000000..8875fa4
--- /dev/null
+++ b/data/alsa/ucm/Tuna/VoiceCall
@@ -0,0 +1,707 @@
+# Use case Configuration for TI Tuna RF MODEM Voice Call
+# By Liam Girdwood <lrg@ti.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 Voice' 1"
+ cset "name='DL1 Voice Playback Volume' 120"
+
+ # 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
+ ]
+
+
+ DisableSequence [
+ cdev "hw:Tuna"
+
+ # 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"
+
+ # 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"
+
+ # These PCMs are used by the Call management app to start the link and
+ # cannot be used to play or capture call audio.
+ CapturePCM "hw:Tuna,5"
+ PlaybackPCM "hw:Tuna,5"
+ }
+}
+
+###### Headset Devices Options ############
+
+SectionDevice."Headset" {
+ Comment "Tuna 3.5mm Headset call"
+
+ # Headset is mutually exclusive to some devices
+ ConflictingDevice [
+ "Handset"
+ "Handsfree"
+ "Bluetooth"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # 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='HS Left Playback' 1"
+ cset "name='HS Right Playback' 1"
+
+ # TWL6040 Capture Path
+ cset "name='Analog Left Capture Route' 0"
+ cset "name='Analog Right Capture Route' 0"
+ cset "name='Capture Preamplifier Volume' 2"
+ ]
+
+ DisableSequence [
+
+ # 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"
+ ]
+
+ TransitionSequence."Handset" [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='HS Right Playback' 0"
+ cset "name='HS Left Playback' 0"
+
+ # 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"
+ ]
+
+ TransitionSequence."Handsfree" [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # TWL6040 playback path
+ cset "name='HS Right Playback' 0"
+ cset "name='HS Left Playback' 0"
+
+ # ABE playback path through DL2
+ cset "name='DL2 Mixer Voice' 1"
+ cset "name='DL2 Voice Playback Volume' 120"
+
+ # TWL6040 playback path
+ cset "name='HF Left Playback' 1"
+ cset "name='HF Right Playback' 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"
+ ]
+
+ Value {
+ PlaybackChannels "2"
+ CaptureChannels "2"
+ # Default ALSA volume gain and mute kcontrols
+ CaptureVolume "name='Capture Volume' 4"
+ PlaybackVolume "name='Headset Playback Volume' 13"
+ }
+}
+
+########### Handset Device Options ################
+
+SectionDevice."Handset" {
+ Comment "Handset call"
+
+ # Handset is mutually exclusive to some devices
+ ConflictingDevice [
+ "Headset"
+ "Handsfree"
+ "Bluetooth"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # 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"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # Disable ABE paths to PDM and AMIC
+ 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' 0"
+
+ # Disable TWL6040 playback path
+ cset "name='Earphone Enable Switch' 0"
+
+ # TWL6040 Capture Path with Main Mic and Sub Mic
+ cset "name='Analog Left Capture Route' 3"
+ cset "name='Analog Right Capture Route' 3"
+ cset "name='Capture Preamplifier Volume' 0"
+ ]
+
+ TransitionSequence."Headset" [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # Disable TWL6040 playback path
+ cset "name='Earphone Enable Switch' 0"
+
+ # TWL6040 playback path
+ cset "name='HS Left Playback' 1"
+ cset "name='HS Right Playback' 1"
+
+ # TWL6040 Capture Path with Main Mic and Sub Mic
+ cset "name='Analog Left Capture Route' 0"
+ cset "name='Analog Right Capture Route' 0"
+ cset "name='Capture Preamplifier Volume' 2"
+ ]
+
+ TransitionSequence."Handsfree" [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # Disable TWL6040 playback path
+ cset "name='Earphone Enable Switch' 0"
+
+ # ABE playback path through DL2
+ cset "name='DL2 Mixer Voice' 1"
+ cset "name='DL2 Voice Playback Volume' 120"
+
+ # TWL6040 playback path
+ cset "name='HF Left Playback' 1"
+ cset "name='HF Right Playback' 1"
+ ]
+
+ Value {
+ PlaybackChannels "2"
+ CaptureChannels "2"
+ # Default ALSA volume gain and mute kcontrols
+ PlaybackVolume "name='Earphone Enable Volume' 13"
+ CaptureVolume "name='Capture Volume' 4"
+ }
+}
+
+########### Handsfree Device Options ################
+
+SectionDevice."Handsfree" {
+ Comment "Tuna Handsfree Call"
+
+ # Handsfree is mutually exclusive to some devices
+ ConflictingDevice [
+ "Handset"
+ "Headset"
+ "Bluetooth"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE playback path through DL2
+ cset "name='DL2 Mixer Voice' 1"
+ cset "name='DL2 Voice Playback Volume' 120"
+
+ # TWL6040 playback path
+ cset "name='HF Left Playback' 1"
+ cset "name='HF Right Playback' 1"
+
+ # Enable ABE paths to PDM and AMIC
+ cset "name='MUX_VX0' 11"
+ cset "name='MUX_VX1' 12"
+
+ # set ABE capture gains to 0dB
+ cset "name='AMIC UL Volume' 120"
+
+ # 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"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE playback path through DL2
+ cset "name='DL2 Mixer Voice' 0"
+ cset "name='DL2 Voice Playback Volume' 00"
+
+ # TWL6040 playback path
+ cset "name='HF Left Playback' 0"
+ cset "name='HF Right Playback' 0"
+
+ # Enable ABE paths to PDM and AMIC
+ cset "name='MUX_VX0' 0"
+ cset "name='MUX_VX1' 0"
+
+ # set ABE capture gains to 0dB
+ cset "name='AMIC UL Volume' 00"
+
+ # TWL6040 Capture Path with Main Mic and Sub Mic
+ cset "name='Analog Left Capture Route' 3"
+ cset "name='Analog Right Capture Route' 3"
+ cset "name='Capture Preamplifier Volume' 0"
+ ]
+
+ TransitionSequence."Headset" [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE playback path through DL2
+ cset "name='DL2 Mixer Voice' 0"
+ cset "name='DL2 Voice Playback Volume' 00"
+
+ # TWL6040 playback path
+ cset "name='HF Left Playback' 0"
+ cset "name='HF Right Playback' 0"
+
+ # TWL6040 playback path
+ cset "name='HS Left Playback' 1"
+ cset "name='HS Right Playback' 1"
+
+ # TWL6040 Capture Path with Main Mic and Sub Mic
+ cset "name='Analog Left Capture Route' 0"
+ cset "name='Analog Right Capture Route' 0"
+ cset "name='Capture Preamplifier Volume' 2"
+ ]
+
+ TransitionSequence."Handset" [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE playback path through DL2
+ cset "name='DL2 Mixer Voice' 0"
+ cset "name='DL2 Voice Playback Volume' 00"
+
+ # TWL6040 playback path
+ cset "name='HF Left Playback' 0"
+ cset "name='HF Right Playback' 0"
+
+ # 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"
+ ]
+
+ Value {
+ PlaybackChannels "2"
+ CaptureChannels "2"
+ # Default ALSA volume gain and mute kcontrols
+ PlaybackVolume "name='Handsfree Playback Volume' 13"
+ CaptureVolume "name='Capture Volume' 4"
+ }
+}
+
+############ Bluetooth Device #########################
+
+SectionDevice."Bluetooth" {
+ Comment "Bluetooth Call"
+
+ # Bluetooth is mutually exclusive to some devices
+ ConflictingDevice [
+ "Handset"
+ "Handsfree"
+ "Headset"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # enable 0dB ABE path for BT capture via ROUTE_UL
+ cset "name='MUX_UL10' 7"
+ cset "name='MUX_UL11' 8"
+ cset "name='BT UL Volume' 120"
+
+ # enable ABE DL1 BT path
+ cset "name='DL1 BT_VX Switch' 1"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # disable 0dB ABE path for BT capture via ROUTE_UL
+ cset "name='MUX_UL10' 0"
+ cset "name='MUX_UL11' 0"
+ cset "name='BT UL Volume' 0"
+
+ # disable ABE DL1 BT path
+ cset "name='DL1 BT_VX Switch' 0"
+ ]
+
+ Value {
+ # FIXME: Is this the right number of channels?
+ PlaybackChannels "2"
+ CaptureChannels "2"
+ # Default ALSA volume gain and mute kcontrols
+ TQ "Voice"
+ }
+}
+
+############## Play Tone Modifier ####################
+#
+# We have 2 PlayTone modifiers. Each one supports different devices as the
+# path configuration is different depending on the device being used when
+# the modifier is enabled.
+#
+
+SectionModifier."PlayTone" {
+ Comment "Play tone or system sound during call"
+
+ # For the following devices we need to set the DL2 path
+ SupportedDevice [
+ "Headset"
+ "Handset"
+ "Bluetooth"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE tone playback path through DL1 & DL2 at 0dB (tune this)
+ cset "name='DL1 Mixer Tones' 1"
+ cset "name='DL1 Tones Playback Volume' 120"
+ cset "name='DL2 Mixer Tones' 1"
+ cset "name='DL2 Tones Playback Volume' 120"
+
+ # TWL6040 playback path
+ cset "name='HF Left Playback' 1"
+ cset "name='HF Right Playback' 1"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # disable ABE tone path
+ cset "name='DL1 Mixer Tones' 0"
+ cset "name='DL1 Tones Playback Volume' 0"
+ cset "name='DL2 Mixer Tones' 0"
+ cset "name='DL2 Tones Playback Volume' 0"
+
+ # TWL6040 playback path
+ cset "name='HF Left Playback' 0"
+ cset "name='HF Right Playback' 0"
+ ]
+
+ # QoS, Mixers and ALSA PCMs
+ Value {
+ TQ "Tones"
+ PlaybackPCM "hw:Tuna,3"
+ PlaybackVolume "name='DL2 Tones Playback Volume' 120"
+ PlaybackVolume "name='DL1 Tones Playback Volume' 120"
+ }
+}
+
+SectionModifier."PlayTone" {
+ Comment "Play a ring tone or system sound"
+
+ # For the following devices we dont need to set the DL2 path
+ SupportedDevice [
+ "Handsfree"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE tone playback path through DL2 at 0dB
+ cset "name='DL2 Mixer Tones' 1"
+ cset "name='DL2 Tones Playback Volume' 120"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE mute tone playback path through DL2
+ cset "name='DL2 Mixer Tones' 0"
+ cset "name='DL2 Tones Playback Volume' 0"
+ ]
+
+ # QoS, Mixers and ALSA PCMs
+ Value {
+ TQ "Tones"
+ PlaybackPCM "hw:Tuna,3"
+ PlaybackVolume "name='DL2 Tones Playback Volume' 120"
+ }
+}
+
+############## Play Music Modifier ####################
+#
+# We have 2 PlayMusic modifiers. Each one supports different devices as the
+# path configuration is different depending on the device being used when
+# the modifier is enabled.
+#
+
+SectionModifier."PlayMusic" {
+ Comment "Play Music to near and far end during call"
+
+ # For the following devices we need to set the DL2 path
+ SupportedDevice [
+ "Headset"
+ "Handset"
+ "Bluetooth"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE Music playback path through DL1 at 0dB (tune this)
+ cset "name='DL1 Mixer Media' 1"
+ cset "name='DL1 Media Playback Volume' 120"
+
+ # ABE Music to far end at 0dB
+ cset "name='Voice Capture Mixer Media Playback' 1"
+ cset "name='AUDUL Media Volume' 120"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # disable ABE Music path to near end
+ cset "name='DL1 Mixer Tones' 0"
+ cset "name='DL1 Tones Playback Volume' 0"
+
+ # disable ABE Music to far end
+ cset "name='Voice Capture Mixer Media Playback' 0"
+ cset "name='AUDUL Media Volume' 0"
+ ]
+
+ # QoS, Mixers and ALSA PCMs
+ Value {
+ TQ "HiFi"
+ PlaybackPCM "hw:Tuna,0"
+ PlaybackVolume "name='DL1 Media Playback Volume' 120"
+ }
+}
+
+SectionModifier."PlayMusic" {
+ Comment "Play Music to near and far end during call"
+
+ # For the following devices we dont need to set the DL2 path
+ SupportedDevice [
+ "Handsfree"
+ ]
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE Music playback path through DL2 at 0dB
+ cset "name='DL2 Mixer Media' 1"
+ cset "name='DL2 Media Playback Volume' 120"
+
+ # ABE Music to far end at 0dB
+ cset "name='Voice Capture Mixer Media Playback' 1"
+ cset "name='AUDUL Media Volume' 120"
+ ]
+
+ DisableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # ABE mute tone playback path through DL2
+ cset "name='DL2 Mixer Tones' 0"
+ cset "name='DL2 Tones Playback Volume' 0"
+
+ # disable ABE Music to far end
+ cset "name='Voice Capture Mixer Media Playback' 0"
+ cset "name='AUDUL Media Volume' 0"
+ ]
+
+ # QoS, Mixers and ALSA PCMs
+ Value {
+ TQ "HiFi"
+ PlaybackPCM "hw:Tuna,0"
+ PlaybackVolume "name='DL2 Media Playback Volume' 120"
+ }
+}
+
+############# Record Phone Call ################################
+
+SectionModifier."CaptureVoice" {
+ Comment "Record Phone Call"
+
+ EnableSequence [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # 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 [
+
+ # Set SDP device for following cset commands
+ cdev "hw:Tuna"
+
+ # 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"
+ ]
+
+ # QoS, Mixers and ALSA PCMs
+ Value {
+ TQ "Voice"
+ PlaybackPCM "hw:Tuna,1"
+ }
+}
+
diff --git a/data/alsa/ucm/Tuna/hifi b/data/alsa/ucm/Tuna/hifi
deleted file mode 100644
index 9c3f97c..0000000
--- a/data/alsa/ucm/Tuna/hifi
+++ /dev/null
@@ -1,498 +0,0 @@
-# Use case Configuration for TI Tuna HiFi playback and capture
-# By Liam Girdwood <lrg@ti.com>
-
-######### Main Verb Config #################
-
-SectionVerb {
- # Nothing todo here since most HiFi path as device specific within the ABE
-
- EnableSequence [
- ]
-
- DisableSequence [
- ]
-
- # ALSA PCM
- Value {
-
- TQ "HiFi"
-
- # ALSA PCM device for HiFi
- PlaybackPCM "hw:0"
- }
-}
-
-###### Headset Devices Options ############
-
-SectionDevice."Headset".0 {
- Comment "Tuna 3.5mm Headset playback and capture"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 1"
- cset "name='Sidetone Mixer Playback' 1"
- cset "name='DL1 PDM Switch' 1"
- cset "name='DL1 Media Playback Volume' 120,120"
- cset "name='SDT DL Volume' 120"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 11"
- #cset "name='MUX_UL01' 10"
-
- # TWL6040 playback path
- cset "name='HS Left Playback' 1"
- cset "name='HS Right Playback' 1"
-
- # TWL6040 Capture Path
- cset "name='Analog Left Capture Route' 0"
- cset "name='Capture Preamplifier Volume' 2"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 0"
- cset "name='Sidetone Mixer Playback' 0"
- cset "name='DL1 PDM Switch' 0"
- cset "name='DL1 Media Playback Volume' 0,0"
- cset "name='SDT DL Volume' 0"
-
- # TWL6040 playback path
- cset "name='HS Right Playback' 0"
- cset "name='HS Left Playback' 0"
-
- # ABE capture path
- cset "name='MUX_UL00' 0"
-
- # TWL6040 Capture path
- cset "name='Analog Left Capture Route' 3"
- cset "name='Capture Preamplifier Volume' 0"
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- CaptureVolume "name='Capture Volume' 4"
- PlaybackVolume "name='Headset Playback Volume' 13"
- }
-}
-
-########### Earphone device Options ################
-
-SectionDevice."Earphone".0 {
- Comment "Earphone playback"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 1"
- cset "name='Sidetone Mixer Playback' 1"
- cset "name='DL1 PDM Switch' 1"
- cset "name='DL1 Media Playback Volume' 90,90"
- cset "name='SDT DL Volume' 120"
-
- # TWL6040 playback path
- cset "name='HS Left Playback' 1"
- cset "name='HS Right Playback' 1"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 0"
- cset "name='Sidetone Mixer Playback' 0"
- cset "name='DL1 PDM Switch' 0"
- cset "name='DL1 Media Playback Volume' 0,0"
- cset "name='SDT DL Volume' 0"
-
- # TWL6040 playback path
- cset "name='HS Right Playback' 0"
- cset "name='HS Left Playback' 0"
-
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- PlaybackVolume "name='Earphone Playback Volume' 13"
- PlaybackVolume "name='Earphone Playback Switch' 1"
- }
-}
-
-SectionDevice."Earphone".1 {
- Comment "Earphone playback and Main Mic capture"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 1"
- cset "name='Sidetone Mixer Playback' 1"
- cset "name='DL1 PDM Switch' 1"
- cset "name='DL1 Media Playback Volume' 90,90"
- cset "name='SDT DL Volume' 120"
-
- # TWL6040 playback path
- cset "name='HS Left Playback' 1"
- cset "name='HS Right Playback' 1"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 11"
- #cset "name='MUX_UL01' 10"
-
- # TWL6040 Capture Path
- cset "name='Analog Left Capture Route' 1"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 0"
- cset "name='Sidetone Mixer Playback' 0"
- cset "name='DL1 PDM Switch' 0"
- cset "name='DL1 Media Playback Volume' 0,0"
- cset "name='SDT DL Volume' 0"
-
- # TWL6040 playback path
- cset "name='HS Right Playback' 0"
- cset "name='HS Left Playback' 0"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 0"
- #cset "name='MUX_UL01' 0"
-
- # TWL6040 Capture Path
- cset "name='Analog Left Capture Route' 3"
-
- ]
-
- TransitionSequence."Headset" [
- exec echo "Transition to HS"
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- PlaybackVolume "name='Earphone Playback Volume' 13"
- PlaybackVolume "name='Earphone Playback Switch' 1"
- CaptureVolume "name='Capture Volume' 4"
- }
-}
-
-########### Handsfree Device Options ################
-
-#SectionDevice."Handsfree".2 {
-# Comment "Tuna Handsfree Speaker playback"
-#
-# EnableSequence [
-#
-# # Set SDP device for following cset commands
-# cdev "hw:Tuna"
-#
-# # ABE playback path through DL2
-# cset "name='DL2 Mixer Multimedia' 1"
-# cset "name='DL2 Media Playback Volume' 120,120"
-#
-# # TWL6040 playback path
-# cset "name='HF Left Playback' 1"
-# cset "name='HF Right Playback' 1"
-# ]
-#
-# DisableSequence [
-#
-# # Set SDP device for following cset commands
-# cdev "hw:Tuna"
-#
-# # ABE playback path through DL1
-# cset "name='DL1 Mixer Multimedia' 0"
-# cset "name='Sidetone Mixer Playback' 0"
-# cset "name='DL1 PDM Switch' 0"
-# cset "name='DL1 Media Playback Volume' 0,0"
-# cset "name='SDT DL Volume' 0"
-#
-# # TWL6040 playback path
-# cset "name='HF Left Playback' 0"
-# cset "name='HF Right Playback' 0"
-# ]
-#
-# Value {
-# # Default ALSA volume gain and mute kcontrols
-# PlaybackVolume "name='Handsfree Playback Volume' 13"
-# PlaybackSwitch "name='Handsfree Playback Switch' 1"
-# }
-#}
-#
-#SectionDevice."Handsfree".1 {
-# Comment "Tuna Handsfree Speaker playback and Main Mic capture"
-#
-# EnableSequence [
-#
-# # Set SDP device for following cset commands
-# cdev "hw:Tuna"
-#
-# # ABE playback path through DL2
-# cset "name='DL2 Mixer Multimedia' 1"
-# cset "name='DL2 Media Playback Volume' 120,120"
-#
-# # TWL6040 playback path
-# cset "name='HF Left Playback' 1"
-# cset "name='HF Right Playback' 1"
-#
-# # ABE PDM-UL Capture path
-# cset "name='MUX_UL00' 11"
-# #cset "name='MUX_UL01' 10"
-#
-# # TWL6040 Capture Path
-# cset "name='Analog Left Capture Route' 1"
-# ]
-#
-# DisableSequence [
-#
-# # Set SDP device for following cset commands
-# cdev "hw:Tuna"
-#
-# # ABE playback path through DL1
-# cset "name='DL1 Mixer Multimedia' 0"
-# cset "name='Sidetone Mixer Playback' 0"
-# cset "name='DL1 PDM Switch' 0"
-# cset "name='DL1 Media Playback Volume' 0,0"
-# cset "name='SDT DL Volume' 0"
-#
-# # TWL6040 playback path
-# cset "name='HF Left Playback' 0"
-# cset "name='HF Right Playback' 0"
-#
-# # ABE PDM-UL Capture path
-# cset "name='MUX_UL00' 0"
-# #cset "name='MUX_UL01' 0"
-#
-# # TWL6040 Capture Path
-# cset "name='Analog Left Capture Route' 3"
-# ]
-#
-# Value {
-# # Default ALSA volume gain and mute kcontrols
-# PlaybackVolume "name='Handsfree Playback Volume' 13"
-# PlaybackSwitch "name='Handsfree Playback Switch' 1"
-# CaptureVolume "name='Capture Volume' 4"
-# }
-#}
-
-SectionDevice."Handsfree".0 {
- Comment "Tuna Handsfree Speaker playback and Main + Sub Mic capture"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL2
- cset "name='DL2 Mixer Multimedia' 1"
- cset "name='DL2 Media Playback Volume' 120,120"
-
- # TWL6040 playback path
- cset "name='HF Left Playback' 1"
- cset "name='HF Right Playback' 1"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 11"
- cset "name='MUX_UL01' 12"
-
- # TWL6040 Capture Path - Main Mic is L Sub Mic is R
- cset "name='Analog Left Capture Route' 1"
- cset "name='Analog Right Capture Route' 1"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 0"
- cset "name='Sidetone Mixer Playback' 0"
- cset "name='DL1 PDM Switch' 0"
- cset "name='DL1 Media Playback Volume' 0,0"
- cset "name='SDT DL Volume' 0"
-
- # TWL6040 playback path
- cset "name='HF Left Playback' 0"
- cset "name='HF Right Playback' 0"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 0"
- #cset "name='MUX_UL01' 0"
-
- # TWL6040 Capture Path
- cset "name='Analog Left Capture Route' 3"
- cset "name='Analog Right Capture Route' 3"
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- PlaybackVolume "name='Handsfree Playback Volume' 13"
- PlaybackSwitch "name='Handsfree Playback Switch' 1"
- CaptureVolume "name='Capture Volume' 4"
- }
-}
-
-############ Main Mic Device #########################
-
-SectionDevice."Mainmic".0 {
- Comment "Main Microphone"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 11"
- #cset "name='MUX_UL01' 10"
-
- # TWL6040 Capture Path
- cset "name='Analog Left Capture Route' 0"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE capture path
- cset "name='MUX_UL00' 0"
-
- # TWL6040 Capture path
- cset "name='Analog Left Capture Route' 3"
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- CaptureVolume "name='Capture Volume' 4"
- }
-}
-
-############ Digital Mic Device #########################
-
-SectionDevice."Dmic".0 {
- Comment "Digital Microphones"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE DMIC Capture path
- cset "name='MUX_UL00' 1"
- cset "name='MUX_UL01' 2"
- cset "name='MUX_UL01' 3"
- cset "name='MUX_UL01' 4"
- cset "name='MUX_UL01' 5"
- cset "name='MUX_UL01' 6"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE DMIC Capture path
- cset "name='MUX_UL00' 0"
- cset "name='MUX_UL01' 0"
- cset "name='MUX_UL01' 0"
- cset "name='MUX_UL01' 0"
- cset "name='MUX_UL01' 0"
- cset "name='MUX_UL01' 0"
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- CaptureVolume "name='DMIC1 UL Capture Volume' 30, 30"
- CaptureVolume "name='DMIC2 UL Capture Volume' 30, 30"
- CaptureVolume "name='DMIC3 UL Capture Volume' 30, 30"
- }
-}
-
-############## Play Tone Modifier ####################
-
-SectionModifier."PlayTone".0 {
- Comment "Play a ring tone or system sound"
-
- # For the following devices we need to set the DL2 path
- SupportedDevice [
- "Headset.0"
- "Headset.1"
- "Headset.2"
- "Earphone.0"
- "Earphone.1"
- ]
-
- EnableSequence [
- # ABE playback path through DL2
- cset "name='DL2 Mixer Tones' 1"
- cset "name='DL2 Tones Playback Volume' 120,120"
-
- # TWL6040 playback path
- cset "name='HF Left Playback' 1"
- cset "name='HF Right Playback' 1"
- ]
-
- DisableSequence [
- cset "name='DL2 Mixer Tones' 0"
-
- # TWL6040 playback path
- cset "name='HF Left Playback' 0"
- cset "name='HF Right Playback' 0"
- ]
-
- # QoS, Mixers and ALSA PCMs
- Value {
- TQ Tones
- PlaybackPCM "hw:1"
- PlaybackVolume "name='DL2 Tones Playback Volume' 120,120"
- }
-}
-
-SectionModifier."PlayTone".1 {
- Comment "Play a ring tone or system sound"
-
- # For the following devices we dont need to set the DL2 path
- SupportedDevice [
- "Handsfree.0"
- "Handsfree.1"
- ]
-
- EnableSequence [
- # ABE playback path through DL2
- cset "name='DL2 Mixer Tones' 1"
- cset "name='DL2 Tones Playback Volume' 120,120"
- ]
-
- DisableSequence [
- cset "name='DL2 Mixer Tones' 0"
- ]
-
- # QoS, Mixers and ALSA PCMs
- Value {
- TQ Tones
- PlaybackPCM "hw:1"
- PlaybackVolume "name='DL2 Tones Playback Volume' 120,120"
- }
-}
-
-
diff --git a/data/alsa/ucm/Tuna/hifiLP b/data/alsa/ucm/Tuna/hifiLP
deleted file mode 100644
index 2978ed7..0000000
--- a/data/alsa/ucm/Tuna/hifiLP
+++ /dev/null
@@ -1,500 +0,0 @@
-# Use case Configuration for TI Tuna Low Power HiFi playback and capture
-# By Liam Girdwood <lrg@ti.com>
-
-# TODO - Add controls for LP twl6040 settings
-
-######### Main Verb Config #################
-
-SectionVerb {
- # Nothing todo here since most HiFi path as device specific within the ABE
-
- EnableSequence [
- ]
-
- DisableSequence [
- ]
-
- # ALSA PCM
- Value {
-
- TQ "HiFi"
-
- # ALSA PCM device for low Power HiFi
- PlaybackPCM "hw:6"
- }
-}
-
-###### Headset Devices Options ############
-
-SectionDevice."Headset".0 {
- Comment "Tuna 3.5mm Headset playback and capture"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 1"
- cset "name='Sidetone Mixer Playback' 1"
- cset "name='DL1 PDM Switch' 1"
- cset "name='DL1 Media Playback Volume' 120,120"
- cset "name='SDT DL Volume' 120"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 11"
- #cset "name='MUX_UL01' 10"
-
- # TWL6040 playback path
- cset "name='HS Left Playback' 1"
- cset "name='HS Right Playback' 1"
-
- # TWL6040 Capture Path
- cset "name='Analog Left Capture Route' 0"
- cset "name='Capture Preamplifier Volume' 2"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 0"
- cset "name='Sidetone Mixer Playback' 0"
- cset "name='DL1 PDM Switch' 0"
- cset "name='DL1 Media Playback Volume' 0,0"
- cset "name='SDT DL Volume' 0"
-
- # TWL6040 playback path
- cset "name='HS Right Playback' 0"
- cset "name='HS Left Playback' 0"
-
- # ABE capture path
- cset "name='MUX_UL00' 0"
-
- # TWL6040 Capture path
- cset "name='Analog Left Capture Route' 3"
- cset "name='Capture Preamplifier Volume' 0"
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- CaptureVolume "name='Capture Volume' 4"
- PlaybackVolume "name='Headset Playback Volume' 13"
- }
-}
-
-########### Earphone device Options ################
-
-SectionDevice."Earphone".0 {
- Comment "Earphone playback"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 1"
- cset "name='Sidetone Mixer Playback' 1"
- cset "name='DL1 PDM Switch' 1"
- cset "name='DL1 Media Playback Volume' 90,90"
- cset "name='SDT DL Volume' 120"
-
- # TWL6040 playback path
- cset "name='HS Left Playback' 1"
- cset "name='HS Right Playback' 1"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 0"
- cset "name='Sidetone Mixer Playback' 0"
- cset "name='DL1 PDM Switch' 0"
- cset "name='DL1 Media Playback Volume' 0,0"
- cset "name='SDT DL Volume' 0"
-
- # TWL6040 playback path
- cset "name='HS Right Playback' 0"
- cset "name='HS Left Playback' 0"
-
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- PlaybackVolume "name='Earphone Playback Volume' 13"
- PlaybackVolume "name='Earphone Playback Switch' 1"
- }
-}
-
-SectionDevice."Earphone".1 {
- Comment "Earphone playback and Main Mic capture"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 1"
- cset "name='Sidetone Mixer Playback' 1"
- cset "name='DL1 PDM Switch' 1"
- cset "name='DL1 Media Playback Volume' 90,90"
- cset "name='SDT DL Volume' 120"
-
- # TWL6040 playback path
- cset "name='HS Left Playback' 1"
- cset "name='HS Right Playback' 1"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 11"
- #cset "name='MUX_UL01' 10"
-
- # TWL6040 Capture Path
- cset "name='Analog Left Capture Route' 1"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 0"
- cset "name='Sidetone Mixer Playback' 0"
- cset "name='DL1 PDM Switch' 0"
- cset "name='DL1 Media Playback Volume' 0,0"
- cset "name='SDT DL Volume' 0"
-
- # TWL6040 playback path
- cset "name='HS Right Playback' 0"
- cset "name='HS Left Playback' 0"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 0"
- #cset "name='MUX_UL01' 0"
-
- # TWL6040 Capture Path
- cset "name='Analog Left Capture Route' 3"
-
- ]
-
- TransitionSequence."Headset" [
- exec echo "Transition to HS"
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- PlaybackVolume "name='Earphone Playback Volume' 13"
- PlaybackVolume "name='Earphone Playback Switch' 1"
- CaptureVolume "name='Capture Volume' 4"
- }
-}
-
-########### Handsfree Device Options ################
-
-SectionDevice."Handsfree".0 {
- Comment "Tuna Handsfree Speaker playback"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL2
- cset "name='DL2 Mixer Multimedia' 1"
- cset "name='DL2 Media Playback Volume' 120,120"
-
- # TWL6040 playback path
- cset "name='HF Left Playback' 1"
- cset "name='HF Right Playback' 1"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 0"
- cset "name='Sidetone Mixer Playback' 0"
- cset "name='DL1 PDM Switch' 0"
- cset "name='DL1 Media Playback Volume' 0,0"
- cset "name='SDT DL Volume' 0"
-
- # TWL6040 playback path
- cset "name='HF Left Playback' 0"
- cset "name='HF Right Playback' 0"
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- PlaybackVolume "name='Handsfree Playback Volume' 13"
- PlaybackSwitch "name='Handsfree Playback Switch' 1"
- }
-}
-
-SectionDevice."Handsfree".1 {
- Comment "Tuna Handsfree Speaker playback and Main Mic capture"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL2
- cset "name='DL2 Mixer Multimedia' 1"
- cset "name='DL2 Media Playback Volume' 120,120"
-
- # TWL6040 playback path
- cset "name='HF Left Playback' 1"
- cset "name='HF Right Playback' 1"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 11"
- #cset "name='MUX_UL01' 10"
-
- # TWL6040 Capture Path
- cset "name='Analog Left Capture Route' 1"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 0"
- cset "name='Sidetone Mixer Playback' 0"
- cset "name='DL1 PDM Switch' 0"
- cset "name='DL1 Media Playback Volume' 0,0"
- cset "name='SDT DL Volume' 0"
-
- # TWL6040 playback path
- cset "name='HF Left Playback' 0"
- cset "name='HF Right Playback' 0"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 0"
- #cset "name='MUX_UL01' 0"
-
- # TWL6040 Capture Path
- cset "name='Analog Left Capture Route' 3"
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- PlaybackVolume "name='Handsfree Playback Volume' 13"
- PlaybackSwitch "name='Handsfree Playback Switch' 1"
- CaptureVolume "name='Capture Volume' 4"
- }
-}
-
-SectionDevice."Handsfree".2 {
- Comment "Tuna Handsfree Speaker playback and Main + Sub Mic capture"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL2
- cset "name='DL2 Mixer Multimedia' 1"
- cset "name='DL2 Media Playback Volume' 120,120"
-
- # TWL6040 playback path
- cset "name='HF Left Playback' 1"
- cset "name='HF Right Playback' 1"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 11"
- cset "name='MUX_UL01' 12"
-
- # TWL6040 Capture Path - Main Mic is L Sub Mic is R
- cset "name='Analog Left Capture Route' 1"
- cset "name='Analog Right Capture Route' 1"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE playback path through DL1
- cset "name='DL1 Mixer Multimedia' 0"
- cset "name='Sidetone Mixer Playback' 0"
- cset "name='DL1 PDM Switch' 0"
- cset "name='DL1 Media Playback Volume' 0,0"
- cset "name='SDT DL Volume' 0"
-
- # TWL6040 playback path
- cset "name='HF Left Playback' 0"
- cset "name='HF Right Playback' 0"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 0"
- #cset "name='MUX_UL01' 0"
-
- # TWL6040 Capture Path
- cset "name='Analog Left Capture Route' 3"
- cset "name='Analog Right Capture Route' 3"
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- PlaybackVolume "name='Handsfree Playback Volume' 13"
- PlaybackSwitch "name='Handsfree Playback Switch' 1"
- CaptureVolume "name='Capture Volume' 4"
- }
-}
-
-############ Main Mic Device #########################
-
-SectionDevice."Mainmic".0 {
- Comment "Main Microphone"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE PDM-UL Capture path
- cset "name='MUX_UL00' 11"
- #cset "name='MUX_UL01' 10"
-
- # TWL6040 Capture Path
- cset "name='Analog Left Capture Route' 0"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE capture path
- cset "name='MUX_UL00' 0"
-
- # TWL6040 Capture path
- cset "name='Analog Left Capture Route' 3"
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- CaptureVolume "name='Capture Volume' 4"
- }
-}
-
-############ Digital Mic Device #########################
-
-SectionDevice."Dmic".0 {
- Comment "Digital Microphones"
-
- EnableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE DMIC Capture path
- cset "name='MUX_UL00' 1"
- cset "name='MUX_UL01' 2"
- cset "name='MUX_UL01' 3"
- cset "name='MUX_UL01' 4"
- cset "name='MUX_UL01' 5"
- cset "name='MUX_UL01' 6"
- ]
-
- DisableSequence [
-
- # Set SDP device for following cset commands
- cdev "hw:Tuna"
-
- # ABE DMIC Capture path
- cset "name='MUX_UL00' 0"
- cset "name='MUX_UL01' 0"
- cset "name='MUX_UL01' 0"
- cset "name='MUX_UL01' 0"
- cset "name='MUX_UL01' 0"
- cset "name='MUX_UL01' 0"
- ]
-
- Value {
- # Default ALSA volume gain and mute kcontrols
- CaptureVolume "name='DMIC1 UL Capture Volume' 30, 30"
- CaptureVolume "name='DMIC2 UL Capture Volume' 30, 30"
- CaptureVolume "name='DMIC3 UL Capture Volume' 30, 30"
- }
-}
-
-############## Play Tone Modifier ####################
-
-SectionModifier."PlayTone".0 {
- Comment "Play a ring tone or system sound"
-
- # For the following devices we need to set the DL2 path
- SupportedDevice [
- "Headset.0"
- "Headset.1"
- "Headset.2"
- "Earphone.0"
- "Earphone.1"
- ]
-
- EnableSequence [
- # ABE playback path through DL2
- cset "name='DL2 Mixer Tones' 1"
- cset "name='DL2 Tones Playback Volume' 120,120"
-
- # TWL6040 playback path
- cset "name='HF Left Playback' 1"
- cset "name='HF Right Playback' 1"
- ]
-
- DisableSequence [
- cset "name='DL2 Mixer Tones' 0"
-
- # TWL6040 playback path
- cset "name='HF Left Playback' 0"
- cset "name='HF Right Playback' 0"
- ]
-
- # QoS, Mixers and ALSA PCMs
- Value {
- TQ Tones
- PlaybackPCM "hw:1"
- PlaybackVolume "name='DL2 Tones Playback Volume' 120,120"
- }
-}
-
-SectionModifier."PlayTone".1 {
- Comment "Play a ring tone or system sound"
-
- # For the following devices we dont need to set the DL2 path
- SupportedDevice [
- "Handsfree.0"
- "Handsfree.1"
- ]
-
- EnableSequence [
- # ABE playback path through DL2
- cset "name='DL2 Mixer Tones' 1"
- cset "name='DL2 Tones Playback Volume' 120,120"
- ]
-
- DisableSequence [
- cset "name='DL2 Mixer Tones' 0"
- ]
-
- # QoS, Mixers and ALSA PCMs
- Value {
- TQ Tones
- PlaybackPCM "hw:1"
- PlaybackVolume "name='DL2 Tones Playback Volume' 120,120"
- }
-}
-
-
diff --git a/data/alsa/ucm/Tuna/voiceCall b/data/alsa/ucm/Tuna/voiceCall
deleted file mode 100644
index 4ae9c70..0000000
--- a/data/alsa/ucm/Tuna/voiceCall
+++ /dev/null
@@ -1,67 +0,0 @@
-# Use case Configuration for TI Tuna HiFi Music
-# By Liam Girdwood <lrg@slimlogic.co.uk>
-
-SectionVerb {
- EnableSequence [
- cdev "hw:Tuna"
- cset "name='AMIC_UL PDM Switch' 1"
- cset "name='Sidetone Mixer Capture' 1"
- cset "name='MUX_VX0' 9"
- cset "name='MUX_VX1' 10"
- cset "name='DL1 Mixer Voice' 1"
- cset "name='Sidetone Mixer Playback' 1"
- cset "name='DL1 PDM Switch' 1"
- cset "name='DL1 Voice Playback Volume' 90,90"
- cset "name='Capture Volume' 4"
- cset "name='Capture Mixer Voice Capture' 90,90"
- cset "name='SDT DL Volume' 120"
- ]
-
-
- DisableSequence [
- cdev "hw:Tuna"
- cset "name='AMIC_UL PDM Switch' 0"
- cset "name='Sidetone Mixer Capture' 0"
- cset "name='MUX_VX0' 0"
- cset "name='MUX_VX1' 0"
- cset "name='DL1 Mixer Voice' 0"
- cset "name='Sidetone Mixer Playback' 0"
- cset "name='DL1 PDM Switch' 0"
- cset "name='DL1 Voice Playback Volume' 0,0"
- cset "name='Capture Volume' 0"
- cset "name='DL1 Voice Playback Volume' 0,0"
- cset "name='SDT DL Volume' 0"
- ]
-
- # Optional TQ and ALSA PCMs
- Value {
- TQ "Voice"
- CapturePCM "hw:0,2"
- PlaybackPCM "hw:0,2"
- }
-}
-
-SectionDevice."Headset".0 {
- Comment "Tuna 3.5mm Headset"
-
- EnableSequence [
- cdev "hw:Tuna"
- cset "name='Analog Left Capture Route' 0"
- cset "name='Analog Right Capture Route' 0"
- cset "name='Capture Preamplifier Volume' 2"
- cset "name='HS Left Playback' 1"
- cset "name='HS Right Playback' 1"
- cset "name='Headset Playback Volume' 13"
- ]
-
- DisableSequence [
- cdev "hw:Tuna"
- cset "name='Analog Left Capture Route' 3"
- cset "name='Analog Right Capture Route' 3"
- cset "name='Capture Preamplifier Volume' 0"
- cset "name='HS Right Playback' 0"
- cset "name='HS Left Playback' 0"
- cset "name='Headset Playback Volume' 0"
- ]
-}
-