|
@@ -996,8 +996,6 @@ zoran_jpg_queue_frame (struct file *file,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
- spin_lock_irqsave(&zr->spinlock, flags);
|
|
|
|
-
|
|
|
|
if (fh->jpg_buffers.active == ZORAN_FREE) {
|
|
if (fh->jpg_buffers.active == ZORAN_FREE) {
|
|
if (zr->jpg_buffers.active == ZORAN_FREE) {
|
|
if (zr->jpg_buffers.active == ZORAN_FREE) {
|
|
zr->jpg_buffers = fh->jpg_buffers;
|
|
zr->jpg_buffers = fh->jpg_buffers;
|
|
@@ -1016,6 +1014,8 @@ zoran_jpg_queue_frame (struct file *file,
|
|
zr36057_enable_jpg(zr, mode);
|
|
zr36057_enable_jpg(zr, mode);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ spin_lock_irqsave(&zr->spinlock, flags);
|
|
|
|
+
|
|
if (!res) {
|
|
if (!res) {
|
|
switch (zr->jpg_buffers.buffer[num].state) {
|
|
switch (zr->jpg_buffers.buffer[num].state) {
|
|
case BUZ_STATE_DONE:
|
|
case BUZ_STATE_DONE:
|