Re: Device Identification
- Date: Mon, 11 Feb 2008 19:18:33 -0800
- From: Brandon Philips <brandon@xxxxxxxx>
- Subject: Re: Device Identification
On 10:37 Mon 11 Feb 2008, Nathanael Galpin wrote:
> Is there any way through the V4L2 API to get a device's product and
> vendor ID?
No, but you can get it by recursing the sysfs tree.
e.x.
/sys/devices/pci0000:00/0000:00:1e.0/0000:01:00.0/video4linux/video0
/sys/devices/pci0000:00/0000:00:1e.0/0000:01:00.0/video4linux/video0/uevent
/sys/devices/pci0000:00/0000:00:1e.0/0000:01:00.0/video4linux/video0/dev
/sys/devices/pci0000:00/0000:00:1e.0/0000:01:00.0/video4linux/video0/subsystem
/sys/devices/pci0000:00/0000:00:1e.0/0000:01:00.0/video4linux/video0/device
/sys/devices/pci0000:00/0000:00:1e.0/0000:01:00.0/video4linux/video0/name
/sys/devices/pci0000:00/0000:00:1e.0/0000:01:00.0/video4linux/video0/power
/sys/devices/pci0000:00/0000:00:1e.0/0000:01:00.0/video4linux/video0/power/wakeup
Hope that helps.
Brandon
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list