Re: How to know which camera is /dev/videoX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Morimoto-san

On Fri, 25 Dec 2009, Kuninori Morimoto wrote:

> 
> Dear Guennadi
> 
> Now my board (EcoVec) can use 2 soc-camera (mt9t112 / tw9910),
> and mt9t112 can attach/detach.
> 
> If mt9t112 is attached,
> /dev/video0 = mt9t112
> /dev/video1 = tw9910
> 
> But if mt9t112 is detached, it will
> /dev/video0 = tw9910
> 
> Now I would like to know which camera is /dev/video0.
> my /dev/video0 is
> 
> > ls -l /dev/video0
> > crw--w----  1 root 1000 81, 0 Jun  9  2009 /dev/video0
> 
> I cheked 81:0 's name
> 
> > cat /sys/dev/char/81\:0/name
> > sh_mobile_ceu.1
> 
> Above name is host of soc-camera for me.
> Are there any way to know camera name (mt9t112/tw9910) ?

You should be able to get their i2c addresses per

~ ls -l /sys/bus/soc-camera/devices/0-0/
lrwxrwxrwx    1 root     root            0 Jan  1 00:01 bus -> ../../../../../bus/soc-camera
lrwxrwxrwx    1 root     root            0 Jan  1 00:01 control -> ../../../../../class/i2c-adapter/i2c-0/0-0048
...

does this help?

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux