Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0841437c authored by Pradnya Chaphekar's avatar Pradnya Chaphekar
Browse files

hal: Set ddp endpoint params for Dolby decoder

- Set ddp endpoint params for Dolby decoder
- Rename DOLBY_DAP macro. Legacy DS1 functions
  using mixer controls get enabled when dolby
  buildspec enables DOLBY_DAP macro. Avoid this
  by renaming the macro.

Change-Id: I66c7d1896f4260754551f03852fa8c140abf0e53
parent fafaaead
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ ifeq ($(strip $(DOLBY_DDP)),true)
    LOCAL_SRC_FILES += audio_extn/dolby.c
endif

ifeq ($(strip $(DOLBY_DAP)),true)
ifeq ($(strip $(DS1_DOLBY_DAP)),true)
    LOCAL_CFLAGS += -DDS1_DOLBY_DAP_ENABLED
ifneq ($(strip $(DOLBY_DDP)),true)
    LOCAL_SRC_FILES += audio_extn/dolby.c
@@ -176,8 +176,9 @@ endif

ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP)),true)
    LOCAL_CFLAGS += -DDS2_DOLBY_DAP_ENABLED
    LOCAL_CFLAGS += -DDS1_DOLBY_DDP_ENABLED
ifneq ($(strip $(DOLBY_DDP)),true)
    ifneq ($(strip $(DOLBY_DAP)),true)
    ifneq ($(strip $(DS1_DOLBY_DAP)),true)
        LOCAL_SRC_FILES += audio_extn/dolby.c
    endif
endif