From: Amadeusz Sławiński Date: Tue, 18 Jun 2024 10:44:08 +0000 (+0200) Subject: ucm2: Intel: avs: Add UCM files for da7219 configuration X-Git-Tag: v1.2.13~37 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a56b33b7980d065595e05e7fbf08ace5e323bb53;p=alsa-ucm-conf.git ucm2: Intel: avs: Add UCM files for da7219 configuration 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 --- 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