Hello,
I am looking for a way to match a video device number (/dev/video0, /dev/video1, etc) and camera devices returned by getCameraDevices() in Argus API.
What I can get from Argus API:
- Module string
- Model name
- Module placement
- Module UUID
However, I couldn’t find a way to match any of this numbers with a v4l device. Could you please help me with that.
There’s no any API to know the video node.
Maybe you can modify the sensor driver to register a fixed video node for your case.
I would have already done that if I had driver sources but unfortunately I don’t
We have public the kernel source for customized.
Thanks
I mean, cameras have been provided by our supplier and they don’t want to provide us with source code. Yep, I have kernel sources but I don’t see any ways how it might help me.
The video node generate by below function. You can assign number instead of -1 for auto select from available.
../kernel/nvidia-oot/drivers/media/platform/tegra/camera/vi/graph.c:
ret = video_register_device(chan->video, VFL_TYPE_VIDEO, -1);
But how can I match this with argus camera id?
The argus camera ID should be follow the module order in tegra-camera-platform{}