commit | da3592c51044c09bb822db6da67b5760fc0088f1 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Mon Oct 06 14:04:38 2014 -0700 |
committer | Eric Laurent <elaurent@google.com> | Mon Oct 06 15:25:41 2014 -0700 |
tree | 918c196c773bedb1d04bb47423edff0950e99af3 | |
parent | 691e7e44c429741e8e860f3027eff413c1191c98 [diff] |
audio: fix deadlock with echo reference access There is a problem with mutex acquisition order when removing or adding an echo reference from do_input_standby_l() or start_input_stream(): the output stream mutex is acquired after the audio device mutex creating a potential cross deadlock as the required order is output stream mutex then audio device mutex. Bug: 17830596. Change-Id: I465f4eeb1f1f2e76d6cc3d685d96e4758c6bc473