Lines Matching refs:kcontrol

157 static int maya_vol_info(struct snd_kcontrol *kcontrol,
160 unsigned int idx = kcontrol->private_value;
170 static int maya_vol_get(struct snd_kcontrol *kcontrol,
173 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol);
175 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)];
176 unsigned int idx = kcontrol->private_value;
185 static int maya_vol_put(struct snd_kcontrol *kcontrol,
188 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol);
190 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)];
191 unsigned int idx = kcontrol->private_value;
231 static int maya_sw_get(struct snd_kcontrol *kcontrol,
234 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol);
236 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)];
237 unsigned int idx = GET_SW_VAL_IDX(kcontrol->private_value);
243 static int maya_sw_put(struct snd_kcontrol *kcontrol,
246 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol);
248 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)];
249 unsigned int idx = GET_SW_VAL_IDX(kcontrol->private_value);
259 mask = GET_SW_VAL_MASK(kcontrol->private_value);
261 GET_SW_VAL_REG(kcontrol->private_value),
296 static int maya_gpio_sw_get(struct snd_kcontrol *kcontrol,
299 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol);
300 unsigned int shift = GET_GPIO_VAL_SHIFT(kcontrol->private_value);
304 if (GET_GPIO_VAL_INV(kcontrol->private_value))
310 static int maya_gpio_sw_put(struct snd_kcontrol *kcontrol,
313 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol);
314 unsigned int shift = GET_GPIO_VAL_SHIFT(kcontrol->private_value);
321 if (GET_GPIO_VAL_INV(kcontrol->private_value))
343 static int maya_rec_src_info(struct snd_kcontrol *kcontrol,
351 static int maya_rec_src_get(struct snd_kcontrol *kcontrol,
354 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol);
365 static int maya_rec_src_put(struct snd_kcontrol *kcontrol,
368 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol);
384 static int maya_pb_route_info(struct snd_kcontrol *kcontrol,
402 static int maya_pb_route_get(struct snd_kcontrol *kcontrol,
405 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol);
406 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
412 static int maya_pb_route_put(struct snd_kcontrol *kcontrol,
415 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol);
416 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);