Skip to content

Instantly share code, notes, and snippets.

I/lgsecclkserver( 358): Start lgsecclkserver
I/kickstart-qcks( 632): PARAMETER VALUES
I/kickstart-qcks( 632): COMPORT_DLOAD=/dev/ttyHSL1
I/kickstart-qcks( 632): COMPORT_SAHARA=/dev/ks_hsic_bridge
I/kickstart-qcks( 632): PATHTOIMAGES=/firmware/image/
I/kickstart-qcks( 632): PATHFORRAMDUMP=/tombstones/mdm/
I/kickstart-qcks( 632): EFSRAW1=/dev/block/platform/msm_sdcc.1/by-name/m9kefs1
I/kickstart-qcks( 632): EFSRAW2=/dev/block/platform/msm_sdcc.1/by-name/m9kefs2
I/kickstart-qcks( 632): EFSRAW3=/dev/block/platform/msm_sdcc.1/by-name/m9kefs3
I/kickstart-qcks( 632): Header1=efs1.mbn
This file has been truncated, but you can view the full file.
--------- beginning of /dev/log/main
D/CPFIRMWARE( 222): compare() : Matched /firmware/image/tzapps.mdt
D/CPFIRMWARE( 222): compare() : Matched /firmware/image/tzapps.b00
D/CPFIRMWARE( 222): compare() : Matched /firmware/image/tzapps.b01
D/CPFIRMWARE( 222): compare() : Matched /firmware/image/tzapps.b02
D/CPFIRMWARE( 222): compare() : Matched /firmware/image/tzapps.b03
D/CPFIRMWARE( 222): main() : performance = 17
W/PIL ( 253): 8960 device but no modem image found
W/No ( 291): gss image found
I/DEBUG ( 349): debuggerd: Jul 17 2014 16:33:57
diff --git a/amplifier/audio_amplifier.c b/amplifier/audio_amplifier.c
index f037834..a5a6433 100644
--- a/amplifier/audio_amplifier.c
+++ b/amplifier/audio_amplifier.c
@@ -81,7 +81,7 @@ static int amp_enable_output_devices(amplifier_device_t *device,
case SND_DEVICE_OUT_VOIP_SPEAKER:
case SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES:
tfa9887_power(enable);
- if (enable)
+ if (enable && tfa9887_amp_power_status())
diff --git a/amplifier/audio_amplifier.c b/amplifier/audio_amplifier.c
index f037834..a5a6433 100644
--- a/amplifier/audio_amplifier.c
+++ b/amplifier/audio_amplifier.c
@@ -81,7 +81,7 @@ static int amp_enable_output_devices(amplifier_device_t *device,
case SND_DEVICE_OUT_VOIP_SPEAKER:
case SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES:
tfa9887_power(enable);
- if (enable)
+ if (enable && tfa9887_amp_power_status())
diff --git a/amplifier/audio_amplifier.c b/amplifier/audio_amplifier.c
index f037834..5947050 100644
--- a/amplifier/audio_amplifier.c
+++ b/amplifier/audio_amplifier.c
@@ -72,7 +72,7 @@ static int amp_enable_output_devices(amplifier_device_t *device,
{
m8_device_t *dev = (m8_device_t *) device;
- if (devices) {
+ if (tfa9887_amp_power_status() && devices) {
This file has been truncated, but you can view the full file.
--------- beginning of main
I/cm ( 0): ____ _ _ ____ _ _ ____ ____ ____ _ _ _ _ ____ ___
W/auditd ( 261): type=2000 audit(0.0:1): initialized
I/auditd ( 261): type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
W/auditd ( 261): type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
I/cm ( 0): | \_/ |__| |\ | | | | __ |___ |\ | |\/| | | | \
I/cm ( 0): |___ | | | | \| |__| |__] |___ | \| | | |__| |__/
I/cm ( 0): Welcome to Android 5.1.1 / CyanogenMod-12.1-20150809-UNOFFICIAL-m8
I/lowmemorykiller( 0): Using in-kernel low memory killer interface
--------- beginning of system
From 7464302c5b5c4c588af8f9aa157c61181c388e91 Mon Sep 17 00:00:00 2001
From: Dan Pasanen <[email protected]>
Date: Sun, 9 Aug 2015 23:22:48 -0500
Subject: [PATCH] hal: fix loading of amp
* Only enable amplifier devices if an amp exists
Change-Id: I76e22aee3db54319b2d0d4a43407f6d31a6a855b
---
hal/audio_hw.c | 6 ++++--
@invisiblek
invisiblek / tmp.c
Last active August 29, 2015 14:27 — forked from hadess/tmp.c
Hack to control the keyboard backlight level on a ideapad y50
/* gcc -o tmp `pkg-config --libs --cflags glib-2.0` tmp.c
*
* # modprobe ec_sys
*
* # watch -n 0.1 hexdump -C /sys/kernel/debug/ec/ec0/io
*
* Modified for ideapad y50
*
* 00000000 00 00 00 03 00 00 28 00 10 10 80 00 08 43 00 00 |......(......C..|
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index 76b5738..01b6097 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -48,6 +48,7 @@
#define CFG_CAMERA_BIT (19)
enum {
+ VPCCMD_KEYBOARD_BACKLIGHT = 0x03,
VPCCMD_R_VPC1 = 0x10,
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index 76b5738..01b6097 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -48,6 +48,7 @@
#define CFG_CAMERA_BIT (19)
enum {
+ VPCCMD_KEYBOARD_BACKLIGHT = 0x03,
VPCCMD_R_VPC1 = 0x10,