Skip to content

Commit c38b907

Browse files
authored
Merge pull request #1576 from Gigahawk/tc358743-media-controller
raspberry-pi/4: support enabling/disabling media-controller api on tc358743
2 parents 65b725a + c4af46b commit c38b907

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

raspberry-pi/4/tc358743.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ in
1313
running ustreamer (which starts webservice providing a camera stream):
1414
''${pkgs.ustreamer}/bin/ustreamer --persistent --dv-timings
1515
'';
16+
media-controller = lib.mkEnableOption ''
17+
Enable support for the Media Controller API.
18+
19+
See https://forums.raspberrypi.com/viewtopic.php?t=322076 for details
20+
'';
1621
};
1722
};
1823

@@ -61,6 +66,15 @@ in
6166
__overlay__ {
6267
status = "okay";
6368
69+
${
70+
if cfg.media-controller then
71+
""
72+
else
73+
''
74+
compatible = "brcm,bcm2835-unicam-legacy";
75+
''
76+
}
77+
6478
port {
6579
6680
endpoint {

0 commit comments

Comments
 (0)