File 0009-sof-hda-dsp-Set-Master-Playback-Switch-on-in-the-Boo.patch of Package alsa-ucm-conf

From cf267cce6d553d4d436c166c23d3befc5476acef Mon Sep 17 00:00:00 2001
From: Hui Wang <hui.wang@canonical.com>
Date: Thu, 29 Oct 2020 13:34:02 +0800
Subject: [PATCH 9/9] sof-hda-dsp: Set Master Playback Switch on in the
 BootSequence

Otherwise, the audio output will be muted by default if there is no
/var/lib/alsa/asound.state. I have experienced this issue When newly
install an OS.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
---
 ucm2/HDA-Intel/init.conf          | 1 +
 ucm2/sof-hda-dsp/sof-hda-dsp.conf | 1 +
 2 files changed, 2 insertions(+)

diff --git a/ucm2/HDA-Intel/init.conf b/ucm2/HDA-Intel/init.conf
index 1a351a9cb3d5..6310eb34973a 100644
--- a/ucm2/HDA-Intel/init.conf
+++ b/ucm2/HDA-Intel/init.conf
@@ -15,6 +15,7 @@ If.master {
 	}
 	True.BootSequence [
 		cset "name='Master Playback Volume' 60%"
+		cset "name='Master Playback Switch' on"
 	]
 }
 
diff --git a/ucm2/sof-hda-dsp/sof-hda-dsp.conf b/ucm2/sof-hda-dsp/sof-hda-dsp.conf
index c8069a6bbf28..79b54a9c61d6 100644
--- a/ucm2/sof-hda-dsp/sof-hda-dsp.conf
+++ b/ucm2/sof-hda-dsp/sof-hda-dsp.conf
@@ -24,6 +24,7 @@ If.master {
 	}
 	True.BootSequence [
 		cset "name='Master Playback Volume' 60%"
+		cset "name='Master Playback Switch' on"
 	]
 }
 
-- 
2.26.2
openSUSE Build Service is sponsored by