aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jiang <sam.andrew.jiang@gmail.com>2015-01-04 15:33:51 +0100
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2015-01-04 15:33:51 +0100
commite78b4f4d74df06da9a0ac6952b38bee97a6e72a3 (patch)
tree5e37c26c9a3e48220f266aa19124b0c870c8713f
parentb02825af785514e5efa0e8bc98b0f11635210f74 (diff)
downloaddevice_samsung_espressowifi-e78b4f4d74df06da9a0ac6952b38bee97a6e72a3.zip
device_samsung_espressowifi-e78b4f4d74df06da9a0ac6952b38bee97a6e72a3.tar.gz
device_samsung_espressowifi-e78b4f4d74df06da9a0ac6952b38bee97a6e72a3.tar.bz2
p31xx: camera: get module by class
Change-Id: I85410d10f9672449c4d25ce3184fb1a5504388a2
-rw-r--r--BoardConfigCommon.mk3
-rw-r--r--camerawrapper/CameraWrapper.cpp2
2 files changed, 1 insertions, 4 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index fe4a99a..a577fc2 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -52,9 +52,6 @@ USE_OPENGL_RENDERER := true
TARGET_BOOTANIMATION_PRELOAD := true
TARGET_BOOTANIMATION_USE_RGB565 := true
-# Camera
-COMMON_GLOBAL_CFLAGS += -DDISABLE_HW_ID_MATCH_CHECK
-
# Vold
BOARD_VOLD_MAX_PARTITIONS := 12
BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true
diff --git a/camerawrapper/CameraWrapper.cpp b/camerawrapper/CameraWrapper.cpp
index e15bae9..7a13301 100644
--- a/camerawrapper/CameraWrapper.cpp
+++ b/camerawrapper/CameraWrapper.cpp
@@ -89,7 +89,7 @@ static int check_vendor_module()
if(gVendorModule)
return 0;
- rv = hw_get_module("vendor-camera", (const hw_module_t **)&gVendorModule);
+ rv = hw_get_module_by_class("camera", "vendor", (const hw_module_t **)&gVendorModule);
if (rv)
ALOGE("failed to open vendor camera module");
return rv;