Skip to content

Commit

Permalink
Fix ability to build anc_assist
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralim committed May 13, 2024
1 parent 850cb66 commit f644688
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions apps/anc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ endif

ifeq ($(ANC_ASSIST_ENABLED),1)
CFLAGS_app_anc.o += -DANC_ASSIST_ENABLED
CFLAGS_anc_assist.o += -DANC_ASSIST_ENABLED

ifeq ($(ANC_ASSIST_WNR_ENABLED),1)
CFLAGS_anc_assist.o += -DANC_ASSIST_WNR_ENABLED
Expand Down
6 changes: 3 additions & 3 deletions config/open_source/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ AUDIO_OUTPUT_MONO ?= 0
AUDIO_OUTPUT_DIFF ?= 0

# Raise mic bias from 2.2V to 3.3V
DIGMIC_HIGH_VOLT?=0
DIGMIC_HIGH_VOLT ?= 0

#### ANC DEFINE START ######
export ANC_APP ?= 1
Expand All @@ -84,10 +84,10 @@ export AUDIO_ANC_FB_MC_HW ?=0
export APP_ANC_KEY ?= 1
# Feedback check for feedforward mic. Locked on due to blobs
export ANC_FB_CHECK ?= 1
##### ANC DEFINE END ######

# Build in ANC testing app (closed source)
APP_ANC_TEST ?= 0
export ANC_ASSIST_ENABLED ?= 0
##### ANC DEFINE END ######

# Allow test commands via bluetooth
TEST_OVER_THE_AIR ?= 0
Expand Down
4 changes: 2 additions & 2 deletions platform/hal/hal_aud.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ enum AUD_STREAM_ID_T {
AUD_STREAM_ID_0 = 0,
AUD_STREAM_ID_1,
AUD_STREAM_ID_2,
#ifdef __ANC_ASSIST__
#ifdef ANC_ASSIST_ENABLED
AUD_STREAM_ID_3,
#endif
AUD_STREAM_ID_NUM,
Expand All @@ -230,7 +230,7 @@ enum AUD_IO_PATH_T {
AUD_INPUT_PATH_NTMIC,
AUD_INPUT_PATH_ANC_WNR, // Wind Noise Reduction
AUD_INPUT_PATH_USBAUDIO,
#ifdef __ANC_ASSIST__
#ifdef ANC_ASSIST_ENABLED
AUD_INPUT_PATH_AF_ANC,
#endif
// Output path
Expand Down

0 comments on commit f644688

Please sign in to comment.