Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c031d52c authored by Linus Torvalds's avatar Linus Torvalds
Browse files
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6:
  saa7146: stop DMA before de-allocating DMA scatter/gather page buffers
  V4L/DVB: saa7134: remove stray unlock_kernel
parents c1c0cbb8 ba9e9f3c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1333,9 +1333,9 @@ static void buffer_release(struct videobuf_queue *q, struct videobuf_buffer *vb)

	DEB_CAP(("vbuf:%p\n",vb));

	release_all_pagetables(dev, buf);

	saa7146_dma_free(dev,q,buf);

	release_all_pagetables(dev, buf);
}

static struct videobuf_queue_ops video_qops = {
+3 −5
Original line number Diff line number Diff line
@@ -93,9 +93,9 @@ static int ts_open(struct file *file)
	dprintk("open dev=%s\n", video_device_node_name(vdev));
	err = -EBUSY;
	if (!mutex_trylock(&dev->empress_tsq.vb_lock))
		goto done;
		return err;
	if (atomic_read(&dev->empress_users))
		goto done_up;
		goto done;

	/* Unmute audio */
	saa_writeb(SAA7134_AUDIO_MUTE_CTRL,
@@ -105,10 +105,8 @@ static int ts_open(struct file *file)
	file->private_data = dev;
	err = 0;

done_up:
	mutex_unlock(&dev->empress_tsq.vb_lock);
done:
	unlock_kernel();
	mutex_unlock(&dev->empress_tsq.vb_lock);
	return err;
}