From 7f8c2a1fa4b0e592e7bf7ef9b2efb37393e3a46d Mon Sep 17 00:00:00 2001 From: workflow <4farlion@gmail.com> Date: Mon, 8 Apr 2024 19:49:23 +0100 Subject: [PATCH] linux/common-config: enable RT1308 sound support module This module is required for working internal speakers on **some** versions of the Dell XPS 9700, possibly other laptops. Upstreaming it removes the need for kernel rebuilds for these laptop users. See https://github.com/NixOS/nixpkgs/issues/130882 --- pkgs/os-specific/linux/kernel/common-config.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 9bc74b4eb848b..c743b941db97d 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -513,6 +513,7 @@ let versionAtLeast version "5.5") { SND_SOC_INTEL_SOUNDWIRE_SOF_MACH = whenAtLeast "5.10" module; SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES = whenAtLeast "5.10" yes; # dep of SOF_MACH + SND_SOC_RT1308 = whenAtLeast "5.12" module; # Realtek RT1308 codec SND_SOC_SOF_INTEL_SOUNDWIRE_LINK = whenBetween "5.10" "5.11" yes; # dep of SOF_MACH SND_SOC_SOF_TOPLEVEL = yes; SND_SOC_SOF_ACPI = module;