This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "../inc/Tfa9887.h" | |
#include "../inc/Tfa98xx.h" | |
#include <string.h> | |
#include "Tfa98xx_internals.h" | |
#include <assert.h> | |
#include <utils/Log.h> | |
#define LOG_TAG "Tfa9887" | |
Tfa9887_Error_t Tfa9887_Open(unsigned char slave_address, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef TFA98XX_INTERNALS_H | |
#define TFA98XX_INTERNALS_H | |
#include "../inc/Tfa98xx.h" | |
/* the following type mappings are compiler specific */ | |
typedef int int24; | |
typedef unsigned char subaddress_t; | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include "../inc/Tfa98xx.h" | |
/* support for error code translation into text */ | |
static char latest_errorstr[64]; | |
const char* Tfa98xx_GetErrorString(Tfa98xx_Error_t error) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0001-amplifier-fix-tfa9887-amp.patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 9c87cf0ad6f0ef2abdcebd496ec3b7ab047b1d0f Mon Sep 17 00:00:00 2001 | |
From: Richard Ross <[email protected]> | |
Date: Wed, 10 Jun 2015 12:07:17 -0500 | |
Subject: [PATCH] amplifier: fix tfa9887 amp | |
Change-Id: Id64c39497f90a68cb5d90dae28447bdc9277d79a | |
--- | |
amplifier/tfa9887.c | 468 +++++++++++++++++++++++++++++++++++++++------------- | |
amplifier/tfa9887.h | 84 +++++++++- | |
2 files changed, 429 insertions(+), 123 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Device 0x34 TFA9887 "TFA9887 N1D" | |
Datasheet "Unknown" | |
Revision "N1D" | |
End Device | |
Registers | |
Register 0x40:2 Hide_Unhide_Key " " | |
Bits | |
0 hid_code_0 "5A6Bh, 23147d To access hidden registers (=Default for engineering) bit 0" - | |
1 hid_code_1 "5A6Bh, 23147d To access hidden registers (=Default for engineering) bit 1" - | |
2 hid_code_2 "5A6Bh, 23147d To access hidden registers (=Default for engineering) bit 2" - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/amplifier/audio_amplifier.c b/amplifier/audio_amplifier.c | |
index 9ce8d4a..8db75ef 100644 | |
--- a/amplifier/audio_amplifier.c | |
+++ b/amplifier/audio_amplifier.c | |
@@ -87,6 +87,14 @@ static int amp_output_stream_start(amplifier_device_t *device, | |
return 0; | |
} | |
+static int amp_output_stream_standby(UNUSED amplifier_device_t *device, | |
+ UNUSED struct audio_stream_out *stream) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/audio/audio_policy.conf b/audio/audio_policy.conf | |
index 3aed27c..073535e 100644 | |
--- a/audio/audio_policy.conf | |
+++ b/audio/audio_policy.conf | |
@@ -5,7 +5,8 @@ | |
global_configuration { | |
attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_TELEPHONY_TX | |
default_output_device AUDIO_DEVICE_OUT_SPEAKER | |
- attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_TELEPHONY_TX | |
+ attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_TELEPHONY_RX |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/system/bin/linker | |
__cxa_finalize | |
__cxa_atexit | |
get_soc_name | |
malloc | |
__android_log_print | |
memset | |
snprintf | |
open | |
__errno |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: Colin Ian King <[email protected]> | |
Subject: [PATCH] KEYS: ensure we free the assoc array edit if edit is valid | |
__key_link_end is not freeing the associated array edit structure | |
and this leads to a 512 byte memory leak each time an identical | |
existing key is added with add_key(). | |
The reason the add_key() system call returns okay is that | |
key_create_or_update() calls __key_link_begin() before checking to see | |
whether it can update a key directly rather than adding/replacing - which |