Browse Source

add initial UCM profiles for the various Chromebooks

S.J.R. van Schaik 1 year ago
parent
commit
d49aefa5a7

+ 6 - 0
usr/share/alsa/ucm/Google-Asuka-1.0-Asuka/Google-Asuka-1.0-Asuka.conf

@@ -0,0 +1,6 @@
+Comment "Caroline internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}

+ 95 - 0
usr/share/alsa/ucm/Google-Asuka-1.0-Asuka/HiFi.conf

@@ -0,0 +1,95 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='DAC Oversampling Rate' 128"
+		cset "name='Headset Mic Switch' off"
+		cset "name='media0_out mo codec0_in mi Switch' off"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
+		cset "name='Pin5 Mux' 1"
+		cset "name='Pin6 Mux' 2"
+		cset "name='Pin7 Mux' 3"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825max"
+	]
+
+	Value {
+			TQ "HiFi"
+			CapturePCM "hw:sklnau8825max,3"
+			PlaybackPCM "hw:sklnau8825max,0"
+	}
+}
+
+SectionDevice."Speaker".0 {
+	Value {
+		CoupledMixers "Left Master,Right Master"
+		PlaybackChannels "2"
+		PlaybackPriority "1"
+	}
+
+	EnableSequence [
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."InternalMic".0 {
+	Value {
+		CaptureChannels "2"
+		CapturePriority "1"
+	}
+
+	EnableSequence [
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."Headphone".0 {
+	Value {
+		JackName "sklnau8825max Headset Jack"
+		PlaybackChannels "2"
+		PlaybackPriority "2"
+	}
+
+	EnableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='codec0_out mo media0_in mi Switch' off"
+		cset "name='codec1_out mo media0_in mi Switch' on"
+		cset "name='Headphone Jack Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='Headphone Jack Switch' off"
+	]
+}
+
+SectionDevice."Mic".0 {
+	Value {
+		JackName "sklnau8825max Headset Jack"
+		CaptureChannels "2"
+		CapturePriority "2"
+	}
+
+	EnableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='Headset Mic Switch' on"
+		cset "name='media0_out mo codec0_in mi Switch' on"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' off"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='Headset Mic Switch' off"
+		cset "name='media0_out mo codec0_in mi Switch' off"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
+	]
+}

+ 6 - 0
usr/share/alsa/ucm/Google-Asuka-1.0-Asuka/sklnau8825max.conf

@@ -0,0 +1,6 @@
+Comment "Caroline internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}

+ 6 - 0
usr/share/alsa/ucm/Google-Caroline-1.0-Caroline/Google-Caroline-1.0-Caroline.conf

@@ -0,0 +1,6 @@
+Comment "Caroline internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}

+ 95 - 0
usr/share/alsa/ucm/Google-Caroline-1.0-Caroline/HiFi.conf

@@ -0,0 +1,95 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:sklnau8825adi"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='DAC Oversampling Rate' 128"
+		cset "name='Headset Mic Switch' off"
+		cset "name='media0_out mo codec0_in mi Switch' off"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
+		cset "name='Pin5-Port0 Mux' 1"
+		cset "name='Pin6-Port0 Mux' 2"
+		cset "name='Pin7-Port0 Mux' 3"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825adi"
+	]
+
+	Value {
+			TQ "HiFi"
+			CapturePCM "hw:sklnau8825adi,3"
+			PlaybackPCM "hw:sklnau8825adi,0"
+	}
+}
+
+SectionDevice."Speaker".0 {
+	Value {
+		CoupledMixers "Left Master,Right Master"
+		PlaybackChannels "2"
+		PlaybackPriority "1"
+	}
+
+	EnableSequence [
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."InternalMic".0 {
+	Value {
+		CaptureChannels "2"
+		CapturePriority "1"
+	}
+
+	EnableSequence [
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."Headphone".0 {
+	Value {
+		JackName "sklnau8825adi Headset Jack"
+		PlaybackChannels "2"
+		PlaybackPriority "2"
+	}
+
+	EnableSequence [
+		cdev "hw:sklnau8825adi"
+		cset "name='codec0_out mo media0_in mi Switch' off"
+		cset "name='codec1_out mo media0_in mi Switch' on"
+		cset "name='Headphone Jack Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825adi"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='Headphone Jack Switch' off"
+	]
+}
+
+SectionDevice."Mic".0 {
+	Value {
+		JackName "sklnau8825adi Headset Jack"
+		CaptureChannels "2"
+		CapturePriority "2"
+	}
+
+	EnableSequence [
+		cdev "hw:sklnau8825adi"
+		cset "name='Headset Mic Switch' on"
+		cset "name='media0_out mo codec0_in mi Switch' on"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' off"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825adi"
+		cset "name='Headset Mic Switch' off"
+		cset "name='media0_out mo codec0_in mi Switch' off"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
+	]
+}

+ 6 - 0
usr/share/alsa/ucm/Google-Caroline-1.0-Caroline/sklnau8825adi.conf

@@ -0,0 +1,6 @@
+Comment "Caroline internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}

+ 6 - 0
usr/share/alsa/ucm/Google-Cave-1.0-Cave/Google-Cave-1.0-Cave.conf

@@ -0,0 +1,6 @@
+Comment "Caroline internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}

+ 95 - 0
usr/share/alsa/ucm/Google-Cave-1.0-Cave/HiFi.conf

@@ -0,0 +1,95 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='DAC Oversampling Rate' 128"
+		cset "name='Headset Mic Switch' off"
+		cset "name='media0_out mo codec0_in mi Switch' off"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
+		cset "name='Pin5-Port0 Mux' 1"
+		cset "name='Pin6-Port0 Mux' 2"
+		cset "name='Pin7-Port0 Mux' 3"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825max"
+	]
+
+	Value {
+			TQ "HiFi"
+			CapturePCM "hw:sklnau8825max,3"
+			PlaybackPCM "hw:sklnau8825max,0"
+	}
+}
+
+SectionDevice."Speaker".0 {
+	Value {
+		CoupledMixers "Left Master,Right Master"
+		PlaybackChannels "2"
+		PlaybackPriority "1"
+	}
+
+	EnableSequence [
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."InternalMic".0 {
+	Value {
+		CaptureChannels "2"
+		CapturePriority "1"
+	}
+
+	EnableSequence [
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."Headphone".0 {
+	Value {
+		JackName "sklnau8825max Headset Jack"
+		PlaybackChannels "2"
+		PlaybackPriority "2"
+	}
+
+	EnableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='codec0_out mo media0_in mi Switch' off"
+		cset "name='codec1_out mo media0_in mi Switch' on"
+		cset "name='Headphone Jack Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='Headphone Jack Switch' off"
+	]
+}
+
+SectionDevice."Mic".0 {
+	Value {
+		JackName "sklnau8825max Headset Jack"
+		CaptureChannels "2"
+		CapturePriority "2"
+	}
+
+	EnableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='Headset Mic Switch' on"
+		cset "name='media0_out mo codec0_in mi Switch' on"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' off"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='Headset Mic Switch' off"
+		cset "name='media0_out mo codec0_in mi Switch' off"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
+	]
+}

+ 6 - 0
usr/share/alsa/ucm/Google-Cave-1.0-Cave/sklnau8825max.conf

@@ -0,0 +1,6 @@
+Comment "Caroline internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}

+ 6 - 0
usr/share/alsa/ucm/Google-Chell-1.0-Chell/Google-Chell-1.0-Chell.conf

@@ -0,0 +1,6 @@
+Comment "Caroline internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}

+ 95 - 0
usr/share/alsa/ucm/Google-Chell-1.0-Chell/HiFi.conf

@@ -0,0 +1,95 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:sklnau8825adi"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='DAC Oversampling Rate' 128"
+		cset "name='Headset Mic Switch' off"
+		cset "name='media0_out mo codec0_in mi Switch' off"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
+		cset "name='Pin5-Port0 Mux' 1"
+		cset "name='Pin6-Port0 Mux' 2"
+		cset "name='Pin7-Port0 Mux' 3"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825adi"
+	]
+
+	Value {
+			TQ "HiFi"
+			CapturePCM "hw:sklnau8825adi,3"
+			PlaybackPCM "hw:sklnau8825adi,0"
+	}
+}
+
+SectionDevice."Speaker".0 {
+	Value {
+		CoupledMixers "Left Master,Right Master"
+		PlaybackChannels "2"
+		PlaybackPriority "1"
+	}
+
+	EnableSequence [
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."InternalMic".0 {
+	Value {
+		CaptureChannels "2"
+		CapturePriority "1"
+	}
+
+	EnableSequence [
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."Headphone".0 {
+	Value {
+		JackName "sklnau8825adi Headset Jack"
+		PlaybackChannels "2"
+		PlaybackPriority "2"
+	}
+
+	EnableSequence [
+		cdev "hw:sklnau8825adi"
+		cset "name='codec0_out mo media0_in mi Switch' off"
+		cset "name='codec1_out mo media0_in mi Switch' on"
+		cset "name='Headphone Jack Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825adi"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='Headphone Jack Switch' off"
+	]
+}
+
+SectionDevice."Mic".0 {
+	Value {
+		JackName "sklnau8825adi Headset Jack"
+		CaptureChannels "2"
+		CapturePriority "2"
+	}
+
+	EnableSequence [
+		cdev "hw:sklnau8825adi"
+		cset "name='Headset Mic Switch' on"
+		cset "name='media0_out mo codec0_in mi Switch' on"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' off"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825adi"
+		cset "name='Headset Mic Switch' off"
+		cset "name='media0_out mo codec0_in mi Switch' off"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
+	]
+}

+ 6 - 0
usr/share/alsa/ucm/Google-Chell-1.0-Chell/sklnau8825adi.conf

@@ -0,0 +1,6 @@
+Comment "Caroline internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}

+ 6 - 0
usr/share/alsa/ucm/Google-Lars-1.0-Lars/Google-Lars-1.0-Lars.conf

@@ -0,0 +1,6 @@
+Comment "Caroline internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}

+ 95 - 0
usr/share/alsa/ucm/Google-Lars-1.0-Lars/HiFi.conf

@@ -0,0 +1,95 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='DAC Oversampling Rate' 128"
+		cset "name='Headset Mic Switch' off"
+		cset "name='media0_out mo codec0_in mi Switch' off"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
+		cset "name='Pin5 Mux' 1"
+		cset "name='Pin6 Mux' 2"
+		cset "name='Pin7 Mux' 3"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825max"
+	]
+
+	Value {
+			TQ "HiFi"
+			CapturePCM "hw:sklnau8825max,3"
+			PlaybackPCM "hw:sklnau8825max,0"
+	}
+}
+
+SectionDevice."Speaker".0 {
+	Value {
+		CoupledMixers "Left Master,Right Master"
+		PlaybackChannels "2"
+		PlaybackPriority "1"
+	}
+
+	EnableSequence [
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."InternalMic".0 {
+	Value {
+		CaptureChannels "2"
+		CapturePriority "1"
+	}
+
+	EnableSequence [
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."Headphone".0 {
+	Value {
+		JackName "sklnau8825max Headset Jack"
+		PlaybackChannels "2"
+		PlaybackPriority "2"
+	}
+
+	EnableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='codec0_out mo media0_in mi Switch' off"
+		cset "name='codec1_out mo media0_in mi Switch' on"
+		cset "name='Headphone Jack Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='Headphone Jack Switch' off"
+	]
+}
+
+SectionDevice."Mic".0 {
+	Value {
+		JackName "sklnau8825max Headset Jack"
+		CaptureChannels "2"
+		CapturePriority "2"
+	}
+
+	EnableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='Headset Mic Switch' on"
+		cset "name='media0_out mo codec0_in mi Switch' on"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' off"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='Headset Mic Switch' off"
+		cset "name='media0_out mo codec0_in mi Switch' off"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
+	]
+}

+ 6 - 0
usr/share/alsa/ucm/Google-Lars-1.0-Lars/sklnau8825max.conf

@@ -0,0 +1,6 @@
+Comment "Caroline internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}

+ 6 - 0
usr/share/alsa/ucm/Google-Sentry-1.0-Sentry/Google-Sentry-1.0-Sentry.conf

@@ -0,0 +1,6 @@
+Comment "Caroline internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}

+ 95 - 0
usr/share/alsa/ucm/Google-Sentry-1.0-Sentry/HiFi.conf

@@ -0,0 +1,95 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='DAC Oversampling Rate' 128"
+		cset "name='Headset Mic Switch' off"
+		cset "name='media0_out mo codec0_in mi Switch' off"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
+		cset "name='Pin5-Port0 Mux' 1"
+		cset "name='Pin6-Port0 Mux' 2"
+		cset "name='Pin7-Port0 Mux' 3"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825max"
+	]
+
+	Value {
+			TQ "HiFi"
+			CapturePCM "hw:sklnau8825max,3"
+			PlaybackPCM "hw:sklnau8825max,0"
+	}
+}
+
+SectionDevice."Speaker".0 {
+	Value {
+		CoupledMixers "Left Master,Right Master"
+		PlaybackChannels "2"
+		PlaybackPriority "1"
+	}
+
+	EnableSequence [
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."InternalMic".0 {
+	Value {
+		CaptureChannels "2"
+		CapturePriority "1"
+	}
+
+	EnableSequence [
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."Headphone".0 {
+	Value {
+		JackName "sklnau8825max Headset Jack"
+		PlaybackChannels "2"
+		PlaybackPriority "2"
+	}
+
+	EnableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='codec0_out mo media0_in mi Switch' off"
+		cset "name='codec1_out mo media0_in mi Switch' on"
+		cset "name='Headphone Jack Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='Headphone Jack Switch' off"
+	]
+}
+
+SectionDevice."Mic".0 {
+	Value {
+		JackName "sklnau8825max Headset Jack"
+		CaptureChannels "2"
+		CapturePriority "2"
+	}
+
+	EnableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='Headset Mic Switch' on"
+		cset "name='media0_out mo codec0_in mi Switch' on"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' off"
+	]
+
+	DisableSequence [
+		cdev "hw:sklnau8825max"
+		cset "name='Headset Mic Switch' off"
+		cset "name='media0_out mo codec0_in mi Switch' off"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
+	]
+}

+ 6 - 0
usr/share/alsa/ucm/Google-Sentry-1.0-Sentry/sklnau8825max.conf

@@ -0,0 +1,6 @@
+Comment "Caroline internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}