mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 09:37:59 +03:00
nixos/ipu6: add support for ipu6epmtl
This commit is contained in:
parent
5adf1a2f48
commit
85169ed61c
@ -13,11 +13,12 @@ in
|
|||||||
enable = mkEnableOption (lib.mdDoc "support for Intel IPU6/MIPI cameras");
|
enable = mkEnableOption (lib.mdDoc "support for Intel IPU6/MIPI cameras");
|
||||||
|
|
||||||
platform = mkOption {
|
platform = mkOption {
|
||||||
type = types.enum [ "ipu6" "ipu6ep" ];
|
type = types.enum [ "ipu6" "ipu6ep" "ipu6epmtl" ];
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Choose the version for your hardware platform.
|
Choose the version for your hardware platform.
|
||||||
|
|
||||||
Use `ipu6` for Tiger Lake and `ipu6ep` for Alder Lake respectively.
|
Use `ipu6` for Tiger Lake, `ipu6ep` for Alder Lake or Raptor Lake,
|
||||||
|
and `ipu6epmtl` for Meteor Lake.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -42,14 +43,13 @@ in
|
|||||||
|
|
||||||
extraPackages = with pkgs.gst_all_1; [ ]
|
extraPackages = with pkgs.gst_all_1; [ ]
|
||||||
++ optional (cfg.platform == "ipu6") icamerasrc-ipu6
|
++ optional (cfg.platform == "ipu6") icamerasrc-ipu6
|
||||||
++ optional (cfg.platform == "ipu6ep") icamerasrc-ipu6ep;
|
++ optional (cfg.platform == "ipu6ep") icamerasrc-ipu6ep
|
||||||
|
++ optional (cfg.platform == "ipu6epmtl") icamerasrc-ipu6epmtl;
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
pipeline = "icamerasrc";
|
pipeline = "icamerasrc";
|
||||||
format = mkIf (cfg.platform == "ipu6ep") (mkDefault "NV12");
|
format = mkIf (cfg.platform != "ipu6") (mkDefault "NV12");
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user