Subject: Re: TC bba audio problem on DEC3000/300
To: None <thorpej@zembu.com>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-alpha
Date: 07/18/2000 08:19:06
In <20000717103728.K1744@dr-evil.z.zembu.com>
thorpej@zembu.com wrote:

>  > BTW, should bba_round_blocksize() return PAGE_SIZE or
>  > IOASIC_DMA_BLOCKSIZE ? (I'm not familiar with audio driver...)
> 
> No, IOASIC_DMA_BLOCKSIZE is correct.  Note, it doesn't return that,
> it merely rounds the buffer up to that size.

Well, you mean about bba_round_buffersize()?

bba_round_blocksize() still returns PAGE_SIZE.
(or uvm/uvm_extern.h is no longer needed?)

--- bba.c.orig	Tue Jul 18 08:09:44 2000
+++ bba.c	Tue Jul 18 08:10:15 2000
@@ -45,8 +45,6 @@
 #include <machine/autoconf.h>
 #include <machine/cpu.h>
 
-#include <uvm/uvm_extern.h>	/* for PAGE_SIZE */
-
 #include <sys/audioio.h>
 #include <dev/audio_if.h>
 
@@ -712,7 +710,7 @@
 	void *addr;
 	int blk;
 {
-	return (PAGE_SIZE);
+	return (IOASIC_DMA_BLOCKSIZE);
 }
 
 
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp