Lines Matching refs:opl4
21 struct snd_opl4 *opl4 = snd_kcontrol_chip(kcontrol); in snd_opl4_ctl_get() local
26 spin_lock_irqsave(&opl4->reg_lock, flags); in snd_opl4_ctl_get()
27 value = snd_opl4_read(opl4, reg); in snd_opl4_ctl_get()
28 spin_unlock_irqrestore(&opl4->reg_lock, flags); in snd_opl4_ctl_get()
36 struct snd_opl4 *opl4 = snd_kcontrol_chip(kcontrol); in snd_opl4_ctl_put() local
43 spin_lock_irqsave(&opl4->reg_lock, flags); in snd_opl4_ctl_put()
44 old_value = snd_opl4_read(opl4, reg); in snd_opl4_ctl_put()
45 snd_opl4_write(opl4, reg, value); in snd_opl4_ctl_put()
46 spin_unlock_irqrestore(&opl4->reg_lock, flags); in snd_opl4_ctl_put()
69 int snd_opl4_create_mixer(struct snd_opl4 *opl4) in snd_opl4_create_mixer() argument
71 struct snd_card *card = opl4->card; in snd_opl4_create_mixer()
77 err = snd_ctl_add(card, snd_ctl_new1(&snd_opl4_controls[i], opl4)); in snd_opl4_create_mixer()