From 4e0e3423bc28bdd519f1f9f97b253d06206ba620 Mon Sep 17 00:00:00 2001 From: WeirdTreeThing Date: Wed, 18 Oct 2023 18:56:27 -0400 Subject: [PATCH] ucm2: add acpd7219m98357 For "grunt" chromebooks Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/361 Signed-off-by: WeirdTreeThing Signed-off-by: Jaroslav Kysela --- ucm2/AMD/acpd7219m98357/HiFi.conf | 77 +++++++++++++++++++ ucm2/AMD/acpd7219m98357/acpd7219m98357.conf | 6 ++ .../conf.d/acpd7219m98357/acpd7219m98357.conf | 1 + 3 files changed, 84 insertions(+) create mode 100644 ucm2/AMD/acpd7219m98357/HiFi.conf create mode 100644 ucm2/AMD/acpd7219m98357/acpd7219m98357.conf create mode 120000 ucm2/conf.d/acpd7219m98357/acpd7219m98357.conf diff --git a/ucm2/AMD/acpd7219m98357/HiFi.conf b/ucm2/AMD/acpd7219m98357/HiFi.conf new file mode 100644 index 0000000..ff64063 --- /dev/null +++ b/ucm2/AMD/acpd7219m98357/HiFi.conf @@ -0,0 +1,77 @@ +SectionVerb { + EnableSequence [ + cset "name='Playback Digital Volume' 111" + cset "name='Playback Digital Switch' on" + cset "name='Out DACL Mux' DAIL" + cset "name='Out DACR Mux' DAIR" + cset "name='Mixer Out FilterL DACL Switch' on" + cset "name='Mixer Out FilterR DACR Switch' on" + cset "name='ST Mixer Out FilterL Out FilterL Switch' on" + cset "name='ST Mixer Out FilterR Out FilterR Switch' on" + cset "name='Headphone Switch' off" + cset "name='Headset Mic Switch' off" + cset "name='Mic Volume' 5" + cset "name='Capture Digital Volume' 111" + cset "name='Capture Digital Switch' on" + cset "name='Mixin Volume' 10" + cset "name='Mixin Switch' on" + cset "name='Mixer In Mic Switch' on" + cset "name='Out DAIL Mux' ADC" + cset "name='Out DAIR Mux' ADC" + cset "name='Gain Ramp Rate' 1" + ] +} + +SectionDevice."Speaker" { + Comment "Speaker" + + Value { + PlaybackPriority 100 + PlaybackPCM "hw:${CardId},2" + } +} + +SectionDevice."Headphones" { + Comment "Headphones" + + Value { + PlaybackPriority 200 + PlaybackPCM "hw:${CardId},0" + PlaybackMixerElem "Headphone" + JackControl "Headphone Jack" + } + EnableSequence [ + cset "name='Headphone Switch' on" + ] + DisableSequence [ + cset "name='Headphone Switch' off" + ] +} + +SectionDevice."Mic" { + Comment "Internal Microphone" + + Value { + CapturePriority 100 + CapturePCM "hw:${CardId},4" + } +} + +SectionDevice."Headset" { + Comment "Headset Microphone" + + Value { + CapturePriority 200 + CapturePCM "hw:${CardId},1" + CaptureMixerElem "Headset Mic" + JackControl "Headset Mic Jack" + } + EnableSequence [ + cset "name='Headset Mic Switch' on" + cset "name='Mic Switch' on" + ] + DisableSequence [ + cset "name='Headset Mic Switch' off" + cset "name='Mic Switch' off" + ] +} diff --git a/ucm2/AMD/acpd7219m98357/acpd7219m98357.conf b/ucm2/AMD/acpd7219m98357/acpd7219m98357.conf new file mode 100644 index 0000000..2cb6c95 --- /dev/null +++ b/ucm2/AMD/acpd7219m98357/acpd7219m98357.conf @@ -0,0 +1,6 @@ +Syntax 6 + +SectionUseCase."HiFi" { + File "HiFi.conf" + Comment "Default" +} diff --git a/ucm2/conf.d/acpd7219m98357/acpd7219m98357.conf b/ucm2/conf.d/acpd7219m98357/acpd7219m98357.conf new file mode 120000 index 0000000..34238f0 --- /dev/null +++ b/ucm2/conf.d/acpd7219m98357/acpd7219m98357.conf @@ -0,0 +1 @@ +../../AMD/acpd7219m98357/acpd7219m98357.conf \ No newline at end of file -- 2.47.1