diff options
author | Eric Laurent <elaurent@google.com> | 2015-01-06 08:47:05 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-01-06 08:55:25 -0800 |
commit | c447ded04f11169e9b96b31cd196b2c4ffa9f31c (patch) | |
tree | 77fedcbb54431d1d432d9bdcc58791ec5418c413 /media/libmedia | |
parent | 3190e67d5c80c1e39e3be91784110af1180cd182 (diff) | |
download | frameworks_av-c447ded04f11169e9b96b31cd196b2c4ffa9f31c.zip frameworks_av-c447ded04f11169e9b96b31cd196b2c4ffa9f31c.tar.gz frameworks_av-c447ded04f11169e9b96b31cd196b2c4ffa9f31c.tar.bz2 |
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
Diffstat (limited to 'media/libmedia')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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; |