decoder: set cap_pix_fmt in vidioc_vdec_s_fmt [1/1]
authorSong Zhao <song.zhao@amlogic.com>
Thu, 12 Mar 2020 17:31:27 +0000 (10:31 -0700)
committerSong Zhao <song.zhao@amlogic.com>
Thu, 12 Mar 2020 17:33:45 +0000 (09:33 -0800)
commit6e0b83c43ffb9e4eac67a754abbeb8575bacaad2
tree4fb1416a9e3ba73a97aefd7150153b7ea7c5ef1e
parente9d38915a49151458f633f9534b910ce1788c6df
decoder: set cap_pix_fmt in vidioc_vdec_s_fmt [1/1]

PD#SWPL-21954

Problem:
vidioc_vdec_g_fmt() is not the correct place to set this fmt

Solution:
set cap_pix_fmt in vidioc_vdec_s_fmt()

Verify:
U212 with v4l2-uvm-test

Change-Id: I6174c872cb459ee7e1236d0af5dbdbbdfbd6f8ba
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
drivers/amvdec_ports/aml_vcodec_dec.c