OSDN Git Service

audio HAL: reverse mutex locking order
authorEric Laurent <elaurent@google.com>
Sat, 20 Jun 2015 00:49:17 +0000 (17:49 -0700)
committerEric Laurent <elaurent@google.com>
Sat, 20 Jun 2015 00:50:00 +0000 (17:50 -0700)
commit703180998f088cc83ff8e58f5881c65963d557a8
tree4b214a344dd765dbf3960cb2c29d528920a05042
parent8e350b1a1d148ebf85e2c246e9f491fcdee51bdf
audio HAL: reverse mutex locking order

Do not use main audio HAL mutex but a specific stream mutex when
preventing control thread starvation by playback or capture threads.
This will prevent systematic locking of main HAL mutex in read ot write
and avoid glitches.

Bug: 21880828.
Bug: 18489202.

Change-Id: I3054e0d93b823bd9d2fb84a49e9c5bbbe728262a
modules/usbaudio/audio_hal.c