]> git.baikalelectronics.ru Git - kernel.git/commit
media: coda: set codec earlier
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 8 Apr 2019 12:32:47 +0000 (08:32 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Apr 2019 15:51:52 +0000 (11:51 -0400)
commitd80d30d210987e2ae6bece5562feeabb567cf8ec
tree3e1bfaf35a3e680909b91e3c8cdbcd0777ec4230
parente6ff9b6f3953d4cc8de12182e3e774e73474cc70
media: coda: set codec earlier

The chosen codec depends on the coded format, which is known as soon as
the S_FMT call on the coded queue. This allows to use the codec in
callbacks that may be called before start_streaming, such as buf_queue.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/coda/coda-common.c