]> 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)
commit70499af2b8673633e5e30225be106e622cd04354
tree3e1bfaf35a3e680909b91e3c8cdbcd0777ec4230
parent1f68089f7c7f4c169e513d166539307d83233676
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