if (err < 0)
                        return err;
 
-               mdelay(20); /* Delay needed after setting the interface */
+               msleep(20); /* Delay needed after setting the interface */
 
                /* Vendor mode switch cmd is required. */
                if (fmt->formats & SNDRV_PCM_FMTBIT_DSD_U32_BE) {
                                return err;
 
                }
-               mdelay(20);
+               msleep(20);
        }
        return 0;
 }
        switch (USB_ID_VENDOR(chip->usb_id)) {
        case 0x23ba: /* Playback Design */
        case 0x0644: /* TEAC Corp. */
-               mdelay(50);
+               msleep(50);
                break;
        }
 }
         */
        if (USB_ID_VENDOR(chip->usb_id) == 0x23ba &&
            (requesttype & USB_TYPE_MASK) == USB_TYPE_CLASS)
-               mdelay(20);
+               msleep(20);
 
        /*
         * "TEAC Corp." products need a 20ms delay after each
         */
        if (USB_ID_VENDOR(chip->usb_id) == 0x0644 &&
            (requesttype & USB_TYPE_MASK) == USB_TYPE_CLASS)
-               mdelay(20);
+               msleep(20);
 
        /* ITF-USB DSD based DACs functionality need a delay
         * after each class compliant request
         */
        if (is_itf_usb_dsd_dac(chip->usb_id)
            && (requesttype & USB_TYPE_MASK) == USB_TYPE_CLASS)
-               mdelay(20);
+               msleep(20);
 
        /* Zoom R16/24, Logitech H650e, Jabra 550a needs a tiny delay here,
         * otherwise requests like get/set frequency return as failed despite
             chip->usb_id == USB_ID(0x046d, 0x0a46) ||
             chip->usb_id == USB_ID(0x0b0e, 0x0349)) &&
            (requesttype & USB_TYPE_MASK) == USB_TYPE_CLASS)
-               mdelay(1);
+               usleep_range(1000, 2000);
 }
 
 /*