summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-02-02 18:32:06 +0000
committerMichael Hunold <devnull@localhost>2004-02-02 18:32:06 +0000
commitb0ba06041249ad3cf4a3a50f40cc2a6364351bda (patch)
tree93b6d7d577de937228320be3ea6ce7f435053358 /linux
parent156d99cc54a5b0ae2358d202ad8866aec98679e8 (diff)
downloadmediapointer-dvb-s2-b0ba06041249ad3cf4a3a50f40cc2a6364351bda.tar.gz
mediapointer-dvb-s2-b0ba06041249ad3cf4a3a50f40cc2a6364351bda.tar.bz2
- release resources for video overlay properly, don't rely on VIDIOC_OVERLAY(0)
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/common/saa7146_video.c1
1 files changed, 1 insertions, 0 deletions
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);
}
}