Skip to content

Instantly share code, notes, and snippets.

diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
index 59c7f62..1a2c088 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
@@ -423,12 +423,17 @@
interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
- clock-frequency = <400000>;
+ clock-frequency = <100000>;
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.88-05404-gc7659f0 (adam@AdamWork) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #22 SMP PREEMPT Thu Mar 22 19:26:51 EDT 2018
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Ion: base 0xbe200000, size is 0x1e00000, node name graphic, heap-name carveout_gralloc namesize 17,[99][97][114][118]
[ 0.000000] Ion: insert heap-name carveout_gralloc
[ 0.000000] OF: reserved mem: initialized node graphic, compatible id hisi_ion
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000016c00000, size 64 MiB
[ 0.000000] OF: reserved mem: initialized node fastboot-cma-mem, compatible id shared-dma-pool
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index fea3fbf..eae3f72 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -26,6 +26,7 @@
<uses-permission android:name="android.car.permission.CAR_RADIO" />
<uses-permission android:name="android.permission.ACCESS_BROADCAST_RADIO" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+ <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
From 464bf8b35ad3cfdc706155b973f652b4064effbb Mon Sep 17 00:00:00 2001
Date: Tue, 23 Jan 2018 14:58:12 -0500
Subject: [PATCH] Automotive device for Hikey 960
Bluetooth HFP client SCO connection is handled by custom USB audio HAL
Change-Id: Idcbb2520ab58cf4b01317da7056c8803e1d122c4
---
BoardConfigCommon.mk | 6 +
device-common.mk | 6 +-
@lbdroid
lbdroid / hardware_libhardware.patch
Created January 21, 2018 16:20
USB audio HAL patch for HFP-client
diff --git a/modules/usbaudio/audio_hal.c b/modules/usbaudio/audio_hal.c
index e93396f..2eafc80 100644
--- a/modules/usbaudio/audio_hal.c
+++ b/modules/usbaudio/audio_hal.c
@@ -14,8 +14,8 @@
* limitations under the License.
*/
-#define LOG_TAG "modules.usbaudio.audio_hal"
-/*#define LOG_NDEBUG 0*/
@lbdroid
lbdroid / android_system_media.patch
Created January 20, 2018 02:16
usb audio hal for hfp-client
diff --git a/modules/usbaudio/audio_hal.c b/modules/usbaudio/audio_hal.c
index e93396f..0b66481 100644
--- a/modules/usbaudio/audio_hal.c
+++ b/modules/usbaudio/audio_hal.c
@@ -14,8 +14,8 @@
* limitations under the License.
*/
-#define LOG_TAG "modules.usbaudio.audio_hal"
-/*#define LOG_NDEBUG 0*/
@lbdroid
lbdroid / dmesg
Created November 30, 2017 15:21
hikey 960 logs
hikey960:/ # dmesg
[ 0.000960] Security Framework initialized
[ 0.000971] SELinux: Initializing.
[ 0.001035] SELinux: Starting in permissive mode
[ 0.001096] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.001106] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.002060] ftrace: allocating 41143 entries in 161 pages
[ 0.070140] sched-energy: Sched-energy-costs installed from DT
[ 0.070172] CPU0: update cpu_capacity 462
[ 0.070199] ASID allocator initialised with 65536 entries
@lbdroid
lbdroid / Android.mk
Created January 20, 2017 19:23 — forked from kanru/Android.mk
Android GPS using libhardware
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
gps_test.cpp
LOCAL_SHARED_LIBRARIES := \
libcutils libhardware
LOCAL_MODULE:= test-gps