From: Anton Bambura Date: Sun, 19 Jun 2022 06:11:04 +0000 (+0300) Subject: tegra: max98090: add speakers and internal mic X-Git-Tag: v1.2.7.2~5 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=c827028262935566feed7b10548517810a955109;p=alsa-ucm-conf.git tegra: max98090: add speakers and internal mic Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/173 Signed-off-by: Anton Bambura Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/Tegra/max98090/HiFi.conf b/ucm2/Tegra/max98090/HiFi.conf index 5428591..93d3217 100644 --- a/ucm2/Tegra/max98090/HiFi.conf +++ b/ucm2/Tegra/max98090/HiFi.conf @@ -37,10 +37,38 @@ SectionVerb { ] } +SectionDevice."Speakers" { + Comment = "Speakers" + + ConflictingDevice [ + "Headphones" + ] + Value { + PlaybackPriority 100 + PlaybackPCM "hw:${CardId}" + PlaybackVolume "Speaker Volume" + } + EnableSequence [ + cset "name='Speakers Switch' on" + cset "name='Headphones Switch' off" + ] + DisableSequence [ + cset "name='Headphones Switch' on" + cset "name='Speakers Switch' off" + ] +} + SectionDevice."Headphones" { + Comment = "Headphones" + + ConflictingDevice [ + "Speakers" + ] Value { PlaybackPriority 100 PlaybackPCM "hw:${CardId}" + PlaybackVolume "Headphone Volume" + JackControl "Headphone Jack" } EnableSequence [ cset "name='Speakers Switch' off" @@ -52,22 +80,53 @@ SectionDevice."Headphones" { ] } -SectionDevice."Mic" { +SectionDevice."InternalMicrophone" { + Comment "Internal Microphone" + + ConflictingDevice [ + "HeadsetMicrophone" + ] + + EnableSequence [ + cset "name='Int Mic Switch' on" + cset "name='Mic Jack Switch' off" + cset "name='DMIC Mux' DMIC" + ] + + DisableSequence [ + cset "name='Int Mic Switch' off" + cset "name='Mic Jack Switch' on" + cset "name='DMIC Mux' ADC" + ] + + Value { + CapturePCM "hw:${CardId}" + CaptureChannels 2 + CaptureVolume "MIC2 Volume" + } +} + +SectionDevice."HeadsetMicrophone" { + Comment = "Headset Microphone" + + ConflictingDevice [ + "InternalMicrophone" + ] + Value { CapturePriority 100 CapturePCM "hw:${CardId}" #CaptureControl "MIC2" + JackControl "Mic Jack" } EnableSequence [ cset "name='Int Mic Switch' off" cset "name='DMIC Mux' ADC" cset "name='Mic Jack Switch' on" - cset "name='Record Path DC Blocking' on" ] DisableSequence [ cset "name='Mic Jack Switch' off" cset "name='DMIC Mux' DMIC" cset "name='Int Mic Switch' on" - cset "name='Record Path DC Blocking' off" ] }