patch-2.4.13 linux/drivers/sound/maestro3.c
Next file: linux/drivers/sound/nec_vrc5477.c
Previous file: linux/drivers/sound/ite8172.c
Back to the patch index
Back to the overall index
- Lines: 74
- Date:
Thu Oct 11 09:43:30 2001
- Orig file:
v2.4.12/linux/drivers/sound/maestro3.c
- Orig date:
Tue Oct 9 17:06:52 2001
diff -u --recursive --new-file v2.4.12/linux/drivers/sound/maestro3.c linux/drivers/sound/maestro3.c
@@ -172,7 +172,7 @@
#define SND_DEV_DSP16 5
#ifdef M_DEBUG
-static int debug=0;
+static int debug;
#define DPMOD 1 /* per module load */
#define DPSTR 2 /* per 'stream' */
#define DPSYS 3 /* per syscall */
@@ -365,7 +365,7 @@
return r;
}
-static struct m3_card *devs = NULL;
+static struct m3_card *devs;
/*
* I'm not very good at laying out functions in a file :)
@@ -1289,7 +1289,7 @@
if (s->dma_dac.mapped || !s->dma_dac.ready)
return 0;
- current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
add_wait_queue(&s->dma_dac.wait, &wait);
for (;;) {
spin_lock_irqsave(&s->lock, flags);
@@ -1301,7 +1301,7 @@
break;
if (nonblock) {
remove_wait_queue(&s->dma_dac.wait, &wait);
- current->state = TASK_RUNNING;
+ set_current_state(TASK_RUNNING);
return -EBUSY;
}
tmo = (count * HZ) / s->ratedac;
@@ -1312,7 +1312,7 @@
DPRINTK(DPCRAP,"dma timed out?? %ld\n",jiffies);
}
remove_wait_queue(&s->dma_dac.wait, &wait);
- current->state = TASK_RUNNING;
+ set_current_state(TASK_RUNNING);
if (signal_pending(current))
return -ERESTARTSYS;
return 0;
@@ -2251,7 +2251,7 @@
if(busywait) {
mdelay(delay1);
} else {
- current->state = TASK_UNINTERRUPTIBLE;
+ set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout((delay1 * HZ) / 1000);
}
@@ -2264,7 +2264,7 @@
if(busywait) {
mdelay(delay2);
} else {
- current->state = TASK_UNINTERRUPTIBLE;
+ set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout((delay2 * HZ) / 1000);
}
if(! try_read_vendor(card))
@@ -2958,8 +2958,8 @@
card->in_suspend++;
add_wait_queue(&card->suspend_queue, &wait);
- current->state = TASK_UNINTERRUPTIBLE;
+ set_current_state(TASK_UNINTERRUPTIBLE);
schedule();
remove_wait_queue(&card->suspend_queue, &wait);
- current->state = TASK_RUNNING;
+ set_current_state(TASK_RUNNING);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)