fixing daemon for cam

This commit is contained in:
Brad Stein 2025-07-04 13:26:32 -05:00
parent 6934bf8645
commit d167ed8511

View File

@ -132,19 +132,18 @@ echo 333333 >"$F/streaming/uncompressed/u/f1/dwDefaultFrameInterval" # 30fp
echo 333333 >"$F/streaming/uncompressed/u/f1/dwFrameInterval"
# ── 3. REQUIRED HEADER LINKS ──────────────────────────────────────
# (1) create the header directories ──┐
mkdir -p "$F/streaming/header/h" # │ h is a *directory*, not a symlink
mkdir -p "$F/control/header/h" # ┘
# header/h MUST be a directory NOT a symlink
mkdir -p "$F/streaming/header/h"
ln -sf ../../uncompressed/u "$F/streaming/header/h/1" # format #1
echo 1 >"$F/streaming/header/h/bNumFormats" # how many /h/N links
echo 0 >"$F/streaming/header/h/bmInfo" # no special caps
mkdir -p "$F/control/header"
ln -sf ../../streaming/header/h "$F/control/header/h"
# (2) link the format into the streaming header (index “1”)
ln -sf ../../uncompressed/u "$F/streaming/header/h/1"
# (3) link the streaming header into the control interface
ln -sf ../../streaming/header/h "$F/control/header/h/1"
# Friendly string
# Friendly string for the camera entity
mkdir -p "$F/control/header/strings/0x409"
echo "Lesavka UVC" >"$F/control/header/strings/0x409/label"
echo "Lesavka UVC" >"$F/control/header/strings/0x409/label"
# ----------------------- configuration -----------------------------
mkdir -p "$G/configs/c.1/strings/0x409"