OSDN Git Service

AudioFlinger: fix RecordThread initial device
authorEric Laurent <elaurent@google.com>
Sat, 2 Feb 2013 01:57:04 +0000 (17:57 -0800)
committerEric Laurent <elaurent@google.com>
Sat, 2 Feb 2013 01:57:04 +0000 (17:57 -0800)
commitd3922f72601d82c6fc067a98916fda0bd1291c5f
tree65611e81a91807c46758ae234a802cdb7c72c3e2
parent2a330d6cbb25f0cdd6208aeee53b4a3b88dae3b0
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
services/audioflinger/AudioFlinger.cpp
services/audioflinger/Threads.cpp
services/audioflinger/Threads.h