int msnd_send_dsp_cmd(multisound_dev_t *dev, BYTE cmd) { unsigned long flags; spin_lock_irqsave(&dev->lock, flags); if (msnd_wait_HC0(dev) == 0) { outb(cmd, dev->io + HP_CVR); spin_unlock_irqrestore(&dev->lock, flags); return 0; } spin_unlock_irqrestore(&dev->lock, flags); printk(KERN_DEBUG LOGNAME ": Send DSP command timeout\n"); return -EIO; }
int msnd_send_dsp_cmd(multisound_dev_t *dev, BYTE cmd) { unsigned long flags; spin_lock_irqsave(&dev->lock, flags); if (msnd_wait_HC0(dev) == 0) { msnd_outb(cmd, dev->io + HP_CVR); spin_unlock_irqrestore(&dev->lock, flags); return 0; } spin_unlock_irqrestore(&dev->lock, flags); ; return -EIO; }