diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2013-05-23 10:43:00 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-08 19:45:58 -0300 |
commit | fcb62825e7289f937f4af26a741e3af8da9242de (patch) | |
tree | 27ec1edfc3af2eea2f6b34bfdad2b837ce202ec2 /net | |
parent | d35167a1d69ae027615d4345a678555bf1c6fed6 (diff) |
[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 <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions