summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/saa7146_video.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-01-14 21:08:58 +0000
committerMichael Hunold <devnull@localhost>2004-01-14 21:08:58 +0000
commit3cdf06b0f1722016220e97409fe2f21b222bda33 (patch)
tree15d300cd49e258c106b9a6fcfbb463099939d7bf /linux/drivers/media/common/saa7146_video.c
parent89d39d7ea0a4d7222704a380c6330ea9d0c47780 (diff)
downloadmediapointer-dvb-s2-3cdf06b0f1722016220e97409fe2f21b222bda33.tar.gz
mediapointer-dvb-s2-3cdf06b0f1722016220e97409fe2f21b222bda33.tar.bz2
- bit masks are evil: disable the right video dma upon device close, otherwise
severe memory damage can occur...
Diffstat (limited to 'linux/drivers/media/common/saa7146_video.c')
-rw-r--r--linux/drivers/media/common/saa7146_video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/common/saa7146_video.c b/linux/drivers/media/common/saa7146_video.c
index 819019339..13bb853e9 100644
--- a/linux/drivers/media/common/saa7146_video.c
+++ b/linux/drivers/media/common/saa7146_video.c
@@ -752,10 +752,10 @@ static int video_end(struct saa7146_fh *fh, struct file *file)
if (0 != (fmt->flags & FORMAT_IS_PLANAR)) {
resource = RESOURCE_DMA1_HPS|RESOURCE_DMA2_CLP|RESOURCE_DMA3_BRS;
- dmas = 0x00700000;
+ dmas = MASK_22 | MASK_21 | MASK_20;
} else {
resource = RESOURCE_DMA1_HPS;
- dmas = 0x00100000;
+ dmas = MASK_20;
}
saa7146_res_free(fh, resource);