Skip to content

Commit 2b22dfb

Browse files
committed
Workaround broken sound issue by disabling SG-buffer
Since about 5.17 kernel (2c95b92ecd92e784785b1db8cccc4f0f2bfa850c upstream commit specifically), audio stops working after some time. The real solution isn't known yet, but as a workaround disable problematic feature (SG-buffer) for now. See linked issue and upstream discussion at [1] for details. Fixes QubesOS/qubes-issues#7465 [1] https://lore.kernel.org/alsa-devel/Y6E9VixS7sV0kpWQ@mail-itl/T/
1 parent 5482f86 commit 2b22dfb

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

0001-sound-Disable-SG-buffer.patch

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From bcc68c3829df041bf22ee493f8eb58fce230303b Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
3+
<marmarek@invisiblethingslab.com>
4+
Date: Tue, 27 Dec 2022 15:49:46 +0100
5+
Subject: [PATCH] sound: Disable SG-buffer
6+
7+
This appears to be broken under Xen PV (or other Qubes-specific
8+
factor?), so disable it until fixed.
9+
---
10+
sound/core/Kconfig | 4 ++--
11+
1 file changed, 2 insertions(+), 2 deletions(-)
12+
13+
diff --git a/sound/core/Kconfig b/sound/core/Kconfig
14+
index 12990d9a4dff..18798d99021d 100644
15+
--- a/sound/core/Kconfig
16+
+++ b/sound/core/Kconfig
17+
@@ -225,8 +225,8 @@ config SND_VMASTER
18+
bool
19+
20+
config SND_DMA_SGBUF
21+
- def_bool y
22+
- depends on X86
23+
+ def_bool n
24+
+# depends on X86
25+
26+
config SND_CTL_LED
27+
tristate
28+
--
29+
2.37.3
30+

kernel.spec.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ Patch12: 0013-xen-pcifront-pciback-Update-pciif.h-with-err-and-res.patch
146146
Patch16: 0001-usbip-tweak-clear-halt-with-simple-reset.patch
147147
Patch19: increase-reclaim-speed.patch
148148
Patch25: 0001-Re-enable-interrupts-before-loading-PNVM.patch
149+
Patch26: 0001-sound-Disable-SG-buffer.patch
149150

150151
%description
151152
Qubes Dom0 kernel.

0 commit comments

Comments
 (0)