mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-11-30 13:03:30 +01:00
Merge pull request #2005 from toastal/HN7306EA-7.2
asus/proart/px13/hn7306eac: drop patches @ Linux 7.2
This commit is contained in:
2 files changed
+13
-9
No files matched your search
@@ -1,4 +1,5 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
@@ -7,9 +8,17 @@
|
||||
{
|
||||
imports = [
|
||||
../default.nix
|
||||
# no effect at Linux 7.2 as patches are merged
|
||||
./tas2783-kernel-patches.nix
|
||||
];
|
||||
|
||||
assertions = [
|
||||
{
|
||||
assertion = lib.versionAtLeast config.boot.kernelPackages.kernel.version "7.0";
|
||||
message = "ASUS ProArt PX13 (HN7306EAC) hardware requires Linux ≥ 7.0 (current ${config.boot.kernelPackages.kernel.version})";
|
||||
}
|
||||
];
|
||||
|
||||
hardware = {
|
||||
alsa.enablePersistence = lib.mkDefault true;
|
||||
firmware = lib.optional (lib.versionOlder pkgs.linux-firmware.version "20260519") (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
@@ -18,14 +18,9 @@ let
|
||||
};
|
||||
in
|
||||
{
|
||||
assertions = [
|
||||
{
|
||||
assertion = lib.versionAtLeast config.boot.kernelPackages.kernel.version "7.0";
|
||||
message = "tas2783 patches require Linux ≥ 7.0 (found ${config.boot.kernelPackages.kernel.version})";
|
||||
}
|
||||
];
|
||||
|
||||
boot.kernelPatches = [
|
||||
boot.kernelPatches =
|
||||
lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "7.2")
|
||||
[
|
||||
(mkPatch "0001-ALSA-tas2783-sdw-add-Playback-to-volume-control" "sha512-IdIy81PXtmQAQ+MVChYDYkoa5RDhQwP2L5efN8cz+tST3nM0Oc0x4SJ4sBnVL7QDJc/WBB0OEnFfTkEt9Id+cQ==")
|
||||
(mkPatch "0002-Names-to-match-snd_soc_dai_driver-playback-capturest" "sha512-SrCgzceh3rhyYz5tNWHY2jNWyG/qgmU7ZVLtV71iir8HwOrSES7JsunV2E7mb8R66dShY+loV8ovNeMkyuDB7w==")
|
||||
(mkPatch "0003-removed-unused-fields" "sha512-mWKqFg8AG00TE3oPy5usPPxWf6aIvhxMLDGI+/0+vvjBIFwWv6qh9jSUeid6CAKgAcluPSA8Sag4ESguCeinyw==")
|
||||
|
||||
Reference in new issue
Block a user