ASoC: Samsung: Protect the dma pointer position access
authorVikas C Sajjan <vikas.sajjan@samsung.com>
Fri, 14 Sep 2012 09:23:35 +0000 (18:23 +0900)
committerGerrit <chrome-bot@google.com>
Thu, 20 Sep 2012 07:16:31 +0000 (00:16 -0700)
commitc3940ee39d184ebfdda3e5186014c47c394fff50
tree89ab2e423dc22d2ac5c377f8c5bcc8685f058eb7
parent04414063d8155ed25315793cfee4c5011bb2021a
ASoC: Samsung: Protect the dma pointer position access

Takes spin lock to protect prtd->dma_pos from
concurrent access by the driver and the tasklet

BUG=chrome-os-partner:12565
TEST=ran multimedia tests for audio, video and webgl

Change-Id: I29054e75d01eb7a10401dbc75a17fca13e24ea0e
Signed-off-by: Abhinav Kochhar <abhinav@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/33298
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Vikas Sajjan <vikas.sajjan@samsung.com>
sound/soc/samsung/dma.c