From 242a4ce1159432d98e75ac96960e14079411d2e7 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 7 Oct 2022 11:15:29 +0200 Subject: [PATCH] USB-Audio: ALC4080 - detect Speaker / Front Headphone controls BugLink: https://github.com/alsa-project/alsa-ucm-conf/issues/227 Signed-off-by: Jaroslav Kysela --- ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf b/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf index e18de59..b1e0130 100644 --- a/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf +++ b/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf @@ -32,6 +32,25 @@ Define { SpdifPCM "hw:${CardId},3" } +If.speaker_ctl { + Condition { + Type ControlExists + Control "name='Speaker Playback Switch'" + } + True.Define.SpeakerMixer "Speaker" +} + +If.front_hp_ctl { + Condition { + Type ControlExists + Control "name='Front Headphone Playback Switch'" + } + True.Define { + HeadphonesMixer "Front Headphone" + HeadphonesMindex "0" + } +} + If.spdif_dev2 { Condition { Type RegexMatch -- 2.47.1