Lines Matching refs:hwdep
55 struct snd_hwdep *hwdep = opl3->hwdep; in snd_opl3_synth_setup() local
57 mutex_lock(&hwdep->open_mutex); in snd_opl3_synth_setup()
58 if (hwdep->used) { in snd_opl3_synth_setup()
59 mutex_unlock(&hwdep->open_mutex); in snd_opl3_synth_setup()
62 hwdep->used++; in snd_opl3_synth_setup()
63 mutex_unlock(&hwdep->open_mutex); in snd_opl3_synth_setup()
86 struct snd_hwdep *hwdep; in snd_opl3_synth_cleanup() local
97 hwdep = opl3->hwdep; in snd_opl3_synth_cleanup()
98 mutex_lock(&hwdep->open_mutex); in snd_opl3_synth_cleanup()
99 hwdep->used--; in snd_opl3_synth_cleanup()
100 mutex_unlock(&hwdep->open_mutex); in snd_opl3_synth_cleanup()
101 wake_up(&hwdep->open_wait); in snd_opl3_synth_cleanup()