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