OSDN Git Service

audioflinger: fix pre processing transfer between record threads.
authorEric Laurent <elaurent@google.com>
Fri, 3 Oct 2014 02:41:47 +0000 (19:41 -0700)
committerEric Laurent <elaurent@google.com>
Fri, 3 Oct 2014 02:41:47 +0000 (19:41 -0700)
commit1b92868010b5c1409692a86f6b27e4a265b64c1a
treeaa514a65d23d1bebbceef49cc6b7f2662c7bad76
parentd8b03abf1d003e2940a19f0071ea2892689dd10e
audioflinger: fix pre processing transfer between record threads.

Fix two problems remaining with pre processing effects transfer from
one record thread to the next in case of tear down due to device connection:
1 - the enabled state of the effects was not communicated to the new HAL
input stream.
2 - the effects saved in orphan chains list were not transfered to the
new thread when a AudioRecord was created.

Bug: 17757378.
Change-Id: I0923c98470db3b51154dc89846157780a4c21e86
services/audioflinger/AudioFlinger.cpp
services/audioflinger/Effects.cpp
services/audioflinger/Effects.h
services/audioflinger/Threads.cpp