Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1692 → Rev 1695

/drivers/audio/a5536/geode.c
48,6 → 48,7
int CurrentPowerState;
 
addr_t buffer;
addr_t buffer_dma;
addr_t prd_dma;
 
addr_t irq_line;
245,6 → 246,7
 
addr_t buffer = geode.buffer;
addr_t dma = GetPgAddr(geode.buffer);
geode.buffer_dma = dma;
 
geode.prd_dma = (((addr_t)prd_tab) & 4095) + GetPgAddr((void*)prd_tab);
 
478,6 → 480,8
return 0;
}
 
printf("AMD Geode CS5536 audio driver\n");
 
if( FindPciDevice() == FALSE)
{
dbgprintf("Device not found\n");
545,7 → 549,10
case DEV_GET_POS:
if(io->out_size==4)
{
*outp = ctrl_read_32(0x60)>>2;
u32_t dma;
dma = ctrl_read_32(0x60);
dma-= geode.buffer_dma;
*outp = (dma & 16383)>>2;
return 0;
}
break;