summaryrefslogtreecommitdiff
Diffstat
-rwxr-xr-xaml_screen.cpp8
-rwxr-xr-xv4l2_vdin.cpp3
-rwxr-xr-xv4l2_vdin.h2
3 files changed, 11 insertions, 2 deletions
diff --git a/aml_screen.cpp b/aml_screen.cpp
index 8e0921b..48acbd6 100755
--- a/aml_screen.cpp
+++ b/aml_screen.cpp
@@ -102,7 +102,6 @@ static int aml_screen_device_close(struct hw_device_t *dev)
int screen_source_start(struct aml_screen_device* dev)
{
android::vdin_screen_source* source = (android::vdin_screen_source*)dev->priv;
- LOGV("screen_source_start");
return source->start();
}
int screen_source_stop(struct aml_screen_device* dev)
@@ -237,6 +236,13 @@ static int aml_screen_device_open(const struct hw_module_t* module, const char*
free (dev);
return -ENOMEM;
}
+
+ if(source->init()!=0){
+ LOGE("open vdin_screen_source failed!");
+ free (dev);
+ return -1;
+ }
+
dev->priv = (void*)source;
/* initialize the procs */