Hi just seeing that in MIXER sources (own soundcards drivers) uses DISABLE()/ENABLE() function want to know if it's possible (and safe) to change'em with a mutex/semaphore or just remove from code as they are not important/usefull.
Disable/Enable are on 3 _ctrl.c sources: emu10kx_ctrl.c, fm801_ctrl.c and sb128_ctrl.c
On emu10kx_ctrl.c, fm801_ctrl.c they are commented out (by me, since V1.39 or alike) and seems ok, as nobody complained "system freezes, doesn't work for me now,....):
void codec_write(unsigned short reg, unsigned short val) { int i; //IExec->Disable(); for(i = 0; i < 10000; i++) if( !(dev->InWord(iobase + FM801_AC97_CMD) & (1<<9)) ) goto ok1; #ifdef _DEBUG_ IExec->DebugPrintF("Couldn't write to ac97!\n"); #endif ok1: dev->OutWord(iobase + FM801_AC97_DATA, val); dev->OutWord(iobase + FM801_AC97_CMD, reg); //IExec->Enable(); } void codec_write(unsigned short reg, unsigned short val) { //Disable(); if(Audigy == FALSE) { dev->OutByte(iobase + AC97ADDRESS, reg); dev->OutWord(iobase + AC97DATA, val); } else emu10k1_set_volume_gpr(reg, val); //Enable(); }Is it ok to just comment out? Or is better coding to change'em to use Mutex/Semaphore? TIA