mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 15:13:52 +00:00
media: atomisp: Initialize sequence counters to 0 instead of -1
When starting a new stream initialize the sequence counters to 0 instead of -1. This fixes the following libcamera warning: Zero sequence expected for first frame (got 4294967295) Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
455132315e
commit
153d69d26f
@ -954,9 +954,9 @@ int atomisp_start_streaming(struct vb2_queue *vq, unsigned int count)
|
||||
spin_lock_irqsave(&isp->lock, irqflags);
|
||||
asd->streaming = true;
|
||||
spin_unlock_irqrestore(&isp->lock, irqflags);
|
||||
atomic_set(&asd->sof_count, -1);
|
||||
atomic_set(&asd->sequence, -1);
|
||||
atomic_set(&asd->sequence_temp, -1);
|
||||
atomic_set(&asd->sof_count, 0);
|
||||
atomic_set(&asd->sequence, 0);
|
||||
atomic_set(&asd->sequence_temp, 0);
|
||||
|
||||
asd->params.dis_proj_data_valid = false;
|
||||
asd->latest_preview_exp_id = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user