]> git.baikalelectronics.ru Git - kernel.git/commit
[media] coda: avoid calling SEQ_END twice
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 9 Jul 2015 10:10:16 +0000 (07:10 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 17 Jul 2015 14:14:54 +0000 (11:14 -0300)
commit38916cf7e57e2ac478e5e5ea8400cbfb9f18bb13
tree5f86dd06a5f58b36ef8cf5020a8b840b5dfa0cba
parente6629e19d9c2f3c7027afdd4f31966dbdac9dda1
[media] coda: avoid calling SEQ_END twice

Allow coda_seq_end_work to be called multiple times, move the setting
of ctx->initialized from coda_start/stop_streaming() into
coda_start_encoding/decoding and coda_seq_end_work, respectively,
and skip the SEQ_END command in coda_seq_end_work if the context is
already deinitialized before.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-bit.c
drivers/media/platform/coda/coda-common.c