On Thu, 12 Dec 2024 at 13:23, Dave Stevenson <dave.stevenson@xxxxxxxxxxxxxxx> wrote: > > Hi Ricardo > > On Thu, 12 Dec 2024 at 12:14, Ricardo Ribalda <ribalda@xxxxxxxxxx> wrote: > > > > Hi > > > > For a system with multiple cameras (think of a phone or a tablet), > > userspace needs to know if the camera is facing the user or the world. > > > > AFAIK, we have no way to tell userspace about this it has to rely to > > tricks/hardcoding. Eg for UVC cameras they match the vid/pid or the > > camera name. > > > > Assuming we define a new field in the acpi table/device tree to > > describe this.... Would it be an option to add a new V4L2 standard > > control for this? > > Doesn't V4L2_CID_CAMERA_ORIENTATION already meet the control requirement? > "This read-only control describes the camera orientation by reporting > its mounting position on the device where the camera is installed." > [1] So it wasn't a bad idea after all :) Sorry for the noise, that is exactly what I need. > > Dave > > [1] https://www.kernel.org/doc/html/latest/userspace-api/media/v4l/ext-ctrls-camera.html > > > Any thoughts? > > > > Thanks! > > > > -- > > Ricardo Ribalda > > Software Engineer > > ribalda@xxxxxxxxxx > > -- Ricardo Ribalda