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

Unverified Commit 3cbf87d8 authored by LuK1337's avatar LuK1337 Committed by Michael Bestas
Browse files

Disable extended precision on devices using XML audio policy

* It crashes while plugging in the headphones,

Change-Id: If64a30cd8151440a01aef78c737fd146679addad
parent a8b43558
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -139,6 +139,10 @@ ifeq ($(AUDIO_FEATURE_LOW_LATENCY_PRIMARY),true)
    LOCAL_CFLAGS += -DLOW_LATENCY_PRIMARY
endif

ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF
endif

ifneq ($(filter msm8974 msm8226 msm8610 msm8916,$(TARGET_BOARD_PLATFORM)),)
ifneq ($(strip $(AUDIO_FEATURE_DISABLED_WMA_OFFLOAD_DISABLED)),true)
    LOCAL_CFLAGS += -DWMA_OFFLOAD_ENABLED
+5 −0
Original line number Diff line number Diff line
@@ -76,7 +76,12 @@ static unsigned int configured_low_latency_capture_period_size =
/* This constant enables extended precision handling.
 * TODO The flag is off until more testing is done.
 */

#ifdef USE_XML_AUDIO_POLICY_CONF
static const bool k_enable_extended_precision = false;
#else
static const bool k_enable_extended_precision = true;
#endif

struct pcm_config pcm_config_deep_buffer = {
    .channels = 2,