From 2c8cba5142f7bbefc42ee4df4641c87983603c98 Mon Sep 17 00:00:00 2001 From: WeirdTreeThing Date: Sat, 25 Jan 2025 15:20:58 -0500 Subject: [PATCH] ucm2: add mt8183_da7219_rt1015p Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/502 Signed-off-by: WeirdTreeThing Signed-off-by: Jaroslav Kysela --- .../mt8183/mt8183_da7219_rt1015p/HiFi.conf | 90 +++++++++++++++++++ .../mt8183_da7219_rt1015p.conf | 24 +++++ .../mt8183_da7219_r/mt8183_da7219_r.conf | 1 + 3 files changed, 115 insertions(+) create mode 100644 ucm2/MediaTek/mt8183/mt8183_da7219_rt1015p/HiFi.conf create mode 100644 ucm2/MediaTek/mt8183/mt8183_da7219_rt1015p/mt8183_da7219_rt1015p.conf create mode 120000 ucm2/conf.d/mt8183_da7219_r/mt8183_da7219_r.conf diff --git a/ucm2/MediaTek/mt8183/mt8183_da7219_rt1015p/HiFi.conf b/ucm2/MediaTek/mt8183/mt8183_da7219_rt1015p/HiFi.conf new file mode 100644 index 0000000..0f41837 --- /dev/null +++ b/ucm2/MediaTek/mt8183/mt8183_da7219_rt1015p/HiFi.conf @@ -0,0 +1,90 @@ +SectionDevice."Speaker" { + Comment "Speaker" + + Value { + PlaybackPCM "hw:${CardId},0" + } + EnableSequence [ + cset "name='I2S3_CH1 DL1_CH1' 1" + cset "name='I2S3_CH2 DL1_CH2' 1" + cset "name='Speakers Switch' 1" + ] + DisableSequence [ + cset "name='I2S3_CH1 DL1_CH1' 0" + cset "name='I2S3_CH2 DL1_CH2' 0" + cset "name='Speakers Switch' 0" + ] +} + +SectionDevice."Headphones" { + Comment "Headphones" + + Value { + PlaybackPCM "hw:${CardId},0" + } + EnableSequence [ + cset "name='Playback Digital Switch' 1" + cset "name='Headphone Switch' 1" + cset "name='ST Mixer Out FilterL Out FilterL Switch' 1" + cset "name='Mixer Out FilterL DACL Switch' 1" + cset "name='ST Mixer Out FilterR Out FilterR Switch' 1" + cset "name='Mixer Out FilterR DACR Switch' 1" + cset "name='Out DACL Mux' DAIL" + cset "name='Out DACR Mux' DAIR" + cset "name='I2S3_CH1 DL1_CH1' 1" + cset "name='I2S3_CH2 DL1_CH2' 1" + ] + DisableSequence [ + cset "name='Playback Digital Switch' 0" + cset "name='Headphone Switch' 0" + cset "name='ST Mixer Out FilterL Out FilterL Switch' 0" + cset "name='Mixer Out FilterL DACL Switch' 0" + cset "name='ST Mixer Out FilterR Out FilterR Switch' 0" + cset "name='Mixer Out FilterR DACR Switch' 0" + cset "name='I2S3_CH1 DL1_CH1' 0" + cset "name='I2S3_CH2 DL1_CH2' 0" + ] +} + +SectionDevice."Mic" { + Comment "Internal Microphone" + + Value { + CapturePCM "hw:${CardId},5" + } + EnableSequence [ + cset "name='MTKAIF_DMIC' 1" + cset "name='Mt6358 Mic Type Mux' 2" + cset "name='UL3_CH1 ADDA_UL_CH1' 1" + cset "name='UL3_CH2 ADDA_UL_CH2' 1" + ] + DisableSequence [ + cset "name='MTKAIF_DMIC' 0" + cset "name='Mt6358 Mic Type Mux' 0" + cset "name='UL3_CH1 ADDA_UL_CH1' 0" + cset "name='UL3_CH2 ADDA_UL_CH2' 0" + ] +} + +SectionDevice."Headset" { + Comment "Headset Microphone" + + Value { + CapturePCM "hw:${CardId},5" + } + EnableSequence [ + cset "name='Capture Digital Switch' 1" + cset "name='Mixin Switch' 1" + cset "name='Mic Switch' 1" + cset "name='Mixer In Mic Switch' 1" + cset "name='Out DAIL Mux' ADC" + cset "name='UL3_CH1 I2S2_CH1' 1" + ] + DisableSequence [ + cset "name='Capture Digital Switch' 0" + cset "name='Mixin Switch' 0" + cset "name='Mic Switch' 0" + cset "name='Mixer In Mic Switch' 0" + cset "name='UL3_CH1 I2S2_CH1' 0" + ] +} diff --git a/ucm2/MediaTek/mt8183/mt8183_da7219_rt1015p/mt8183_da7219_rt1015p.conf b/ucm2/MediaTek/mt8183/mt8183_da7219_rt1015p/mt8183_da7219_rt1015p.conf new file mode 100644 index 0000000..e5fcd78 --- /dev/null +++ b/ucm2/MediaTek/mt8183/mt8183_da7219_rt1015p/mt8183_da7219_rt1015p.conf @@ -0,0 +1,24 @@ +Syntax 6 + +SectionUseCase."HiFi" { + File "HiFi.conf" + Comment "Default" +} + +BootSequence [ + # Speaker + cset "name='I2S3_CH1 DL1_CH1' 1" + cset "name='I2S3_CH2 DL1_CH2' 1" + cset "name='Speakers Switch' 1" + + # Internal Mic + cset "name='MTKAIF_DMIC' 1" + cset "name='Mt6358 Mic Type Mux' 2" + cset "name='UL3_CH1 ADDA_UL_CH1' 1" + cset "name='UL3_CH2 ADDA_UL_CH2' 1" + + # Headset + cset "name='Headphone Volume' 56" + cset "name='Capture Digital Volume' 113" + cset "name='Mic Volume' 3" +] diff --git a/ucm2/conf.d/mt8183_da7219_r/mt8183_da7219_r.conf b/ucm2/conf.d/mt8183_da7219_r/mt8183_da7219_r.conf new file mode 120000 index 0000000..14c4bac --- /dev/null +++ b/ucm2/conf.d/mt8183_da7219_r/mt8183_da7219_r.conf @@ -0,0 +1 @@ +../../MediaTek/mt8183/mt8183_da7219_rt1015p/mt8183_da7219_rt1015p.conf \ No newline at end of file -- 2.47.1