From 95860378817a6ab698ef88035636cc1b837dd26b Mon Sep 17 00:00:00 2001 From: WeirdTreeThing Date: Sat, 25 Jan 2025 15:08:08 -0500 Subject: [PATCH] ucm2: add acp3x-alc5682-alc1015 Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/501 Signed-off-by: WeirdTreeThing Signed-off-by: Jaroslav Kysela --- ucm2/AMD/acp3x-alc5682-alc1015/HiFi.conf | 89 +++++++++++++++++++ .../acp3x-alc5682-alc1015.conf | 6 ++ .../acp3xalc5682101/acp3xalc5682101.conf | 1 + 3 files changed, 96 insertions(+) create mode 100644 ucm2/AMD/acp3x-alc5682-alc1015/HiFi.conf create mode 100644 ucm2/AMD/acp3x-alc5682-alc1015/acp3x-alc5682-alc1015.conf create mode 120000 ucm2/conf.d/acp3xalc5682101/acp3xalc5682101.conf diff --git a/ucm2/AMD/acp3x-alc5682-alc1015/HiFi.conf b/ucm2/AMD/acp3x-alc5682-alc1015/HiFi.conf new file mode 100644 index 0000000..6651f7c --- /dev/null +++ b/ucm2/AMD/acp3x-alc5682-alc1015/HiFi.conf @@ -0,0 +1,89 @@ +SectionVerb { + EnableSequence [ + cset "name='Headphone Jack Switch' off" + cset "name='HPOL Playback Switch' off" + cset "name='HPOR Playback Switch' off" + cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" + cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" + cset "name='Stereo1 ADC L Mux' 0" + cset "name='STO1 ADC Capture Switch' on" + cset "name='RECMIX1L CBJ Switch' 1" + cset "name='IF1 01 ADC Swap Mux' 2" + cset "name='CBJ Boost Volume' 2" + cset "name='Stereo1 ADC L1 Mux' 1" + cset "name='Stereo1 ADC R1 Mux' 1" + cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" + cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" + cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" + cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" + cset "name='Left Spk Switch' off" + cset "name='Right Spk Switch' off" + cset "name='Left Bypass Boost' 1" + cset "name='Right Bypass Boost' 1" + cset "name='Left Mono LR Select' Left" + cset "name='Right Mono LR Select' Right" + ] +} + +SectionDevice."Speaker" { + Comment "Speaker" + Value { + PlaybackPriority 100 + PlaybackPCM "hw:${CardId},1" + } + EnableSequence [ + cset "name='Left Spk Switch' on" + cset "name='Right Spk Switch' on" + ] + DisableSequence [ + cset "name='Left Spk Switch' off" + cset "name='Right Spk Switch' off" + ] +} + +SectionDevice."Headphones" { + Comment "Headphones" + Value { + PlaybackPriority 200 + PlaybackPCM "hw:${CardId},0" + PlaybackMixerElem "DAC1" + JackControl "Headset Jack" + } + EnableSequence [ + cset "name='Headphone Jack Switch' on" + cset "name='HPOL Playback Switch' 1" + cset "name='HPOR Playback Switch' 1" + ] + DisableSequence [ + cset "name='Headphone Jack Switch' off" + cset "name='HPOL Playback Switch' 0" + cset "name='HPOR Playback Switch' 0" + ] +} + +SectionDevice."Mic" { + Comment "Internal Microphone" + Value { + CapturePriority 100 + CapturePCM "hw:${CardId},2" + } + EnableSequence [ + cset "name='Dmic Mux' Front Mic" + ] +} + +SectionDevice."Headset" { + Comment "Headset Microphone" + Value { + CapturePriority 200 + CapturePCM "hw:${CardId},0" + CaptureMixerElem "Headset Mic" + JackControl "Headset Jack" + } + EnableSequence [ + cset "name='Headset Mic Switch' on" + ] + DisableSequence [ + cset "name='Headset Mic Switch' off" + ] +} diff --git a/ucm2/AMD/acp3x-alc5682-alc1015/acp3x-alc5682-alc1015.conf b/ucm2/AMD/acp3x-alc5682-alc1015/acp3x-alc5682-alc1015.conf new file mode 100644 index 0000000..2cb6c95 --- /dev/null +++ b/ucm2/AMD/acp3x-alc5682-alc1015/acp3x-alc5682-alc1015.conf @@ -0,0 +1,6 @@ +Syntax 6 + +SectionUseCase."HiFi" { + File "HiFi.conf" + Comment "Default" +} diff --git a/ucm2/conf.d/acp3xalc5682101/acp3xalc5682101.conf b/ucm2/conf.d/acp3xalc5682101/acp3xalc5682101.conf new file mode 120000 index 0000000..14c1748 --- /dev/null +++ b/ucm2/conf.d/acp3xalc5682101/acp3xalc5682101.conf @@ -0,0 +1 @@ +../../AMD/acp3x-alc5682-alc1015/acp3x-alc5682-alc1015.conf \ No newline at end of file -- 2.47.1