patch-2.2.3 linux/drivers/sound/es1370.c
Next file: linux/drivers/sound/es1371.c
Previous file: linux/drivers/sound/ad1848_mixer.h
Back to the patch index
Back to the overall index
-  Lines: 26
-  Date:
Sun Mar  7 15:22:06 1999
-  Orig file: 
v2.2.2/linux/drivers/sound/es1370.c
-  Orig date: 
Fri Jan  8 22:36:10 1999
diff -u --recursive --new-file v2.2.2/linux/drivers/sound/es1370.c linux/drivers/sound/es1370.c
@@ -1228,8 +1228,6 @@
 	if (remap_page_range(vma->vm_start, virt_to_phys(db->rawbuf), size, vma->vm_page_prot))
 		return -EAGAIN;
 	db->mapped = 1;
-	vma->vm_file = file;
-	file->f_count++;
 	return 0;
 }
 
@@ -1597,6 +1595,7 @@
 	down(&s->open_sem);
 	if (file->f_mode & FMODE_WRITE) {
 		stop_dac2(s);
+		synchronize_irq();
 		dealloc_dmabuf(&s->dma_dac2);
 	}
 	if (file->f_mode & FMODE_READ) {
@@ -1725,8 +1724,6 @@
 	if (remap_page_range(vma->vm_start, virt_to_phys(s->dma_dac1.rawbuf), size, vma->vm_page_prot))
 		return -EAGAIN;
 	s->dma_dac1.mapped = 1;
-	vma->vm_file = file;
-	file->f_count++;
 	return 0;
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)