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