OSDN Git Service

usb audio: fix set_parameters read/write concurrency
authorEric Laurent <elaurent@google.com>
Tue, 5 Aug 2014 03:29:17 +0000 (20:29 -0700)
committerEric Laurent <elaurent@google.com>
Wed, 6 Aug 2014 21:18:26 +0000 (14:18 -0700)
commit05333d458d1c946a17c127372d3ff82558f38ee6
tree6024386d213882a6b7b5cf149d740a120bdbee7d
parentba3c1a972e113f3bdf1c76a26e89505c39c981d3
usb audio: fix set_parameters read/write concurrency

Do not read the ALSA PCM device configuration when playback
or capture is active.
Do not force ALSA profile update if card and device passed
to out/in_set_parameters() do not change.
Hold the main HAL lock when closing or opening the
ALSA PCM device.

Bug: 15520724.

Change-Id: I2b6087ed46ce7433de0b6dd8b24ec10de2e55d21
modules/usbaudio/audio_hw.c