Lines Matching refs:msnd
119 struct snd_msnd *msnd = snd_kcontrol_chip(kcontrol); in snd_msndmix_put_mux() local
120 return snd_msndmix_set_mux(msnd, ucontrol->value.enumerated.item[0]); in snd_msndmix_put_mux()
137 struct snd_msnd *msnd = snd_kcontrol_chip(kcontrol); in snd_msndmix_volume_get() local
141 spin_lock_irqsave(&msnd->mixer_lock, flags); in snd_msndmix_volume_get()
142 ucontrol->value.integer.value[0] = msnd->left_levels[addr] * 100; in snd_msndmix_volume_get()
144 ucontrol->value.integer.value[1] = msnd->right_levels[addr] * 100; in snd_msndmix_volume_get()
146 spin_unlock_irqrestore(&msnd->mixer_lock, flags); in snd_msndmix_volume_get()
253 struct snd_msnd *msnd = snd_kcontrol_chip(kcontrol); in snd_msndmix_volume_put() local
260 spin_lock_irqsave(&msnd->mixer_lock, flags); in snd_msndmix_volume_put()
261 change = msnd->left_levels[addr] != left in snd_msndmix_volume_put()
262 || msnd->right_levels[addr] != right; in snd_msndmix_volume_put()
263 snd_msndmix_set(msnd, addr, left, right); in snd_msndmix_volume_put()
264 spin_unlock_irqrestore(&msnd->mixer_lock, flags); in snd_msndmix_volume_put()