From c447ded04f11169e9b96b31cd196b2c4ffa9f31c Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Tue, 6 Jan 2015 08:47:05 -0800 Subject: fix record from default input source Commit caf7f48a0e broke capture from default input source on some devices: the input source is now specified as part of the audio attributes and the default source was not remapped to mic source. Bug: 18736417. Change-Id: I3f5da33cdb56f959aaef68ed1952342babc63aa0 --- media/libmedia/AudioRecord.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'media/libmedia/AudioRecord.cpp') diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index d9646d9..ca3832d 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -167,10 +167,6 @@ status_t AudioRecord::set( return INVALID_OPERATION; } - // handle default values first. - if (inputSource == AUDIO_SOURCE_DEFAULT) { - inputSource = AUDIO_SOURCE_MIC; - } if (pAttributes == NULL) { memset(&mAttributes, 0, sizeof(audio_attributes_t)); mAttributes.source = inputSource; -- cgit v1.1