#include <linux/pm.h>
#include <linux/init.h>
#include <linux/slab.h>
-#include <linux/mutex.h>
-
#include <sound/core.h>
#include <sound/control.h>
#include <sound/info.h>
ins = chip->dsp_spos_instance;
- mutex_lock(&chip->spos_mutex);
+ down(&chip->spos_mutex);
snd_iprintf(buffer,"%04x %s:\n",scb->address,scb->scb_name);
for (col = 0,j = 0;j < 0x10; j++,col++) {
scb->task_entry->address);
snd_iprintf(buffer,"index [%d] ref_count [%d]\n",scb->index,scb->ref_count);
- mutex_unlock(&chip->spos_mutex);
+ up(&chip->spos_mutex);
}
#endif
void cs46xx_dsp_remove_scb (struct snd_cs46xx *chip, struct dsp_scb_descriptor * scb)
{
struct dsp_spos_instance * ins = chip->dsp_spos_instance;
- unsigned long flags;
/* check integrety */
snd_assert ( (scb->index >= 0 &&
goto _end);
#endif
- spin_lock_irqsave(&scb->lock, flags);
+ spin_lock(&scb->lock);
_dsp_unlink_scb (chip,scb);
- spin_unlock_irqrestore(&scb->lock, flags);
+ spin_unlock(&scb->lock);
cs46xx_dsp_proc_free_scb_desc(scb);
snd_assert (scb->scb_symbol != NULL, return );
entry->private_data = scb_info;
entry->mode = S_IFREG | S_IRUGO | S_IWUSR;
+ entry->c.text.read_size = 512;
entry->c.text.read = cs46xx_dsp_proc_scb_info_read;
if (snd_info_register(entry) < 0) {