if(p->mem[0].size == 64){So what happens if neither size is 64? Crash.
ctlr->port = p->mem[0].bar & ~3;
ctlr->mixport = p->mem[1].bar & ~3;
} else if(p->mem[1].size == 64){
ctlr->port = p->mem[1].bar & ~3;
ctlr->mixport = p->mem[0].bar & ~3;
}
My pci was showing sizes of 1024 and 256 for the audio device.
This is what I did to get it working:
ctlr->port = p->mem[1].bar & ~3;
ctlr->mixport = p->mem[0].bar & ~3;
0 comments:
Post a Comment