From 77a133a0d1e7d0bab1671a0e9ea44e6f75ef0fe3 Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Tue, 9 Jan 2024 00:15:30 +0000 Subject: [PATCH] Disable onboard audio on pi --- hosts/pi/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/hosts/pi/default.nix b/hosts/pi/default.nix index 5f77857..1d194cb 100644 --- a/hosts/pi/default.nix +++ b/hosts/pi/default.nix @@ -19,6 +19,25 @@ enable = true; filter = "*rpi-4-*.dtb"; overlays = [ + { + name = "audio-off-overlay"; + dtsText = '' + /dts-v1/; + /plugin/; + + / { + compatible = "brcm,bcm2711"; + + fragment@0 { + target = <&vchiq>; + + __overlay__ { + status = "disabled"; + }; + }; + }; + ''; + } { # Adapted from: https://github.com/raspberrypi/linux/blob/rpi-6.1.y/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts # changes: