OSDN Git Service

Search more video device nodes android-x86-7.1-r3 android-x86-8.1-r2 android-x86-8.1-r3 android-x86-8.1-r4 android-x86-9.0-r1 android-x86-9.0-r2
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 22 Mar 2019 15:53:23 +0000 (23:53 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 22 Mar 2019 15:53:23 +0000 (23:53 +0800)
commit4e2b7311ef2aa4fdca70fbdbe32e2da4cf2f650e
treef6dae7f297b9a58b8973dd935c73f673f193b87c
parent3aeaabbfd78b907206079aed8b43ddfd5afa4cfd
Search more video device nodes

Since the newer kernel may create more than one device nodes for one
camera, the hardcoded device node path is not appropriate.

The patch searches all /dev/video[0-9] and configure up to 3 cameras
if possible. Besides, the facing and orientation could be configured
via the property hal.camera.[0-9].
CameraFactory.cpp