|
@@ -266,7 +266,6 @@ static void mx3_videobuf_queue(struct vb2_buffer *vb)
|
|
|
struct idmac_channel *ichan = mx3_cam->idmac_channel[0];
|
|
|
struct idmac_video_param *video = &ichan->params.video;
|
|
|
const struct soc_mbus_pixelfmt *host_fmt = icd->current_fmt->host_fmt;
|
|
|
- unsigned long flags;
|
|
|
dma_cookie_t cookie;
|
|
|
size_t new_size;
|
|
|
|
|
@@ -328,7 +327,7 @@ static void mx3_videobuf_queue(struct vb2_buffer *vb)
|
|
|
memset(vb2_plane_vaddr(vb, 0), 0xaa, vb2_get_plane_payload(vb, 0));
|
|
|
#endif
|
|
|
|
|
|
- spin_lock_irqsave(&mx3_cam->lock, flags);
|
|
|
+ spin_lock_irq(&mx3_cam->lock);
|
|
|
list_add_tail(&buf->queue, &mx3_cam->capture);
|
|
|
|
|
|
if (!mx3_cam->active)
|
|
@@ -351,7 +350,7 @@ static void mx3_videobuf_queue(struct vb2_buffer *vb)
|
|
|
if (mx3_cam->active == buf)
|
|
|
mx3_cam->active = NULL;
|
|
|
|
|
|
- spin_unlock_irqrestore(&mx3_cam->lock, flags);
|
|
|
+ spin_unlock_irq(&mx3_cam->lock);
|
|
|
error:
|
|
|
vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
|
|
|
}
|