summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2013-02-01 17:57:04 -0800
committerEric Laurent <elaurent@google.com>2013-02-01 17:57:04 -0800
commitd3922f72601d82c6fc067a98916fda0bd1291c5f (patch)
tree65611e81a91807c46758ae234a802cdb7c72c3e2 /services/audioflinger/AudioFlinger.cpp
parent2a330d6cbb25f0cdd6208aeee53b4a3b88dae3b0 (diff)
downloadframeworks_av-d3922f72601d82c6fc067a98916fda0bd1291c5f.zip
frameworks_av-d3922f72601d82c6fc067a98916fda0bd1291c5f.tar.gz
frameworks_av-d3922f72601d82c6fc067a98916fda0bd1291c5f.tar.bz2
AudioFlinger: fix RecordThread initial device
A regression was introduced when the audio device enums where modified for a 32 bit representation: the device passed when constructing a RecordThread was still the concatenation of input device and output device bit fields on one 32 bit value which is not possible anymore. The fix consists in modifying the RecordThread constructor to accept separate values for input and output devices. Change-Id: I81fb5f4718428b54251e65d74b86e198ce15193e
Diffstat (limited to 'services/audioflinger/AudioFlinger.cpp')
-rw-r--r--services/audioflinger/AudioFlinger.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 5f5b041..89e9b52 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -1600,14 +1600,14 @@ audio_io_handle_t AudioFlinger::openInput(audio_module_handle_t module,
// Start record thread
// RecorThread require both input and output device indication to forward to audio
// pre processing modules
- audio_devices_t device = (*pDevices) | primaryOutputDevice_l();
-
thread = new RecordThread(this,
input,
reqSamplingRate,
reqChannels,
id,
- device, teeSink);
+ primaryOutputDevice_l(),
+ *pDevices,
+ teeSink);
mRecordThreads.add(id, thread);
ALOGV("openInput() created record thread: ID %d thread %p", id, thread);
if (pSamplingRate != NULL) *pSamplingRate = reqSamplingRate;