Lines Matching refs:hwdep
41 struct snd_hwdep *hwdep = opl3->hwdep;
43 mutex_lock(&hwdep->open_mutex);
44 if (hwdep->used) {
45 mutex_unlock(&hwdep->open_mutex);
48 hwdep->used++;
49 mutex_unlock(&hwdep->open_mutex);
72 struct snd_hwdep *hwdep;
83 hwdep = opl3->hwdep;
84 mutex_lock(&hwdep->open_mutex);
85 hwdep->used--;
86 mutex_unlock(&hwdep->open_mutex);
87 wake_up(&hwdep->open_wait);