summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2020-05-09 22:06:42 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-06-11 19:18:37 +0200
commita8876c22eab9a871834f85de83e98bbf7e6e264d (patch)
treea3c96a29a0e6fdd8d007d2807b2d281ce130bc20 /drivers/media
parentmedia: atomisp: improve ACPI/DMI detection logs (diff)
downloadlinux-a8876c22eab9a871834f85de83e98bbf7e6e264d.tar.xz
linux-a8876c22eab9a871834f85de83e98bbf7e6e264d.zip
media: cedrus: Program output format during each run
Previously, the output format was programmed as part of the ioctl() handler. However, this has two problems: 1) If there are multiple active streams with different output formats, the hardware will use whichever format was set last for both streams. Similarly, an ioctl() done in an inactive context will wrongly affect other active contexts. 2) The registers are written while the device is not actively streaming. To enable runtime PM tied to the streaming state, all hardware access needs to be moved inside cedrus_device_run(). The call to cedrus_dst_format_set() is now placed just before the codec-specific callback that programs the hardware. Cc: <stable@vger.kernel.org> Fixes: 50e761516f2b ("media: platform: Add Cedrus VPU decoder driver") Suggested-by: Jernej Skrabec <jernej.skrabec@siol.net> Suggested-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Samuel Holland <samuel@sholland.org> Tested-by: Jernej Skrabec <jernej.skrabec@siol.net> Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net> Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media')
0 files changed, 0 insertions, 0 deletions