From ab300c8cbf5df98fddca39e8d1698b0307432152 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Mon, 13 Apr 2015 13:47:33 -0700 Subject: audio polciy: remove FM audio capture permission. Change-Id: I2607d89b0bd87cdd2f4084dfdb55135509a824d5 --- services/audiopolicy/service/AudioPolicyInterfaceImplLegacy.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'services/audiopolicy/service/AudioPolicyInterfaceImplLegacy.cpp') diff --git a/services/audiopolicy/service/AudioPolicyInterfaceImplLegacy.cpp b/services/audiopolicy/service/AudioPolicyInterfaceImplLegacy.cpp index 372a9fa..e4ca5dc 100644 --- a/services/audiopolicy/service/AudioPolicyInterfaceImplLegacy.cpp +++ b/services/audiopolicy/service/AudioPolicyInterfaceImplLegacy.cpp @@ -255,8 +255,7 @@ status_t AudioPolicyService::getInputForAttr(const audio_attributes_t *attr, inputSource = AUDIO_SOURCE_MIC; } - if (((inputSource == AUDIO_SOURCE_HOTWORD) && !captureHotwordAllowed()) || - ((inputSource == AUDIO_SOURCE_FM_TUNER) && !captureFmTunerAllowed())) { + if ((inputSource == AUDIO_SOURCE_HOTWORD) && !captureHotwordAllowed()) { return BAD_VALUE; } -- cgit v1.1