fixes misuses of snooze()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23112 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -205,7 +205,7 @@ auich_stream_commit_parms(auich_stream *stream)
|
||||
LOG(("channel reset finished, %x, %d\n", stream->base, i));
|
||||
break;
|
||||
}
|
||||
snooze(1);
|
||||
spin(1);
|
||||
}
|
||||
|
||||
if(i < 0) {
|
||||
@@ -375,7 +375,7 @@ auich_stream_delete(auich_stream *stream)
|
||||
LOG(("channel reset finished, %x, %d\n", stream->base, i));
|
||||
break;
|
||||
}
|
||||
snooze(1);
|
||||
spin(1);
|
||||
}
|
||||
|
||||
if(i < 0) {
|
||||
|
||||
@@ -85,7 +85,7 @@ auvia_codec_waitready(device_config *config)
|
||||
/* poll until codec not busy */
|
||||
for(i=0; (i<AUVIA_TIMEOUT) && (pci->read_io_32(config->nabmbar
|
||||
+ AUVIA_CODEC_CTL) & AUVIA_CODEC_BUSY) ; i++)
|
||||
snooze(1);
|
||||
spin(1);
|
||||
if(i>=AUVIA_TIMEOUT) {
|
||||
//PRINT(("codec busy\n"));
|
||||
return B_ERROR;
|
||||
@@ -101,7 +101,7 @@ auvia_codec_waitvalid(device_config *config)
|
||||
/* poll until codec valid */
|
||||
for(i=0; (i<AUVIA_TIMEOUT) && !(pci->read_io_32(config->nabmbar
|
||||
+ AUVIA_CODEC_CTL) & AUVIA_CODEC_PRIVALID) ; i++)
|
||||
snooze(1);
|
||||
spin(1);
|
||||
if(i>=AUVIA_TIMEOUT) {
|
||||
//PRINT(("codec invalid\n"));
|
||||
return B_ERROR;
|
||||
|
||||
@@ -68,7 +68,7 @@ es1370_codec_wait(device_config *config)
|
||||
if ((es1370_reg_read_32(config, ES1370_REG_STATUS) & STAT_CWRIP) == 0)
|
||||
return B_OK;
|
||||
if (i > 100)
|
||||
snooze(1);
|
||||
spin(1);
|
||||
}
|
||||
return B_TIMED_OUT;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ dump_hardware_regs(device_config *config)
|
||||
LOG(("EMU_IPR = %#08x\n",emuxki_reg_read_32(config, EMU_IPR)));
|
||||
LOG(("EMU_INTE = %#08x\n",emuxki_reg_read_32(config, EMU_INTE)));
|
||||
LOG(("EMU_HCFG = %#08x\n",emuxki_reg_read_32(config, EMU_HCFG)));
|
||||
snooze(100);
|
||||
snooze(1000);
|
||||
/*emuxki_reg_write_8(config, EMU_AC97ADDRESS, EMU_AC97ADDRESS_READY);
|
||||
LOG(("EMU_AC97ADDRESS_READY = %#08x\n", emuxki_reg_read_16(config, EMU_AC97DATA)));*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user