summaryrefslogtreecommitdiff
path: root/ak4953
diff options
context:
space:
mode:
Diffstat (limited to 'ak4953')
-rwxr-xr-xak4953/ak4953.conf17
-rwxr-xr-xak4953/hifi92
-rwxr-xr-xak4953/inactive102
3 files changed, 211 insertions, 0 deletions
diff --git a/ak4953/ak4953.conf b/ak4953/ak4953.conf
new file mode 100755
index 0000000..0fe7908
--- /dev/null
+++ b/ak4953/ak4953.conf
@@ -0,0 +1,17 @@
+SectionUseCase."Inactive" {
+ File "inactive"
+ Comment "reset audio path"
+}
+
+SectionUseCase."HiFi" {
+ File "hifi"
+ Comment "Hifi audio path"
+}
+
+ValueDefaults {
+ PlaybackCTL "hw:0"
+ CaptureCTL "hw:0"
+}
+
+SectionDefaults {
+}
diff --git a/ak4953/hifi b/ak4953/hifi
new file mode 100755
index 0000000..1e3ea55
--- /dev/null
+++ b/ak4953/hifi
@@ -0,0 +1,92 @@
+# Use case Configuration for Mobile device
+# By Inha Song <ideal.song@samsung.com>
+
+SectionVerb {
+ EnableSequence [
+ ]
+ DisableSequence [
+ ]
+
+ Value {
+ TQ "Music"
+ PlaybackCTL "hw:0"
+ CaptureCTL "hw:0"
+ }
+}
+
+SectionDevice."Headphones" {
+ Comment "3.5mm Headphones"
+
+ EnableSequence [
+ cset "name='Digital Output Volume1 L (Manual Mode)' 145"
+ cset "name='Digital Output Volume1 R (Manual Mode)' 145"
+ cset "name='DACHP' 1"
+ cset "name='Mic Gain Control' 3"
+ cset "name='Mic Bias MUX' 'IN1'"
+ cset "name='IN1 MUX' 'Mic Bias'"
+ cset "name='Input Select MUX' 'LIN1/RIN1'"
+ cset "name='ADC MUX1' 'Mono'"
+ cset "name='MIC MUX' 'AMIC'"
+ cset "name='ADCPF MUX' 'ADC'"
+ ]
+
+ DisableSequence [
+ cset "name='DACHP' 0"
+ ]
+
+ Value {
+ PlaybackPCM "hw:0,0"
+ }
+}
+
+SectionDevice."Speaker" {
+ Comment "built-in Speaker"
+
+ EnableSequence [
+ cset "name='Digital Output Volume1 L (Manual Mode)' 145"
+ cset "name='Digital Output Volume1 R (Manual Mode)' 145"
+ cset "name='DACHP' 1"
+ cset "name='Mic Gain Control' 3"
+ cset "name='Mic Bias MUX' 'IN1'"
+ cset "name='IN1 MUX' 'Mic Bias'"
+ cset "name='Input Select MUX' 'LIN1/RIN1'"
+ cset "name='ADC MUX1' 'Mono'"
+ cset "name='MIC MUX' 'AMIC'"
+ cset "name='ADCPF MUX' 'ADC'"
+ ]
+
+ DisableSequence [
+# Path
+ cset "name='DACHP' 0"
+ ]
+
+ Value {
+ PlaybackPCM "hw:0,0"
+ }
+}
+
+SectionDevice."MainMic" {
+ Comment "built-in main mic"
+
+ EnableSequence [
+ cset "name='Digital Output Volume1 L (Manual Mode)' 145"
+ cset "name='Digital Output Volume1 R (Manual Mode)' 145"
+ cset "name='DACHP' 1"
+ cset "name='Mic Gain Control' 3"
+ cset "name='Mic Bias MUX' 'IN1'"
+ cset "name='IN1 MUX' 'Mic Bias'"
+ cset "name='Input Select MUX' 'LIN1/RIN1'"
+ cset "name='ADC MUX1' 'Mono'"
+ cset "name='MIC MUX' 'AMIC'"
+ cset "name='ADCPF MUX' 'ADC'"
+ ]
+
+ DisableSequence [
+# Path
+ cset "name='DACHP' 0"
+ ]
+
+ Value {
+ CapturePCM "hw:0,0"
+ }
+}
diff --git a/ak4953/inactive b/ak4953/inactive
new file mode 100755
index 0000000..d9add4a
--- /dev/null
+++ b/ak4953/inactive
@@ -0,0 +1,102 @@
+# Use case Configuration for Mobile device
+# By Inha Song <ideal.song@samsung.com>
+
+SectionVerb {
+ EnableSequence [
+ cset "name='HP Switch' 0"
+ cset "name='HPOUT1L Input 1' 0"
+ cset "name='HPOUT1R Input 1' 0"
+ cset "name='HPOUT1 Digital Switch' 0,0"
+ cset "name='SPK Switch' 0"
+ cset "name='HPOUT2L Input 1' 0"
+ cset "name='HPOUT2R Input 1' 0"
+ cset "name='HPOUT2 Digital Switch' 0,0"
+ cset "name='RCV Switch' 0"
+ cset "name='HPOUT3L Input 1' 0"
+ cset "name='HPOUT3R Input 1' 0"
+ cset "name='HPOUT3 Digital Switch' 0,0"
+ cset "name='AIF3TX1 Input 1' 0"
+ cset "name='AIF2TX1 Input 1' 0"
+ cset "name='VPS Switch' 0"
+ cset "name='HDMI Switch' 0"
+ cset "name='SPKOUTL Input 1' 0"
+ cset "name='AIF1TX1 Input 1' 0"
+ cset "name='Main Mic Switch' 0"
+ cset "name='IN1 OSR' 1"
+ cset "name='IN1R HPF Switch' 0"
+ cset "name='Sub Mic Switch' 0"
+ cset "name='IN3 OSR' 1"
+ cset "name='IN3L HPF Switch' 0"
+ cset "name='Third Mic Switch' 0"
+ cset "name='IN3R HPF Switch' 0"
+ cset "name='Headset Mic Switch' 0"
+ ]
+ DisableSequence [
+ ]
+
+ Value {
+ TQ "Music"
+ PlaybackCTL "hw:0"
+ CaptureCTL "hw:0"
+ }
+}
+
+SectionDevice."All" {
+ Comment "reset all"
+
+ EnableSequence [
+ ]
+
+ DisableSequence [
+ ]
+}
+
+SectionDevice."Playback" {
+ Comment "reset playback"
+
+ EnableSequence [
+ cset "name='HP Switch' 0"
+ cset "name='HPOUT1L Input 1' 0"
+ cset "name='HPOUT1R Input 1' 0"
+ cset "name='HPOUT1 Digital Switch' 0,0"
+ cset "name='SPK Switch' 0"
+ cset "name='HPOUT2L Input 1' 0"
+ cset "name='HPOUT2R Input 1' 0"
+ cset "name='HPOUT2 Digital Switch' 0,0"
+ cset "name='RCV Switch' 0"
+ cset "name='HPOUT3L Input 1' 0"
+ cset "name='HPOUT3R Input 1' 0"
+ cset "name='HPOUT3 Digital Switch' 0,0"
+ cset "name='AIF3TX1 Input 1' 0"
+ cset "name='AIF2TX1 Input 1' 0"
+ cset "name='VPS Switch' 0"
+ cset "name='HDMI Switch' 0"
+ cset "name='SPKOUTL Input 1' 0"
+ cset "name='AIF1TX1 Input 1' 0"
+ ]
+
+ DisableSequence [
+ ]
+}
+
+SectionDevice."Capture" {
+ Comment "reset capture"
+
+ EnableSequence [
+ cset "name='Main Mic Switch' 0"
+ cset "name='IN1 OSR' 1"
+ cset "name='IN1R HPF Switch' 0"
+ cset "name='AIF2TX1 Input 1' 0"
+ cset "name='Sub Mic Switch' 0"
+ cset "name='IN3 OSR' 1"
+ cset "name='IN3L HPF Switch' 0"
+ cset "name='Third Mic Switch' 0"
+ cset "name='IN3R HPF Switch' 0"
+ cset "name='Headset Mic Switch' 0"
+ cset "name='AIF1TX1 Input 1' 0"
+ ]
+
+ DisableSequence [
+ ]
+}
+