static void dma_io(int chan, uint32_t phyaddr, int size, unsigned int flags, unsigned int dir)\r
{\r
unsigned int mode;\r
+ unsigned char page;\r
\r
mask(chan);\r
outp(clrff_port[chan], 0);\r
if(flags & DMA_AUTO) mode |= MODE_AUTO;\r
outp(mode_port[chan], mode);\r
\r
+ page = (phyaddr >> 16) & 0xff;\r
+\r
if(IS_16BIT(chan)) {\r
phyaddr >>= 1;\r
size >>= 1;\r
\r
outp(addr_port[chan], phyaddr & 0xff);\r
outp(addr_port[chan], (phyaddr >> 8) & 0xff);\r
- outp(page_port[chan], (phyaddr >> 16) & 0xff);\r
+ outp(page_port[chan], page);\r
\r
size--;\r
outp(count_port[chan], size & 0xff);\r
static int cbfunc(void *buf, int size, void *cls);\r
static void print_usage(const char *argv0);\r
\r
-static int vol = 220;\r
+static int vol = 255;\r
static int quit;\r
\r
int main(int argc, char **argv)\r
if(audio_init() == -1) {\r
return 1;\r
}\r
- audio_setvolume(AUDIO_MASTER, vol);\r
+ audio_setvolume(AUDIO_MASTER, 255);\r
audio_setvolume(AUDIO_PCM, 255);\r
\r
for(i=1; i<argc; i++) {\r