Lines Matching refs:_chip
45 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_mic_level_get() local
46 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; in vx_mic_level_get()
53 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_mic_level_put() local
54 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; in vx_mic_level_put()
59 mutex_lock(&_chip->mixer_mutex); in vx_mic_level_put()
61 vx_set_mic_level(_chip, ucontrol->value.integer.value[0]); in vx_mic_level_put()
63 mutex_unlock(&_chip->mixer_mutex); in vx_mic_level_put()
66 mutex_unlock(&_chip->mixer_mutex); in vx_mic_level_put()
90 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_mic_boost_get() local
91 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; in vx_mic_boost_get()
98 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_mic_boost_put() local
99 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; in vx_mic_boost_put()
101 mutex_lock(&_chip->mixer_mutex); in vx_mic_boost_put()
103 vx_set_mic_boost(_chip, val); in vx_mic_boost_put()
105 mutex_unlock(&_chip->mixer_mutex); in vx_mic_boost_put()
108 mutex_unlock(&_chip->mixer_mutex); in vx_mic_boost_put()
121 int vxp_add_mic_controls(struct vx_core *_chip) in vxp_add_mic_controls() argument
123 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; in vxp_add_mic_controls()
128 switch (_chip->type) { in vxp_add_mic_controls()
130 vx_set_mic_level(_chip, 0); in vxp_add_mic_controls()
133 vx_set_mic_boost(_chip, 0); in vxp_add_mic_controls()
138 switch (_chip->type) { in vxp_add_mic_controls()
140 if ((err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_mic_level, chip))) < 0) in vxp_add_mic_controls()
144 if ((err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_mic_boost, chip))) < 0) in vxp_add_mic_controls()