patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / sound / oss / dmasound / dac3550a.c
index 82bc6bf..fadf33e 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <linux/module.h>
 #include <linux/slab.h>
+#include <linux/delay.h>
 #include <linux/proc_fs.h>
 #include <linux/ioport.h>
 #include <linux/sysctl.h>
@@ -97,14 +98,14 @@ int daca_leave_sleep(void)
        /* Do a short sleep, just to make sure I2C bus is awake and paying
         * attention to us
         */
-       wait_ms(20);
+       msleep(20);
        /* Write the sample rate reg the value it needs */
        i2c_smbus_write_byte_data(daca_client, 1, 8);
        daca_set_volume(cur_left_vol >> 5, cur_right_vol >> 5);
        /* Another short delay, just to make sure the other I2C bus writes
         * have taken...
         */
-       wait_ms(20);
+       msleep(20);
        /* Write the global config reg - invert right power amp,
         * DAC on, use 5-volt mode */
        i2c_smbus_write_byte_data(daca_client, 3, 0x45);