if (!(list->flags & SNDRV_SEQ_INSTR_FLG_DIRECT)) {
spin_lock_irqsave(&list->ops_lock, list->ops_flags);
} else {
- mutex_lock(&list->ops_mutex);
+ down(&list->ops_mutex);
}
}
if (!(list->flags & SNDRV_SEQ_INSTR_FLG_DIRECT)) {
spin_unlock_irqrestore(&list->ops_lock, list->ops_flags);
} else {
- mutex_unlock(&list->ops_mutex);
+ up(&list->ops_mutex);
}
}
return NULL;
spin_lock_init(&list->lock);
spin_lock_init(&list->ops_lock);
- mutex_init(&list->ops_mutex);
+ init_MUTEX(&list->ops_mutex);
list->owner = -1;
return list;
}