summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2012-01-20 13:22:03 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2012-01-20 13:36:27 +0530
commitb445f166c7c1153fb16540ddd3ea4781a9335485 (patch)
tree02d7d5cfa8f44e55ead7659fe0697c3ab86a39fd /data
parent6c0bbac6decf697b9daa2625cbdd33869bd75dcd (diff)
Add various data files
Diffstat (limited to 'data')
-rw-r--r--data/alsa/ucm/Tuna/FMAnalog46
-rw-r--r--data/alsa/ucm/Tuna/Tuna.conf30
-rw-r--r--data/alsa/ucm/Tuna/hifi498
-rw-r--r--data/alsa/ucm/Tuna/hifiLP500
-rw-r--r--data/alsa/ucm/Tuna/voiceCall67
-rw-r--r--data/pulseaudio/daemon.conf87
-rwxr-xr-xdata/pulseaudio/start-pulseaudio-android27
-rw-r--r--data/pulseaudio/system.pa63
8 files changed, 1318 insertions, 0 deletions
diff --git a/data/alsa/ucm/Tuna/FMAnalog b/data/alsa/ucm/Tuna/FMAnalog
new file mode 100644
index 0000000..372caea
--- /dev/null
+++ b/data/alsa/ucm/Tuna/FMAnalog
@@ -0,0 +1,46 @@
+# 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/Tuna.conf b/data/alsa/ucm/Tuna/Tuna.conf
new file mode 100644
index 0000000..28706e7
--- /dev/null
+++ b/data/alsa/ucm/Tuna/Tuna.conf
@@ -0,0 +1,30 @@
+# UCM configuration for SDP4430
+SectionUseCase."HiFi" {
+ 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."
+}
+
+SectionDefaults [
+ cdev "hw:Tuna"
+ exec "echo Im setting defaults"
+]
diff --git a/data/alsa/ucm/Tuna/hifi b/data/alsa/ucm/Tuna/hifi
new file mode 100644
index 0000000..9c3f97c
--- /dev/null
+++ b/data/alsa/ucm/Tuna/hifi
@@ -0,0 +1,498 @@
+# 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
new file mode 100644
index 0000000..2978ed7
--- /dev/null
+++ b/data/alsa/ucm/Tuna/hifiLP
@@ -0,0 +1,500 @@
+# 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
new file mode 100644
index 0000000..4ae9c70
--- /dev/null
+++ b/data/alsa/ucm/Tuna/voiceCall
@@ -0,0 +1,67 @@
+# 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"
+ ]
+}
+
diff --git a/data/pulseaudio/daemon.conf b/data/pulseaudio/daemon.conf
new file mode 100644
index 0000000..8700b45
--- /dev/null
+++ b/data/pulseaudio/daemon.conf
@@ -0,0 +1,87 @@
+# This file is part of PulseAudio.
+#
+# PulseAudio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# PulseAudio is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with PulseAudio; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA.
+
+## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
+## more information. Default values are commented out. Use either ; or # for
+## commenting.
+
+; daemonize = no
+; fail = yes
+; allow-module-loading = yes
+; allow-exit = yes
+; use-pid-file = yes
+; system-instance = no
+; enable-shm = yes
+; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
+; lock-memory = no
+; cpu-limit = no
+
+; high-priority = yes
+; nice-level = -11
+
+; realtime-scheduling = yes
+; realtime-priority = 5
+
+; exit-idle-time = 20
+; scache-idle-time = 20
+
+; dl-search-path = (depends on architecture)
+
+; load-default-script-file = yes
+; default-script-file = /system/etc/pulse/default.pa
+
+; log-target = auto
+; log-level = notice
+; log-meta = no
+; log-time = no
+; log-backtrace = 0
+
+resample-method = speex-fixed-4
+; resample-method = speex-float-3
+; enable-remixing = yes
+; enable-lfe-remixing = no
+
+; flat-volumes = yes
+
+; rlimit-fsize = -1
+; rlimit-data = -1
+; rlimit-stack = -1
+; rlimit-core = -1
+; rlimit-as = -1
+; rlimit-rss = -1
+; rlimit-nproc = -1
+; rlimit-nofile = 256
+; rlimit-memlock = -1
+; rlimit-locks = -1
+; rlimit-sigpending = -1
+; rlimit-msgqueue = -1
+; rlimit-nice = 31
+; rlimit-rtprio = 9
+; rlimit-rttime = 1000000
+
+; default-sample-format = s16le
+; default-sample-rate = 44100
+; alternate-sample-rate = 48000
+; default-sample-channels = 2
+; default-channel-map = front-left,front-right
+
+; default-fragments = 4
+; default-fragment-size-msec = 25
+
+; enable-deferred-volume = yes
+; deferred-volume-safety-margin-usec = 8000
+; deferred-volume-extra-delay-usec = 0
diff --git a/data/pulseaudio/start-pulseaudio-android b/data/pulseaudio/start-pulseaudio-android
new file mode 100755
index 0000000..ff108a8
--- /dev/null
+++ b/data/pulseaudio/start-pulseaudio-android
@@ -0,0 +1,27 @@
+#!/system/bin/sh
+
+# This file is part of PulseAudio.
+#
+# PulseAudio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# PulseAudio is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with PulseAudio; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA.
+
+set -e
+
+mkdir -p /cache/pulse/lib/pulse
+mkdir -p /cache/pulse/run/pulse
+
+export LD_LIBRARY_PATH=/system/lib/pulse-1.98/modules
+
+/system/bin/pulseaudio --system ${@}
diff --git a/data/pulseaudio/system.pa b/data/pulseaudio/system.pa
new file mode 100644
index 0000000..4c65973
--- /dev/null
+++ b/data/pulseaudio/system.pa
@@ -0,0 +1,63 @@
+#!/system/bin/pulseaudio -nF
+#
+# This file is part of PulseAudio.
+#
+# PulseAudio is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# PulseAudio is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with PulseAudio; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
+# This startup script is used only if PulseAudio is started in system
+# mode.
+
+load-module module-alsa-card device_id=0
+#load-module module-alsa-sink device_id=1
+
+### Automatically load driver modules depending on the hardware available
+.ifexists module-detect.so
+### Use the static hardware detection module (for systems that lack udev/hal support)
+#load-module module-detect
+.endif
+
+### Load several protocols
+.ifexists module-esound-protocol-unix.so
+load-module module-esound-protocol-unix
+.endif
+load-module module-native-protocol-unix auth-anonymous=yes
+
+### Automatically restore the volume of streams and devices
+load-module module-stream-restore
+load-module module-device-restore
+
+### Automatically restore the default sink/source when changed by the user
+### during runtime
+### NOTE: This should be loaded as early as possible so that subsequent modules
+### that look up the default sink/source get the right value
+load-module module-default-device-restore
+
+.ifexists module-dbus-protocol.so
+### If you want to allow TCP connections, set access to "remote" or "local,remote".
+load-module module-dbus-protocol access=local
+.endif
+
+### Automatically move streams to the default sink if the sink they are
+### connected to dies, similar for sources
+load-module module-rescue-streams
+
+### Make sure we always have a sink around, even if it is a null sink.
+load-module module-always-sink
+
+### Automatically suspend sinks/sources that become idle for too long
+load-module module-suspend-on-idle
+
+### Enable positioned event sounds
+load-module module-position-event-sounds