From: Philipp Zabel Date: Thu, 23 May 2013 13:43:00 +0000 (-0300) Subject: [media] coda: replace completion with mutex X-Git-Tag: v3.11-rc1~17^2~307 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcb62825e7289f937f4af26a741e3af8da9242de;p=pandora-kernel.git [media] coda: replace completion with mutex Not only do we need to wait for job completion when we want to call a command on the CODA in start/stop_streaming, we also need to make sure that a new job doesn't start before the command finished. Use a mutex to lock the coda command handling. On timeout, the device_run job must be marked as finished and the mutex released, as otherwise coda_release will block. Signed-off-by: Philipp Zabel Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed