mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 11:48:58 -04:00
media: chips-media: wave5: Fix gray color on screen
When a decoder instance is created, the W5_CMD_ERR_CONCEAL register
should be initialized to 0. Otherwise, gray color is occasionally
displayed on the screen while decoding.
Fixes: 45d1a2b932 ("media: chips-media: wave5: Add vpuapi layer")
Cc: stable@vger.kernel.org
Signed-off-by: Jackson.lee <jackson.lee@chipsnmedia.com>
Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
b2c4bf0c10
commit
6bae4d5053
@@ -585,7 +585,7 @@ int wave5_vpu_build_up_dec_param(struct vpu_instance *inst,
|
||||
vpu_write_reg(inst->dev, W5_CMD_NUM_CQ_DEPTH_M1,
|
||||
WAVE521_COMMAND_QUEUE_DEPTH - 1);
|
||||
}
|
||||
|
||||
vpu_write_reg(inst->dev, W5_CMD_ERR_CONCEAL, 0);
|
||||
ret = send_firmware_command(inst, W5_CREATE_INSTANCE, true, NULL, NULL);
|
||||
if (ret) {
|
||||
wave5_vdi_free_dma_memory(vpu_dev, &p_dec_info->vb_work);
|
||||
|
||||
Reference in New Issue
Block a user