--- src/sys/dev/sound/pci/atiixp.c 2007/06/16 19:48:05 1.4 +++ src/sys/dev/sound/pci/atiixp.c 2007/06/16 20:07:19 1.5 @@ -114,7 +114,7 @@ struct atiixp_info { uint32_t dma_segs; int registered_channels; - struct spinlock *lock; + sndlock_t lock; }; #define atiixp_rd(_sc, _reg) \ @@ -747,7 +747,7 @@ atiixp_chip_post_init(void *arg) /* wait for the interrupts to happen */ timeout = 100; while (--timeout) { - msleep(sc, sc->lock, 0, "ixpslp", 1); + snd_mtxsleep(sc, sc->lock, 0, "ixpslp", 1); if (sc->codec_not_ready_bits) break; }