mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 18:08:38 +08:00
Merge pull request #1576 from Gigahawk/tc358743-media-controller
raspberry-pi/4: support enabling/disabling media-controller api on tc358743
This commit is contained in:
@@ -13,6 +13,11 @@ in
|
|||||||
running ustreamer (which starts webservice providing a camera stream):
|
running ustreamer (which starts webservice providing a camera stream):
|
||||||
''${pkgs.ustreamer}/bin/ustreamer --persistent --dv-timings
|
''${pkgs.ustreamer}/bin/ustreamer --persistent --dv-timings
|
||||||
'';
|
'';
|
||||||
|
media-controller = lib.mkEnableOption ''
|
||||||
|
Enable support for the Media Controller API.
|
||||||
|
|
||||||
|
See https://forums.raspberrypi.com/viewtopic.php?t=322076 for details
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -61,6 +66,15 @@ in
|
|||||||
__overlay__ {
|
__overlay__ {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
${
|
||||||
|
if cfg.media-controller then
|
||||||
|
""
|
||||||
|
else
|
||||||
|
''
|
||||||
|
compatible = "brcm,bcm2835-unicam-legacy";
|
||||||
|
''
|
||||||
|
}
|
||||||
|
|
||||||
port {
|
port {
|
||||||
|
|
||||||
endpoint {
|
endpoint {
|
||||||
|
|||||||
Reference in New Issue
Block a user