From a56b33b7980d065595e05e7fbf08ace5e323bb53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Tue, 18 Jun 2024 12:44:08 +0200 Subject: [PATCH] ucm2: Intel: avs: Add UCM files for da7219 configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add configs for devices using da7219 codec. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/418 Signed-off-by: Amadeusz Sławiński Signed-off-by: Jaroslav Kysela --- .../Intel/avs/avs_da7219/avs_da7219-HiFi.conf | 38 +++++++++++++++++++ ucm2/Intel/avs/avs_da7219/avs_da7219.conf | 28 ++++++++++++++ ucm2/conf.d/avs_da7219/Google-Atlas-1.0.conf | 1 + ucm2/conf.d/avs_da7219/Google-Coral-rev2.conf | 1 + 4 files changed, 68 insertions(+) create mode 100644 ucm2/Intel/avs/avs_da7219/avs_da7219-HiFi.conf create mode 100644 ucm2/Intel/avs/avs_da7219/avs_da7219.conf create mode 120000 ucm2/conf.d/avs_da7219/Google-Atlas-1.0.conf create mode 120000 ucm2/conf.d/avs_da7219/Google-Coral-rev2.conf diff --git a/ucm2/Intel/avs/avs_da7219/avs_da7219-HiFi.conf b/ucm2/Intel/avs/avs_da7219/avs_da7219-HiFi.conf new file mode 100644 index 0000000..95e572e --- /dev/null +++ b/ucm2/Intel/avs/avs_da7219/avs_da7219-HiFi.conf @@ -0,0 +1,38 @@ +SectionDevice."Headphone" { + Comment "Headphones" + + Value { + PlaybackPCM "hw:${CardId},1" + PlaybackChannels 2 + PlaybackMixerElem "Headphone" + JackControl "Headphone Jack" + } + EnableSequence [ + cset "name='Headphone Jack Switch' on" + cset "name='Headphone Switch' 1" + ] + DisableSequence [ + cset "name='Headphone Jack Switch' off" + cset "name='Headphone Switch' 0" + ] +} + +SectionDevice."Mic" { + Comment "Headset Microphone" + + Value { + CapturePCM "hw:${CardId},1" + CaptureChannels 2 + 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/Intel/avs/avs_da7219/avs_da7219.conf b/ucm2/Intel/avs/avs_da7219/avs_da7219.conf new file mode 100644 index 0000000..82a6010 --- /dev/null +++ b/ucm2/Intel/avs/avs_da7219/avs_da7219.conf @@ -0,0 +1,28 @@ +Syntax 6 + +SectionUseCase."HiFi" { + File "/Intel/avs/avs_da7219/avs_da7219-HiFi.conf" + Comment "Play HiFi quality Music" +} + +BootSequence [ + cset "name='Headphone Jack Switch' off" + cset "name='Headset Mic Switch' off" + cset "name='Playback Digital Volume' 111" + cset "name='Playback Digital Switch' 1" + cset "name='Out DACL Mux' DAIL" + cset "name='Out DACR Mux' DAIR" + cset "name='Mixer Out FilterL DACL Switch' 1" + cset "name='Mixer Out FilterR DACR Switch' 1" + cset "name='ST Mixer Out FilterL Out FilterL Switch' 1" + cset "name='ST Mixer Out FilterR Out FilterR Switch' 1" + cset "name='Mic Volume' 5" + cset "name='Capture Digital Volume' 111" + cset "name='Capture Digital Switch' 1" + cset "name='Mixin Volume' 10" + cset "name='Mixin Switch' 1" + cset "name='Mixer In Mic Switch' 1" + cset "name='Out DAIL Mux' ADC" + cset "name='Out DAIR Mux' ADC" + cset "name='Gain Ramp Rate' 1" +] diff --git a/ucm2/conf.d/avs_da7219/Google-Atlas-1.0.conf b/ucm2/conf.d/avs_da7219/Google-Atlas-1.0.conf new file mode 120000 index 0000000..fd7b852 --- /dev/null +++ b/ucm2/conf.d/avs_da7219/Google-Atlas-1.0.conf @@ -0,0 +1 @@ +../../Intel/avs/avs_da7219/avs_da7219.conf \ No newline at end of file diff --git a/ucm2/conf.d/avs_da7219/Google-Coral-rev2.conf b/ucm2/conf.d/avs_da7219/Google-Coral-rev2.conf new file mode 120000 index 0000000..fd7b852 --- /dev/null +++ b/ucm2/conf.d/avs_da7219/Google-Coral-rev2.conf @@ -0,0 +1 @@ +../../Intel/avs/avs_da7219/avs_da7219.conf \ No newline at end of file -- 2.47.1