- project build/
- diff --git a/core/user_tags.mk b/core/user_tags.mk
- index 4beb54a..3ea355b 100644
- --- a/core/user_tags.mk
- +++ b/core/user_tags.mk
- @@ -495,4 +495,11 @@ GRANDFATHERED_USER_MODULES += \
- wdsclient \
- wpa_supplicant \
- yuv420sp2rgb \
- - zipalign
- + zipalign \
- + libOmxCore \
- + libOmxVenc \
- + libOmxVdec \
- + libmm-omxcore \
- + lights.msm7x30 \
- + gralloc.msm7x30 \
- + gps.spade
- project device/htc/ace/
- diff --git a/BoardConfig.mk b/BoardConfig.mk
- index e9522d0..8772618 100644
- --- a/BoardConfig.mk
- +++ b/BoardConfig.mk
- @@ -32,6 +32,8 @@ USE_CAMERA_STUB := true
- -include vendor/htc/ace/BoardConfigVendor.mk
- TARGET_BOOTLOADER_BOARD_NAME := spade
- +TARGET_KERNEL_SOURCE := kernel/htc/msm7x30
- +TARGET_KERNEL_CONFIG := cyanogen_msm7230_defconfig
- BOARD_KERNEL_CMDLINE := no_console_suspend=1
- BOARD_KERNEL_RECOVERY_CMDLINE := $(BOARD_KERNEL_CMDLINE) msmsdcc_power_gpio=88
- @@ -61,7 +63,7 @@ BOARD_BOOTIMAGE_PARTITION_SIZE := 4194304
- BOARD_FLASH_BLOCK_SIZE := 262144
- TARGET_RELEASETOOLS_EXTENSIONS := device/htc/common
- -TARGET_PREBUILT_KERNEL := device/htc/msm7x30-common/msm7230/kernel
- +# TARGET_PREBUILT_KERNEL := device/htc/msm7x30-common/msm7230/kernel
- BOARD_HAS_NO_SELECT_BUTTON := true
- BOARD_SDCARD_DEVICE_PRIMARY := /dev/block/mmcblk1p1
- diff --git a/device.mk b/device.mk
- index 0c24bad..df45878 100644
- --- a/device.mk
- +++ b/device.mk
- @@ -191,6 +191,6 @@ $(call inherit-product, device/htc/msm7x30-common/msm7x30.mk)
- # htc audio settings
- $(call inherit-product, device/htc/ace/media_htcaudio.mk)
- -$(call inherit-product, frameworks/base/build/phone-hdpi-512-dalvik-heap.mk)
- +$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
- $(call inherit-product-if-exists, vendor/htc/ace/device-vendor.mk)
- diff --git a/liblights/lights.c b/liblights/lights.c
- index 960a2bb..55eec8d 100644
- --- a/liblights/lights.c
- +++ b/liblights/lights.c
- @@ -65,7 +65,7 @@ static int write_int (const char* path, int value) {
- fd = open(path, O_RDWR);
- if (fd < 0) {
- if (already_warned == 0) {
- - LOGE("write_int failed to open %s\n", path);
- + ALOGE("write_int failed to open %s\n", path);
- already_warned = 1;
- }
- return -errno;
- @@ -128,7 +128,7 @@ static void set_speaker_light_locked (struct light_device_t *dev, struct light_s
- write_int (BLUE_LED_FILE, 0);
- break;
- default:
- - LOGE("set_led_state colorRGB=%08X, unknown color\n",
- + ALOGE("set_led_state colorRGB=%08X, unknown color\n",
- colorRGB);
- break;
- }
- @@ -159,7 +159,7 @@ static void set_speaker_light_locked (struct light_device_t *dev, struct light_s
- }
- break;
- default:
- - LOGE("set_led_state colorRGB=%08X, unknown mode %d\n",
- + ALOGE("set_led_state colorRGB=%08X, unknown mode %d\n",
- colorRGB, state->flashMode);
- }
- @@ -182,7 +182,7 @@ static void set_speaker_light_locked_dual (struct light_device_t *dev, struct li
- write_int (AMBER_BLINK_FILE, 1);
- write_int (BLUE_LED_FILE, 0);
- } else {
- - LOGE("set_led_state (dual) unexpected color: bcolorRGB=%08x\n", bcolorRGB);
- + ALOGE("set_led_state (dual) unexpected color: bcolorRGB=%08x\n", bcolorRGB);
- }
- }
- @@ -220,7 +220,7 @@ static int set_light_backlight(struct light_device_t* dev,
- struct light_state_t const* state) {
- int err = 0;
- int brightness = rgb_to_brightness(state);
- - LOGV("%s brightness=%d color=0x%08x",
- + ALOGV("%s brightness=%d color=0x%08x",
- __func__,brightness, state->color);
- pthread_mutex_lock(&g_lock);
- g_backlight = brightness;
- diff --git a/libsensors/AkmSensor.cpp b/libsensors/AkmSensor.cpp
- index 0757403..3712aa3 100644
- --- a/libsensors/AkmSensor.cpp
- +++ b/libsensors/AkmSensor.cpp
- @@ -148,7 +148,7 @@ int AkmSensor::enable(int32_t handle, int en)
- short flags = newState;
- err = ioctl(dev_fd, cmd, &flags);
- err = err<0 ? -errno : 0;
- - LOGE_IF(err, "ECS_IOCTL_APP_SET_XXX failed (%s)", strerror(-err));
- + ALOGE_IF(err, "ECS_IOCTL_APP_SET_XXX failed (%s)", strerror(-err));
- if (!err) {
- mEnabled &= ~(1<<what);
- mEnabled |= (uint32_t(flags)<<what);
- @@ -236,7 +236,7 @@ int AkmSensor::readEvents(sensors_event_t* data, int count)
- mInputReader.next();
- }
- } else {
- - LOGE("AkmSensor: unknown event (type=%d, code=%d)",
- + ALOGE("AkmSensor: unknown event (type=%d, code=%d)",
- type, event->code);
- mInputReader.next();
- }
- diff --git a/libsensors/LightSensor.cpp b/libsensors/LightSensor.cpp
- index e3aac2c..0be9a90 100644
- --- a/libsensors/LightSensor.cpp
- +++ b/libsensors/LightSensor.cpp
- @@ -77,7 +77,7 @@ int LightSensor::enable(int32_t, int en) {
- }
- err = ioctl(dev_fd, LIGHTSENSOR_IOCTL_ENABLE, &flags);
- err = err<0 ? -errno : 0;
- - LOGE_IF(err, "LIGHTSENSOR_IOCTL_ENABLE failed (%s)", strerror(-err));
- + ALOGE_IF(err, "LIGHTSENSOR_IOCTL_ENABLE failed (%s)", strerror(-err));
- if (!err) {
- mEnabled = en ? 1 : 0;
- if (en) {
- @@ -131,7 +131,7 @@ int LightSensor::readEvents(sensors_event_t* data, int count)
- numEventReceived++;
- }
- } else {
- - LOGE("LightSensor: unknown event (type=%d, code=%d)",
- + ALOGE("LightSensor: unknown event (type=%d, code=%d)",
- type, event->code);
- }
- mInputReader.next();
- diff --git a/libsensors/ProximitySensor.cpp b/libsensors/ProximitySensor.cpp
- index abd8e6b..a97d73a 100644
- --- a/libsensors/ProximitySensor.cpp
- +++ b/libsensors/ProximitySensor.cpp
- @@ -78,7 +78,7 @@ int ProximitySensor::enable(int32_t, int en) {
- int flags = newState;
- err = ioctl(dev_fd, CAPELLA_CM3602_IOCTL_ENABLE, &flags);
- err = err<0 ? -errno : 0;
- - LOGE_IF(err, "CAPELLA_CM3602_IOCTL_ENABLE failed (%s)", strerror(-err));
- + ALOGE_IF(err, "CAPELLA_CM3602_IOCTL_ENABLE failed (%s)", strerror(-err));
- if (!err) {
- mEnabled = newState;
- if (en) {
- @@ -129,7 +129,7 @@ int ProximitySensor::readEvents(sensors_event_t* data, int count)
- numEventReceived++;
- }
- } else {
- - LOGE("ProximitySensor: unknown event (type=%d, code=%d)",
- + ALOGE("ProximitySensor: unknown event (type=%d, code=%d)",
- type, event->code);
- }
- mInputReader.next();
- diff --git a/libsensors/SensorBase.cpp b/libsensors/SensorBase.cpp
- index e0554e4..0bd2ba7 100644
- --- a/libsensors/SensorBase.cpp
- +++ b/libsensors/SensorBase.cpp
- @@ -51,7 +51,7 @@ SensorBase::~SensorBase() {
- int SensorBase::open_device() {
- if (dev_fd<0 && dev_name) {
- dev_fd = open(dev_name, O_RDONLY);
- - LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno));
- + ALOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno));
- }
- return 0;
- }
- @@ -117,6 +117,6 @@ int SensorBase::openInput(const char* inputName) {
- }
- }
- closedir(dir);
- - LOGE_IF(fd<0, "couldn't find '%s' input device", inputName);
- + ALOGE_IF(fd<0, "couldn't find '%s' input device", inputName);
- return fd;
- }
- diff --git a/libsensors/nusensors.cpp b/libsensors/nusensors.cpp
- index 248acc5..e78a9d3 100644
- --- a/libsensors/nusensors.cpp
- +++ b/libsensors/nusensors.cpp
- @@ -95,7 +95,7 @@ sensors_poll_context_t::sensors_poll_context_t()
- int wakeFds[2];
- int result = pipe(wakeFds);
- - LOGE_IF(result<0, "error creating wake pipe (%s)", strerror(errno));
- + ALOGE_IF(result<0, "error creating wake pipe (%s)", strerror(errno));
- fcntl(wakeFds[0], F_SETFL, O_NONBLOCK);
- fcntl(wakeFds[1], F_SETFL, O_NONBLOCK);
- mWritePipeFd = wakeFds[1];
- @@ -120,7 +120,7 @@ int sensors_poll_context_t::activate(int handle, int enabled) {
- if (enabled && !err) {
- const char wakeMessage(WAKE_MESSAGE);
- int result = write(mWritePipeFd, &wakeMessage, 1);
- - LOGE_IF(result<0, "error sending wake message (%s)", strerror(errno));
- + ALOGE_IF(result<0, "error sending wake message (%s)", strerror(errno));
- }
- return err;
- }
- @@ -159,14 +159,14 @@ int sensors_poll_context_t::pollEvents(sensors_event_t* data, int count)
- // anything to return
- n = poll(mPollFds, numFds, nbEvents ? 0 : -1);
- if (n<0) {
- - LOGE("poll() failed (%s)", strerror(errno));
- + ALOGE("poll() failed (%s)", strerror(errno));
- return -errno;
- }
- if (mPollFds[wake].revents & POLLIN) {
- char msg;
- int result = read(mPollFds[wake].fd, &msg, 1);
- - LOGE_IF(result<0, "error reading from wake pipe (%s)", strerror(errno));
- - LOGE_IF(msg != WAKE_MESSAGE, "unknown message on wake queue (0x%02x)", int(msg));
- + ALOGE_IF(result<0, "error reading from wake pipe (%s)", strerror(errno));
- + ALOGE_IF(msg != WAKE_MESSAGE, "unknown message on wake queue (0x%02x)", int(msg));
- mPollFds[wake].revents = 0;
- }
- }
- diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
- index 43a9d65..02b3b95 100644
- --- a/overlay/frameworks/base/core/res/res/values/config.xml
- +++ b/overlay/frameworks/base/core/res/res/values/config.xml
- @@ -114,10 +114,10 @@
- <integer name="config_defaultNotificationLedOff">9000</integer>
- <!-- Component name of the service providing network location support. -->
- - <string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string>
- + <!-- <string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string> -->
- <!-- Component name of the service providing geocoder API support. -->
- - <string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>
- + <!-- <string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string> -->
- <!-- An Array of "[Connection name],[ConnectivityManager.TYPE_xxxx],
- [associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet] -->
- diff --git a/overlay/packages/apps/Settings/res/values/config.xml b/overlay/packages/apps/Settings/res/values/config.xml
- index 241ad30..33d7c06 100644
- --- a/overlay/packages/apps/Settings/res/values/config.xml
- +++ b/overlay/packages/apps/Settings/res/values/config.xml
- @@ -16,7 +16,7 @@
- <resources>
- <!-- LED Flashlight -->
- - <bool name="has_led_flash">true</bool>
- + <!-- <bool name="has_led_flash">true</bool> -->
- <!-- Whether or not the dock settings are to be displayed for this device when docked -->
- <bool name="has_dock_settings">true</bool>
- project device/htc/msm7x30-common/
- diff --git a/include/linux/android_pmem.h b/include/linux/android_pmem.h
- index c029196..35b3542 100644
- --- a/include/linux/android_pmem.h
- +++ b/include/linux/android_pmem.h
- @@ -51,6 +51,7 @@
- * start of the mapped gpu regs (the vaddr returned by mmap) as the argument.
- */
- #define HW3D_REVOKE_GPU _IOW(PMEM_IOCTL_MAGIC, 8, unsigned int)
- +#define PMEM_CACHE_FLUSH _IOW(PMEM_IOCTL_MAGIC, 8, unsigned int)
- #define HW3D_GRANT_GPU _IOW(PMEM_IOCTL_MAGIC, 9, unsigned int)
- #define HW3D_WAIT_FOR_INTERRUPT _IOW(PMEM_IOCTL_MAGIC, 10, unsigned int)
- diff --git a/media_profiles.xml b/media_profiles.xml
- index 368c476..6972d41 100644
- --- a/media_profiles.xml
- +++ b/media_profiles.xml
- @@ -75,6 +75,7 @@
- <!ATTLIST VideoEditorCap maxInputFrameHeight CDATA #REQUIRED>
- <!ATTLIST VideoEditorCap maxOutputFrameWidth CDATA #REQUIRED>
- <!ATTLIST VideoEditorCap maxOutputFrameHeight CDATA #REQUIRED>
- +<!ATTLIST VideoEditorCap maxPrefetchYUVFrames CDATA #REQUIRED>
- <!ELEMENT ExportVideoProfile EMPTY>
- <!ATTLIST ExportVideoProfile name (h264|h263|m4v) #REQUIRED>
- <!ATTLIST ExportVideoProfile profile CDATA #REQUIRED>
- @@ -247,7 +248,7 @@
- <AudioDecoderCap name="wma" enabled="false"/>
- <VideoEditorCap maxInputFrameWidth="1280"
- maxInputFrameHeight="720" maxOutputFrameWidth="1280"
- - maxOutputFrameHeight="720"/>
- + maxOutputFrameHeight="720" maxPrefetchYUVFrames="6"/>
- <!--
- The VideoEditor Export codec profile and level values
- correspond to the values in OMX_Video.h.
- project frameworks/base/
- diff --git a/services/sensorservice/SensorDevice.cpp b/services/sensorservice/SensorDevice.cpp
- index 2244a86..6c9b63e 100644
- --- a/services/sensorservice/SensorDevice.cpp
- +++ b/services/sensorservice/SensorDevice.cpp
- @@ -102,6 +102,7 @@ SensorDevice::SensorDevice()
- : mSensorDevice(0),
- mSensorModule(0)
- {
- + ALOGE("loading module %s ...", SENSORS_HARDWARE_MODULE_ID);
- status_t err = hw_get_module(SENSORS_HARDWARE_MODULE_ID,
- (hw_module_t const**)&mSensorModule);
- project hardware/libhardware/
- diff --git a/hardware.c b/hardware.c
- index 1f831cb..0714eb5 100644
- --- a/hardware.c
- +++ b/hardware.c
- @@ -24,6 +24,7 @@
- #include <errno.h>
- #include <limits.h>
- +#define LOG_NDEBUG 0
- #define LOG_TAG "HAL"
- #include <utils/Log.h>
- @@ -71,8 +72,10 @@ static int load(const char *id,
- * dlopen returns. Since RTLD_GLOBAL is not or'd in with
- * RTLD_NOW the external symbols will not be global
- */
- + ALOGE("load: before dlopen");
- handle = dlopen(path, RTLD_NOW);
- if (handle == NULL) {
- + ALOGE("load: handle is null");
- char const *err_str = dlerror();
- ALOGE("load: module=%s\n%s", path, err_str?err_str:"unknown");
- status = -EINVAL;
- @@ -81,6 +84,7 @@ static int load(const char *id,
- /* Get the address of the struct hal_module_info. */
- const char *sym = HAL_MODULE_INFO_SYM_AS_STR;
- + ALOGE("load: sym: %s", sym);
- hmi = (struct hw_module_t *)dlsym(handle, sym);
- if (hmi == NULL) {
- ALOGE("load: couldn't find symbol %s", sym);
- @@ -88,19 +92,27 @@ static int load(const char *id,
- goto done;
- }
- + ALOGE("load: id: %s", id);
- + ALOGE("load: hmi->id: %s", hmi->id);
- +
- /* Check that the id matches */
- - if (strcmp(id, hmi->id) != 0) {
- + /* if (strcmp(id, hmi->id) != 0) {
- ALOGE("load: id=%s != hmi->id=%s", id, hmi->id);
- status = -EINVAL;
- goto done;
- - }
- + } */
- - hmi->dso = handle;
- + ALOGE("load: hmi->dso = handle;");
- + //hmi->dso = handle;
- + ALOGE("load: status = 0");
- /* success */
- status = 0;
- + ALOGE("load: done?");
- +
- done:
- + ALOGE("load: done: status: %i", status);
- if (status != 0) {
- hmi = NULL;
- if (handle != NULL) {
- @@ -114,12 +126,14 @@ static int load(const char *id,
- *pHmi = hmi;
- + ALOGE("load: return %i", status);
- return status;
- }
- int hw_get_module_by_class(const char *class_id, const char *inst,
- const struct hw_module_t **module)
- {
- + ALOGV("%s - class_id : %s; inst : %s", __func__, class_id, inst);
- int status;
- int i;
- const struct hw_module_t *hmi = NULL;
- @@ -132,6 +146,8 @@ int hw_get_module_by_class(const char *class_id, const char *inst,
- else
- strlcpy(name, class_id, PATH_MAX);
- + ALOGV("%s: %i - name: %s", __func__, __LINE__, name);
- +
- /*
- * Here we rely on the fact that calling dlopen multiple times on
- * the same .so will simply increment a refcount (and not load
- @@ -141,28 +157,35 @@ int hw_get_module_by_class(const char *class_id, const char *inst,
- /* Loop through the configuration variants looking for a module */
- for (i=0 ; i<HAL_VARIANT_KEYS_COUNT+1 ; i++) {
- + ALOGV("%s: %i (i=%i)", __func__, __LINE__, i);
- if (i < HAL_VARIANT_KEYS_COUNT) {
- if (property_get(variant_keys[i], prop, NULL) == 0) {
- continue;
- }
- snprintf(path, sizeof(path), "%s/%s.%s.so",
- HAL_LIBRARY_PATH2, name, prop);
- + ALOGV("%s: %i - path 1: %s", __func__, __LINE__, path);
- if (access(path, R_OK) == 0) break;
- snprintf(path, sizeof(path), "%s/%s.%s.so",
- HAL_LIBRARY_PATH1, name, prop);
- + ALOGV("%s: %i - path 2: %s", __func__, __LINE__, path);
- if (access(path, R_OK) == 0) break;
- } else {
- snprintf(path, sizeof(path), "%s/%s.default.so",
- HAL_LIBRARY_PATH1, name);
- + ALOGV("%s: %i - path 3: %s", __func__, __LINE__, path);
- if (access(path, R_OK) == 0) break;
- }
- }
- + ALOGV("%s: %i - path end: %s", __func__, __LINE__, path);
- +
- status = -ENOENT;
- if (i < HAL_VARIANT_KEYS_COUNT+1) {
- /* load the module, if this fails, we're doomed, and we should not try
- * to load a different variant. */
- + ALOGV("%s: we might be doomed...", __func__);
- status = load(class_id, path, module);
- }
- project hardware/msm7k/
- diff --git a/libstagefrighthw/Android.mk b/libstagefrighthw/Android.mk
- index a8a4a5f..d36bff7 100644
- --- a/libstagefrighthw/Android.mk
- +++ b/libstagefrighthw/Android.mk
- @@ -14,26 +14,26 @@
- # limitations under the License.
- #
- -LOCAL_PATH := $(call my-dir)
- -include $(CLEAR_VARS)
- -
- -LOCAL_SRC_FILES := \
- - QComOMXPlugin.cpp \
- -
- -LOCAL_CFLAGS := $(PV_CFLAGS_MINUS_VISIBILITY)
- -
- -LOCAL_C_INCLUDES:= \
- - $(TOP)/frameworks/native/include/media/hardware \
- - $(TOP)/frameworks/native/include/media/openmax
- -
- -LOCAL_SHARED_LIBRARIES := \
- - libbinder \
- - libutils \
- - libcutils \
- - libdl \
- - libui \
- -
- -LOCAL_MODULE := libstagefrighthw
- -LOCAL_MODULE_TAGS := optional
- -include $(BUILD_SHARED_LIBRARY)
- +#LOCAL_PATH := $(call my-dir)
- +#include $(CLEAR_VARS)
- +#
- +#LOCAL_SRC_FILES := \
- +# QComOMXPlugin.cpp \
- +#
- +#LOCAL_CFLAGS := $(PV_CFLAGS_MINUS_VISIBILITY)
- +#
- +#LOCAL_C_INCLUDES:= \
- +# $(TOP)/frameworks/native/include/media/hardware \
- +# $(TOP)/frameworks/native/include/media/openmax
- +#
- +#LOCAL_SHARED_LIBRARIES := \
- +# libbinder \
- +# libutils \
- +# libcutils \
- +# libdl \
- +# libui \
- +#
- +#LOCAL_MODULE := libstagefrighthw
- +#LOCAL_MODULE_TAGS := optional
- +#include $(BUILD_SHARED_LIBRARY)
- project hardware/qcom/display/
- diff --git a/liboverlay/mdpWrapper.h b/liboverlay/mdpWrapper.h
- index 4cfd3e0..6e3fdf4 100644
- --- a/liboverlay/mdpWrapper.h
- +++ b/liboverlay/mdpWrapper.h
- @@ -247,12 +247,12 @@ inline void dump(const char* const s, const msm_rotator_img_info& rot) {
- dump("src_rect", rot.src_rect);
- }
- inline void dump(const char* const s, const msm_rotator_data_info& rot) {
- - ALOGE("%s msm_rotator_data_info sessid=%d verkey=%d",
- - s, rot.session_id, rot.version_key);
- + //ALOGE("%s msm_rotator_data_info sessid=%d verkey=%d",
- + // s, rot.session_id, rot.version_key);
- dump("src", rot.src);
- dump("dst", rot.dst);
- - dump("src_chroma", rot.src_chroma);
- - dump("dst_chroma", rot.dst_chroma);
- + //dump("src_chroma", rot.src_chroma);
- + //dump("dst_chroma", rot.dst_chroma);
- }
- inline void dump(const char* const s, const fb_fix_screeninfo& finfo) {
- ALOGE("%s fb_fix_screeninfo type=%d", s, finfo.type);
- project kernel/htc/msm7x30/
- diff --git a/drivers/net/wireless/bcm4329/Makefile b/drivers/net/wireless/bcm4329/Makefile
- index 5a662be..0c84dd5 100644
- --- a/drivers/net/wireless/bcm4329/Makefile
- +++ b/drivers/net/wireless/bcm4329/Makefile
- @@ -3,7 +3,7 @@ DHDCFLAGS = -DLINUX -DBCMDRIVER -DBCMDONGLEHOST -DDHDTHREAD -DBCMWPA2 \
- -DUNRELEASEDCHIP -Dlinux -DDHD_SDALIGN=64 -DMAX_HDR_READ=64 \
- -DDHD_FIRSTREAD=64 -DDHD_GPL -DDHD_SCHED -DBDC -DTOE -DDHD_BCMEVENTS \
- -DSHOW_EVENTS -DBCMSDIO -DDHD_GPL -DBCMLXSDMMC -DBCMPLATFORM_BUS \
- - -Wall -Wstrict-prototypes -Werror -DOOB_INTR_ONLY -DCUSTOMER_HW2 \
- + -Wall -Wstrict-prototypes -DOOB_INTR_ONLY -DCUSTOMER_HW2 \
- -DDHD_USE_STATIC_BUF -DMMC_SDIO_ABORT -DDHD_DEBUG_TRAP -DSOFTAP \
- -DEMBEDDED_PLATFORM -DARP_OFFLOAD_SUPPORT -DPKT_FILTER_SUPPORT \
- -DGET_CUSTOM_MAC_ENABLE -DSET_RANDOM_MAC_SOFTAP -DCSCAN -DHW_OOB \
- diff --git a/drivers/net/wireless/bcm4329/wl_iw.c b/drivers/net/wireless/bcm4329/wl_iw.c
- index d45b025..d64eba8 100644
- --- a/drivers/net/wireless/bcm4329/wl_iw.c
- +++ b/drivers/net/wireless/bcm4329/wl_iw.c
- @@ -1985,7 +1985,7 @@ static int iwpriv_get_assoc_list(struct net_device *dev,
- p_mac_str_end = &mac_lst[sizeof(mac_lst)-1];
- for (i = 0; i < 8; i++) {
- - struct ether_addr *id = &sta_maclist->ea[i];
- + struct ether_addr *id = sta_maclist[i].ea;
- if (!ETHER_ISNULLADDR(id->octet)) {
- scb_val_t scb_val;
- int rssi = 0;
- diff --git a/drivers/net/wireless/bcm4329_204/Makefile b/drivers/net/wireless/bcm4329_204/Makefile
- index bef4546..802135f 100644
- --- a/drivers/net/wireless/bcm4329_204/Makefile
- +++ b/drivers/net/wireless/bcm4329_204/Makefile
- @@ -3,7 +3,7 @@ DHDCFLAGS = -DLINUX -DBCMDRIVER -DBCMDONGLEHOST -DDHDTHREAD -DBCMWPA2 \
- -DUNRELEASEDCHIP -Dlinux -DDHD_SDALIGN=64 -DMAX_HDR_READ=64 \
- -DDHD_FIRSTREAD=64 -DDHD_GPL -DDHD_SCHED -DBDC -DTOE -DDHD_BCMEVENTS \
- -DSHOW_EVENTS -DBCMSDIO -DDHD_GPL -DBCMLXSDMMC -DBCMPLATFORM_BUS \
- - -Wall -Wstrict-prototypes -Werror -DOOB_INTR_ONLY -DCUSTOMER_HW2 \
- + -Wall -Wstrict-prototypes -DOOB_INTR_ONLY -DCUSTOMER_HW2 \
- -DDHD_USE_STATIC_BUF -DMMC_SDIO_ABORT -DWLAN_PFN -DWLAN_PROTECT \
- -DBCMWAPI_WPI -DWLAN_LOW_RSSI_IND -DCSCAN -DSOFTAP_PROTECT \
- -DMMC_RECOVER -DBCM4329_LOW_POWER -DHTC_KlocWork\
- project prebuilts/ndk/
- diff --git a/android-ndk-r7/platforms/android-14/arch-arm/usr/include/linux/android_pmem.h b/android-ndk-r7/platforms/android-14/arch-arm/usr/include/linux/android_pmem.h
- index 858857e..454078b 100644
- --- a/android-ndk-r7/platforms/android-14/arch-arm/usr/include/linux/android_pmem.h
- +++ b/android-ndk-r7/platforms/android-14/arch-arm/usr/include/linux/android_pmem.h
- @@ -36,6 +36,7 @@ struct pmem_region {
- #define PMEM_GET_TOTAL_SIZE _IOW(PMEM_IOCTL_MAGIC, 7, struct pmem_region *)
- #define HW3D_REVOKE_GPU _IOW(PMEM_IOCTL_MAGIC, 8, unsigned int)
- +#define PMEM_CACHE_FLUSH _IOW(PMEM_IOCTL_MAGIC, 8, unsigned int)
- #define HW3D_GRANT_GPU _IOW(PMEM_IOCTL_MAGIC, 9, unsigned int)
- #define HW3D_WAIT_IRQ _IOW(PMEM_IOCTL_MAGIC,10, unsigned int)