about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2012-11-26 02:18:18 +0100
committeraszlig <aszlig@redmoonstudios.org>2012-11-26 02:18:18 +0100
commit12499d794c10750a912237cd668a21dc82639a12 (patch)
tree9fd5deef489fc4c3510dc33c16be80afa4d97e94
parentc0a24344b142a6abcdf02d4825e94ddd4c71c882 (diff)
dnyarri: Add pin configuration patch for hda-intel.
This should get pinning right for my shiny new 10.2-"allaround" surround system.
This is no patch that should go into upstream kernel, because I'm just retasking
all the jacks of the sound card to be output channels.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r--dnyarri.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/dnyarri.nix b/dnyarri.nix
index 5a22e4f3..aa2f3b44 100644
--- a/dnyarri.nix
+++ b/dnyarri.nix
@@ -14,6 +14,33 @@
   };
 
   boot = let
+    patch51Name = "patch51.fw";
+    extraKernelParams = [ "snd-hda-intel.patch=${patch51Name}" ];
+
+    patch51 = pkgs.writeText patch51Name ''
+      [codec]
+      0x10ec0889 0x80860033 2
+
+      [pincfg]
+      0x11 0x01442130
+      0x12 0x411111f0
+      0x14 0x01014410
+      0x15 0x0321403f
+      0x16 0x40f000f0
+      0x17 0x40f000f0
+      0x18 0x03a19020
+      0x19 0x40f000f0
+      0x1a 0x01014412
+      0x1b 0x01014411
+      0x1c 0x411111f0
+      0x1d 0x411111f0
+      0x1e 0x01451140
+      0x1f 0x01c51170
+
+      [model]
+      auto
+    '';
+
     builtinFW = [
       "${pkgs.radeonR600}/radeon/R600_rlc.bin"
       "${pkgs.radeonR700}/radeon/R700_rlc.bin"
@@ -34,6 +61,8 @@
           buildCommand = ''
             mkdir -p "$out/radeon"
             ${pkgs.lib.concatMapStrings (x: "cp -Lv -t \"$out/radeon\" \"${x}\";") builtinFW}
+
+            cp "${patch51}" "$out/${patch51Name}"
           '';
         };
       };
@@ -41,6 +70,7 @@
     };
   in rec {
     kernelPackages = pkgs.linuxPackagesFor linuxAszlig kernelPackages;
+    inherit extraKernelParams;
 
     cleanTmpDir = true;