media: mtk-vcodec: Always signal source change event on format change
authorTomasz Figa <tfiga@chromium.org>
Tue, 9 Jan 2018 08:42:47 +0000 (03:42 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 26 Feb 2018 12:41:36 +0000 (07:41 -0500)
commitc2e0e1ba6c5c25e45ff3da1f16e013c5910bee58
treecdfb9a3a96fb0b59db15f6fb8cc7a0ac9fefc8e5
parent50e7044535537b2a54c7ab798cd34c7f6d900bd2
media: mtk-vcodec: Always signal source change event on format change

Currently the driver signals the source change event only in case of
a midstream resolution change, however the initial format detection
is also defined as a source change by the V4L2 codec API specification.
Fix this by signaling the event after the initial header is parsed as
well.

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Wu-Cheng Li <wuchengli@chromium.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c