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

2009-12-27 Thread Kuninori Morimoto

Dear Guennadi, Andy

Thank you for your help !!

It is possible to identify it by this method.

check videoX
/sys/bus/soc-camera/devices/0-0/video4linux:video0
/sys/bus/soc-camera/devices/1-0/video4linux:video1

get name
/sys/bus/soc-camera/devices/0-0/control/name  - mt9t112
/sys/bus/soc-camera/devices/1-0/control/name  - tw9910

 $ v4l2-ctl --list-devices
 $ v4l2-ctl -d /dev/video0 -D
 $ v4l2-ctl -d /dev/video0 --log-status
 $ v4l2-ctl -d /dev/video1 -D
 $ v4l2-ctl -d /dev/video1 --log-status

wow... I didn't know this way.
Thank you for your nice advice !!
It will be good help for me

Thanks again !!

Best regards
--
Kuninori Morimoto
 
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

2009-12-25 Thread Guennadi Liakhovetski
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/
lrwxrwxrwx1 root root0 Jan  1 00:01 bus - 
../../../../../bus/soc-camera
lrwxrwxrwx1 root root0 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

2009-12-25 Thread Andy Walls
On Fri, 2009-12-25 at 10:54 +0900, 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) ?

Maybe some of these will help:

$ v4l2-ctl --list-devices
$ v4l2-ctl -d /dev/video0 -D
$ v4l2-ctl -d /dev/video0 --log-status
$ v4l2-ctl -d /dev/video1 -D
$ v4l2-ctl -d /dev/video1 --log-status

Regards,
Andy

 Best regards
 --
 Kuninori Morimoto
  


--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


How to know which camera is /dev/videoX

2009-12-24 Thread Kuninori Morimoto

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) ?

Best regards
--
Kuninori Morimoto
 
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html