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