VOGONS


First post, by snipe3687

User metadata
Rank Member
Rank
Member

Hello everyone,
For a couple weeks now, I have been trying to cobble together a sort of driver that I can use for my projects. I'm trying to move away from using EEPROMs on my boards, at least for now. I've been following the datasheet for the chip very closely and have been essentially trying to use the hostload process to wake up the card and put it into config mode, send the SLAM config to set all the variables like address, interrupt, DMA, etc., enable the external OPL3 chip, set mixer levels and enable digital sound output. the code runs but unfortunately, it doesn't seem to actually do what I need it to do.
I would appreciate if someone with some knowledge of these chips can take a look at my code and see if they can understand what I'm doing wrong.
In addition to following the datasheet closely, I've been trying to follow known-working code examples from other projects that people have made. I'm not trying to do anything too fancy I don't think but I'm not all too great with coding yet so I'm sure I made some silly mistakes here and there. I will have it attached here. If someone could please take some time out of their busy life to help a noob sort out some minor issues I would very much appreciate it.

Reply 1 of 1, by snipe3687

User metadata
Rank Member
Rank
Member

nvm. it was an extremely stupid error. init works flawlessly now.