summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorLuka Blaskovic <lblasc@tvbeat.com>2020-04-29 03:34:41 +0000
committerLuka Blaskovic <lblasc@tvbeat.com>2020-04-29 07:31:49 +0000
commit6fc9fd53dba25f61a6493e7c0d8fef5eca9c51bf (patch)
treedf45ab0555fa0227da0ddc4691a3ad0368b2d093 /pkgs
parentfe7f770666bbd940b54a7cd6ef366eb6151ef655 (diff)
downloadnixpkgs-6fc9fd53dba25f61a6493e7c0d8fef5eca9c51bf.tar
nixpkgs-6fc9fd53dba25f61a6493e7c0d8fef5eca9c51bf.tar.gz
nixpkgs-6fc9fd53dba25f61a6493e7c0d8fef5eca9c51bf.tar.bz2
nixpkgs-6fc9fd53dba25f61a6493e7c0d8fef5eca9c51bf.tar.lz
nixpkgs-6fc9fd53dba25f61a6493e7c0d8fef5eca9c51bf.tar.xz
nixpkgs-6fc9fd53dba25f61a6493e7c0d8fef5eca9c51bf.tar.zst
nixpkgs-6fc9fd53dba25f61a6493e7c0d8fef5eca9c51bf.zip
linux config: enable Sound Open Firmware support
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 0a58ed87e6c..088ec4ebf44 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -254,6 +254,27 @@ let
       SND_USB_CAIAQ_INPUT = yes;
       # Enable PSS mixer (Beethoven ADSP-16 and other compatible)
       PSS_MIXER           = whenOlder "4.12" yes;
+    # Enable Sound Open Firmware support
+    } // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" &&
+                        versionAtLeast version "5.5") {
+      SND_SOC_SOF_TOPLEVEL              = yes;
+      SND_SOC_SOF_ACPI                  = module;
+      SND_SOC_SOF_PCI                   = module;
+      SND_SOC_SOF_APOLLOLAKE_SUPPORT    = yes;
+      SND_SOC_SOF_CANNONLAKE_SUPPORT    = yes;
+      SND_SOC_SOF_COFFEELAKE_SUPPORT    = yes;
+      SND_SOC_SOF_COMETLAKE_H_SUPPORT   = yes;
+      SND_SOC_SOF_COMETLAKE_LP_SUPPORT  = yes;
+      SND_SOC_SOF_ELKHARTLAKE_SUPPORT   = yes;
+      SND_SOC_SOF_GEMINILAKE_SUPPORT    = yes;
+      SND_SOC_SOF_HDA_AUDIO_CODEC       = yes;
+      SND_SOC_SOF_HDA_COMMON_HDMI_CODEC = yes;
+      SND_SOC_SOF_HDA_LINK              = yes;
+      SND_SOC_SOF_ICELAKE_SUPPORT       = yes;
+      SND_SOC_SOF_INTEL_TOPLEVEL        = yes;
+      SND_SOC_SOF_JASPERLAKE_SUPPORT    = yes;
+      SND_SOC_SOF_MERRIFIELD_SUPPORT    = yes;
+      SND_SOC_SOF_TIGERLAKE_SUPPORT     = yes;
     };
 
     usb-serial = {