Skip to content

Instantly share code, notes, and snippets.

View alanorth's full-sized avatar

Alan Orth alanorth

View GitHub Profile
@alanorth
alanorth / AudioSystem.diff
Created April 6, 2012 08:34
Exynos 4210 libmedia hack (AudioSystem.cpp)
diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp
index 99cc4e0..ec606bf 100644
--- a/media/libmedia/AudioSystem.cpp
+++ b/media/libmedia/AudioSystem.cpp
@@ -808,6 +808,11 @@ extern "C" bool _ZN7android11AudioSystem15isLowVisibilityENS0_11stream_typeE(aud
}
}
+extern "C" bool _ZN7android11AudioSystem10stopOutputEiNS0_11stream_typeEi(audio_io_handle_t output, audio_stream_type_t stream, int session)
+{
@alanorth
alanorth / ril.diff
Created April 8, 2012 11:48
p6200_base.mk and BoardConfig.mk
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 2f54bcf..9a24e93 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -25,3 +25,7 @@ TARGET_OTA_ASSERT_DEVICE := p6200,GT-P6200
TARGET_PREBUILT_KERNEL := device/samsung/p6200/zImage
TARGET_BOOTANIMATION_NAME := horizontal-1024x600
+
+# RIL
@alanorth
alanorth / gist:2339019
Created April 8, 2012 18:32
logical light values
<integer-array name="config_autoBrightnessLevels">
<item>12</item>
<item>120</item>
<item>1200</item>
<item>12000</item>
<item>16000</item>
</integer-array>
<!-- Array of output values for LCD backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
# $Id: PKGBUILD 141293 2011-10-28 08:03:28Z tpowa $
# Maintainer: Eric Cyb <cyberic99 _@_ gmail.com>
pkgname=qemu-linaro
ver=2012.05
pkgver=1.0.91_${ver}
pkgrel=1
pkgdesc="Community Improvements on A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation."
arch=('i686' 'x86_64')
license=('GPL2' 'LGPL2.1')
url="https://launchpad.net/qemu-linaro"
In file included from hardware/qcom/display/libqcomui/qcom_ui.cpp:33:
device/huawei/u8185/include/qcom_ui.h: In member function 'void QCBaseLayer::setS3DComposeFormat(int32_t)':
device/huawei/u8185/include/qcom_ui.h:173: error: 'HWC_HINT_DRAW_S3D_SIDE_BY_SIDE' was not declared in this scope
device/huawei/u8185/include/qcom_ui.h:175: error: 'HWC_HINT_DRAW_S3D_TOP_BOTTOM' was not declared in this scope
hardware/qcom/display/libqcomui/qcom_ui.cpp: In function 'int qcomuiClearRegion(android::Region, void*, void*)':
hardware/qcom/display/libqcomui/qcom_ui.cpp:440: error: 'eglGetRenderBufferANDROID' was not declared in this scope
hardware/qcom/display/libqcomui/qcom_ui.cpp: In function 'external_display_type handleEventHDMI(external_display_type, int, external_display_type)':
hardware/qcom/display/libqcomui/qcom_ui.cpp:509: warning: too few arguments for format
hardware/qcom/display/libqcomui/qcom_ui.cpp: In function 'void dumpLayer(int, int, size_t, hwc_layer_t*)':
hardware/qcom/display/libqcomui/qcom_ui.cpp:689:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="alanorth/android_device_huawei_u8185" path="device/huawei/u8185" remote="github" revision="ics" />
<project name="alanorth/android_kernel_huawei_u8815" path="kernel/huawei/u8815" remote="github" revision="ics" />
<project name="alanorth/android_vendor_huawei_u8185" path="vendor/huawei/u8185" remote="github" revision="ics" />
</manifest>
Why God never become a professor
1. He had only one major publication.
2. It was in Hebrew.
3. It had no references.
4. It wasn't published in a refereed journal.
5. Some even doubt he wrote it by himself.
6. It may be true that he created the world, but what has he done since then?
7. His cooperative efforts have been quite limited.
8. The scientific community has had a hard time replicating his results.
Building modules, stage 2.
MODPOST 1 modules
WARNING: "ar600x_wlan_power" [/home/aorth/src/git/AR6kSDK.3.1/AR6kSDK.build_3.1_RC.734/host/os/linux/ar6000.ko] undefined!
CC /home/aorth/src/git/AR6kSDK.3.1/AR6kSDK.build_3.1_RC.734/host/os/linux/ar6000.mod.o
LD [M] /home/aorth/src/git/AR6kSDK.3.1/AR6kSDK.build_3.1_RC.734/host/os/linux/ar6000.ko
make[1]: Leaving directory `/home/aorth/src/CM9/out/target/product/u8185/obj/KERNEL_OBJ'
make -C hif/`echo SDIO | tr [:upper:] [:lower:]`
make[1]: Entering directory `/home/aorth/src/git/AR6kSDK.3.1/AR6kSDK.build_3.1_RC.734/host/hif/sdio'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/aorth/src/git/AR6kSDK.3.1/AR6kSDK.build_3.1_RC.734/host/hif/sdio'
<3>[1026, insmod] [ 3665.914644] AR6K: ar6000_prealloc_init success. : 20
<4>[1026, insmod] [ 3665.915919]
<4>[1026, insmod] [ 3665.915931] vote for bt vreg.
<4>[1026, insmod] [ 3665.916774]
<4>[1026, insmod] [ 3665.916782] vote for wlan4 vreg.
<7>[1026, insmod] [ 3665.916811] gpio_request: gpio-6 (WLAN_DEEP_SLEEP_N) status -16
<3>[1026, insmod] [ 3665.916826] WLAN reset GPIO 6 request failed -16
<4>[1026, insmod] [ 3665.916844] Interface initialization failed
<4>[1026, insmod] [ 3665.918904] set_polling : no need to enable polling for slot 2 (as host->pdev_id)
<3>[1134, insmod] [ 165.850611] AR6K: ar6000_prealloc_init success. : 20
<4>[1134, insmod] [ 165.852256]
<4>[1134, insmod] [ 165.852266] vote for bt vreg.
<4>[1134, insmod] [ 165.853283]
<4>[1134, insmod] [ 165.853291] vote for wlan4 vreg.
<4>[1134, insmod] [ 165.853849]
<4>[1134, insmod] [ 165.853859] Vote for A0 clock done
<4>[1134, insmod] [ 165.854401]
<4>[1134, insmod] [ 165.854409] vote for WLAN GPIO 134 done.
<4>[1134, insmod] [ 165.854429] Interface initialization success