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

Commit 1448aade authored by chrmhoffmann's avatar chrmhoffmann Committed by Steve Kondik
Browse files

pre kitkat audio legacy poliy fix for hotword (ok google)

Change-Id: I5bb90fb90f373461a98609226a5cea50ac5266e9
parent d53f75a4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -259,6 +259,11 @@ status_t AudioPolicyService::getInputForAttr(const audio_attributes_t *attr,
        return BAD_VALUE;
    }

#ifdef HAVE_PRE_KITKAT_AUDIO_POLICY_BLOB
    if (inputSource == AUDIO_SOURCE_HOTWORD)
      inputSource = AUDIO_SOURCE_VOICE_RECOGNITION;
#endif

    sp<AudioPolicyEffects>audioPolicyEffects;
    {
        Mutex::Autolock _l(mLock);