diff options
author | Glenn Kasten <gkasten@google.com> | 2012-02-02 14:16:03 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-02-24 13:31:26 -0800 |
commit | 23c9c7401797223a41cbbf22b64ffb802b4f1a6b (patch) | |
tree | a478b3c547ad687aea5e83ea00b784e5434a2c2f /libs/ui/FramebufferNativeWindow.cpp | |
parent | be3835c64dc782c1c40ebf75badd1db47aff7b1a (diff) |
Fix tracking of hardware state for dump
At end of AudioFlinger::onFirstRef(), the hardware status was being left
in wrong state. It should be AUDIO_HW_IDLE but was AUDIO_HW_INIT.
mHardwareStatus was being set to AUDIO_HW_OUTPUT_OPEN too early, and so
a return would leave it in the wrong state until next hardware operation.
Take the hardware lock for dev->get_parameters, and update mHardwareStatus
before and after.
Keep hardware lock only for the duration of the dev->set_parameters.
Rename two constants in enum hardware_call_state to have the prefix
AUDIO_HW so they follow the naming conventions.
Add comments.
Change-Id: I6c7450b11f9b13adaeef9cec874333e478a58fc0
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
0 files changed, 0 insertions, 0 deletions