diff options
| author | Hans de Goede <[email protected]> | 2024-03-17 21:45:25 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2024-04-26 10:10:18 +0100 |
| commit | 153d69d26f8ea90775ca7800a222845f95039b22 (patch) | |
| tree | b613079aea4868fae312b033f0455e43e7ce0c8e | |
| parent | 455132315ed50ed615bd3a45797ac9e9f8a941e5 (diff) | |
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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
| -rw-r--r-- | drivers/staging/media/atomisp/pci/atomisp_ioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp_ioctl.c b/drivers/staging/media/atomisp/pci/atomisp_ioctl.c index 756f70ac073b..d602bda134f9 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_ioctl.c +++ b/drivers/staging/media/atomisp/pci/atomisp_ioctl.c @@ -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; |