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

Commit 70b75071 authored by Sultan Qasim Khan's avatar Sultan Qasim Khan Committed by Bruno Martins
Browse files

msm8974: bring back USECASE_AUDIO_RECORD_FM_VIRTUAL

Needed to record with mic while FM is being played.
This partially reverts e450f540

Change-Id: Iaecb2bab4acbadd571effd37afe3d0116973f822
parent a5f61b11
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -179,6 +179,10 @@ ifeq ($(strip $(AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE)),true)
    LOCAL_CFLAGS += -DKPI_OPTIMIZE_ENABLED
endif

ifeq ($(strip $(AUDIO_FEATURE_DISABLED_FM_VIRTUAL_RECORD)),true)
    LOCAL_CFLAGS += -DNO_FM_VIRTUAL_RECORD
endif

LOCAL_SHARED_LIBRARIES := \
	liblog \
	libcutils \
+4 −0
Original line number Diff line number Diff line
@@ -2266,6 +2266,10 @@ int platform_update_usecase_from_source(int source, int usecase)
    ALOGV("%s: input source :%d", __func__, source);

    switch(source) {
#ifndef NO_FM_VIRTUAL_RECORD
        case AUDIO_SOURCE_FM_TUNER:
            return USECASE_AUDIO_RECORD_FM_VIRTUAL;
#endif
        case AUDIO_SOURCE_VOICE_UPLINK:
            return USECASE_INCALL_REC_UPLINK;
        case AUDIO_SOURCE_VOICE_DOWNLINK: