41 spin_unlock_irqrestore(&opl4->
reg_lock, flags);
42 ucontrol->
value.integer.value[0] = 7 - (value & 7);
43 ucontrol->
value.integer.value[1] = 7 - ((value >> 3) & 7);
54 value = (7 - (ucontrol->
value.integer.value[0] & 7)) |
55 ((7 - (ucontrol->
value.integer.value[1] & 7)) << 3);
59 spin_unlock_irqrestore(&opl4->
reg_lock, flags);
60 return value != old_value;
66 .name =
"FM Playback Volume",
67 .info = snd_opl4_ctl_info,
68 .get = snd_opl4_ctl_get,
69 .put = snd_opl4_ctl_put,
74 .name =
"Wavetable Playback Volume",
75 .info = snd_opl4_ctl_info,
76 .get = snd_opl4_ctl_get,
77 .put = snd_opl4_ctl_put,
89 for (i = 0; i < 2; ++
i) {