From c4af46bb6a91f90a99d9fc0b89a0fda85122943b Mon Sep 17 00:00:00 2001 From: Jasper Chan Date: Wed, 13 Aug 2025 21:36:43 -0700 Subject: [PATCH] raspberry-pi/4: support enabling/disabling media-controller api on tc358743 --- raspberry-pi/4/tc358743.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/raspberry-pi/4/tc358743.nix b/raspberry-pi/4/tc358743.nix index 840953aa..a8a7c356 100644 --- a/raspberry-pi/4/tc358743.nix +++ b/raspberry-pi/4/tc358743.nix @@ -13,6 +13,11 @@ in running ustreamer (which starts webservice providing a camera stream): ''${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__ { status = "okay"; + ${ + if cfg.media-controller then + "" + else + '' + compatible = "brcm,bcm2835-unicam-legacy"; + '' + } + port { endpoint {