ref: 57f250ad421537aa6bfdd9a82500fa9fd9cb366e
parent: 5e60d86c33d357a51ac71384e7b2d26d21221cac
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Sun Nov 13 17:09:53 EST 2022
nusb/cam: remove wrong func prototypes, print probe control
--- a/sys/src/cmd/nusb/cam/cam.c
+++ b/sys/src/cmd/nusb/cam/cam.c
@@ -12,22 +12,6 @@
char user[] = "cam";
-void printVCHeader(void *vp);
-void printVCInputTerminal(void *vp);
-void printVCOutputTerminal(void *vp);
-void printVCCameraTerminal(void *vp);
-void printVCSelectorUnit(void *vp);
-void printVCProcessingUnit(void *vp);
-void printVCEncodingUnit(void *vp);
-void printVCExtensionUnit(void *vp);
-void printVSInputHeader(void *vp);
-void printVSOutputHeader(void *vp);
-void printVSStillFrame(void *vp);
-void printVSUncompressedFormat(void *vp);
-void printVSUncompressedFrame(void *vp);
-void printVSColorFormat(void *vp);
-void printProbeControl(void *vp);
-
Cam *cams;
int nunit;
VCUnit **unit;
@@ -188,6 +172,7 @@
if(Class(d->iface->csp) != CC_VIDEO) continue;
printDescriptor(&fmt, d->iface, vdp);
}
+ printProbeControl(&fmt, &c->pc);
return fmtstrflush(&fmt);
}
--- a/sys/src/cmd/nusb/cam/fns.h
+++ b/sys/src/cmd/nusb/cam/fns.h
@@ -1,4 +1,5 @@
char *ctlread(Cam *);
+void printProbeControl(Fmt *fmt, void *vp);
void printDescriptor(Fmt *, Iface *, void *);
int videoopen(Cam *, int);
void videoclose(Cam *);