From b0ba06041249ad3cf4a3a50f40cc2a6364351bda Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Mon, 2 Feb 2004 18:32:06 +0000 Subject: - release resources for video overlay properly, don't rely on VIDIOC_OVERLAY(0) --- linux/drivers/media/common/saa7146_video.c | 1 + 1 file changed, 1 insertion(+) (limited to 'linux') diff --git a/linux/drivers/media/common/saa7146_video.c b/linux/drivers/media/common/saa7146_video.c index ce3093dcd..955917d02 100644 --- a/linux/drivers/media/common/saa7146_video.c +++ b/linux/drivers/media/common/saa7146_video.c @@ -1418,6 +1418,7 @@ static void video_close(struct saa7146_dev *dev, struct file *file) if( fh == vv->ov_data->fh ) { spin_lock_irqsave(&dev->slock,flags); saa7146_stop_preview(fh); + saa7146_res_free(fh, RESOURCE_DMA1_HPS|RESOURCE_DMA2_CLP); spin_unlock_irqrestore(&dev->slock,flags); } } -- cgit v1.2.3