mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 18:12:48 +00:00
media: venus: fix EOS handling in decoder stop command
Use firmware version based check to assign correct device address for EOS buffer to fix the EOS handling with different firmware version. Reviewed-by: Konrad Dybcio <[email protected]> Tested-by: Nathan Hebert <[email protected]> Signed-off-by: Vikash Garodia <[email protected]> Signed-off-by: Viswanath Boma <[email protected]> Signed-off-by: Dikshita Agarwal <[email protected]> Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
938beb48f7
commit
47f867cb1b
@@ -551,7 +551,7 @@ vdec_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *cmd)
|
||||
|
||||
fdata.buffer_type = HFI_BUFFER_INPUT;
|
||||
fdata.flags |= HFI_BUFFERFLAG_EOS;
|
||||
if (IS_V6(inst->core))
|
||||
if (IS_V6(inst->core) && is_fw_rev_or_older(inst->core, 1, 0, 87))
|
||||
fdata.device_addr = 0;
|
||||
else
|
||||
fdata.device_addr = 0xdeadb000;
|
||||
|
||||
Reference in New Issue
Block a user