From ae484598ec2a80c5617703a7b91e5dd898dc936f Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Mon, 3 Oct 2022 18:07:53 +0900 Subject: [PATCH 1/2] ucm2: acp3xalc5682m98: Add JackControls Signed-off-by: Akihiko Odaki --- ucm2/AMD/acp3xalc5682m98/HiFi.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ucm2/AMD/acp3xalc5682m98/HiFi.conf b/ucm2/AMD/acp3xalc5682m98/HiFi.conf index 97e42946..aa0e91b9 100644 --- a/ucm2/AMD/acp3xalc5682m98/HiFi.conf +++ b/ucm2/AMD/acp3xalc5682m98/HiFi.conf @@ -47,6 +47,7 @@ SectionDevice."Headphones" { Value { PlaybackPCM "hw:${CardId},0" PlaybackMixerElem "DAC1" + JackControl "Headphone Jack" } EnableSequence [ cset "name='Headphone Jack Switch' on" @@ -97,6 +98,7 @@ If.1mic { Value { CapturePCM "hw:${CardId},0" CaptureMixerElem "Headset Mic" + JackControl "Headset Mic Jack" } EnableSequence [ cset "name='Headset Mic Switch' on" @@ -122,6 +124,7 @@ If.1mic { Value { CapturePCM "hw:${CardId},0" CaptureMixerElem "Headset Mic" + JackControl "Headset Mic Jack" } EnableSequence [ cset "name='Headset Mic Switch' on" From 712a9d0961ad67dc4c5797b9f7a7eb642b6f8ad2 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Thu, 19 Oct 2023 19:48:39 +0900 Subject: [PATCH 2/2] ucm2: acp3xalc5682m98: Add priority values Signed-off-by: Akihiko Odaki --- ucm2/AMD/acp3xalc5682m98/HiFi.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ucm2/AMD/acp3xalc5682m98/HiFi.conf b/ucm2/AMD/acp3xalc5682m98/HiFi.conf index aa0e91b9..915d0203 100644 --- a/ucm2/AMD/acp3xalc5682m98/HiFi.conf +++ b/ucm2/AMD/acp3xalc5682m98/HiFi.conf @@ -33,6 +33,7 @@ SectionDevice."Speaker" { Comment "Speaker" Value { PlaybackPCM "hw:${CardId},1" + PlaybackPriority 200 } EnableSequence [ cset "name='Spk Switch' on" @@ -46,6 +47,7 @@ SectionDevice."Headphones" { Comment "Headphones" Value { PlaybackPCM "hw:${CardId},0" + PlaybackPriority 300 PlaybackMixerElem "DAC1" JackControl "Headphone Jack" } @@ -74,6 +76,7 @@ If.1mic { ] Value { CapturePCM "hw:${CardId},2" + CapturePriority 200 } EnableSequence [ cset "name='Dmic Mux' Front Mic" @@ -87,6 +90,7 @@ If.1mic { ] Value { CapturePCM "hw:${CardId},2" + CapturePriority 100 } EnableSequence [ cset "name='Dmic Mux' Rear Mic" @@ -97,6 +101,7 @@ If.1mic { Comment "Microphone" Value { CapturePCM "hw:${CardId},0" + CapturePriority 300 CaptureMixerElem "Headset Mic" JackControl "Headset Mic Jack" } @@ -113,6 +118,7 @@ If.1mic { Comment "Internal Microphone" Value { CapturePCM "hw:${CardId},2" + CapturePriority 200 } EnableSequence [ cset "name='Dmic Mux' Front Mic" @@ -123,6 +129,7 @@ If.1mic { Comment "Microphone" Value { CapturePCM "hw:${CardId},0" + CapturePriority 300 CaptureMixerElem "Headset Mic" JackControl "Headset Mic Jack" }