Skip to content
4 changes: 4 additions & 0 deletions primary/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
config.c \
utils.c \
audio_hw.c

LOCAL_SHARED_LIBRARIES := \
libexpat \
liblog \
libcutils \
libaudioutils \
Expand All @@ -32,6 +35,7 @@ LOCAL_SHARED_LIBRARIES := \

LOCAL_C_INCLUDES += \
external/tinyalsa/include \
$(LOCAL_PATH)/include \
$(call include-path-for, audio-utils) \
$(call include-path-for, audio-route) \
$(call include-path-for, audio-effects)
Expand Down
18 changes: 18 additions & 0 deletions primary/audio_dbg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright (C) 2024 Intel Corporation
// SPDX-License-Identifier: Apache-2.0

/*#define LOG_NDEBUG 0*/

//#define DEBUG_PCM_DUMP

#ifdef DEBUG_PCM_DUMP
// To enable dumps, explicitly create "/vendor/dump/" folder and reboot device
FILE *sco_call_write = NULL;
FILE *sco_call_write_remapped = NULL;
FILE *sco_call_write_bt = NULL;
FILE *sco_call_read = NULL;
FILE *sco_call_read_remapped = NULL;
FILE *sco_call_read_bt = NULL;
FILE *out_write_dump = NULL;
FILE *in_read_dump = NULL;
#endif
Loading