Lines Matching refs:kcontrol

171 static int maya_vol_info(struct snd_kcontrol *kcontrol,  in maya_vol_info()  argument
174 unsigned int idx = kcontrol->private_value; in maya_vol_info()
184 static int maya_vol_get(struct snd_kcontrol *kcontrol, in maya_vol_get() argument
187 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_vol_get()
189 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_get()
190 unsigned int idx = kcontrol->private_value; in maya_vol_get()
199 static int maya_vol_put(struct snd_kcontrol *kcontrol, in maya_vol_put() argument
202 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_vol_put()
204 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_put()
205 unsigned int idx = kcontrol->private_value; in maya_vol_put()
245 static int maya_sw_get(struct snd_kcontrol *kcontrol, in maya_sw_get() argument
248 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_sw_get()
250 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_sw_get()
251 unsigned int idx = GET_SW_VAL_IDX(kcontrol->private_value); in maya_sw_get()
257 static int maya_sw_put(struct snd_kcontrol *kcontrol, in maya_sw_put() argument
260 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_sw_put()
262 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_sw_put()
263 unsigned int idx = GET_SW_VAL_IDX(kcontrol->private_value); in maya_sw_put()
273 mask = GET_SW_VAL_MASK(kcontrol->private_value); in maya_sw_put()
275 GET_SW_VAL_REG(kcontrol->private_value), in maya_sw_put()
310 static int maya_gpio_sw_get(struct snd_kcontrol *kcontrol, in maya_gpio_sw_get() argument
313 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_gpio_sw_get()
314 unsigned int shift = GET_GPIO_VAL_SHIFT(kcontrol->private_value); in maya_gpio_sw_get()
318 if (GET_GPIO_VAL_INV(kcontrol->private_value)) in maya_gpio_sw_get()
324 static int maya_gpio_sw_put(struct snd_kcontrol *kcontrol, in maya_gpio_sw_put() argument
327 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_gpio_sw_put()
328 unsigned int shift = GET_GPIO_VAL_SHIFT(kcontrol->private_value); in maya_gpio_sw_put()
335 if (GET_GPIO_VAL_INV(kcontrol->private_value)) in maya_gpio_sw_put()
357 static int maya_rec_src_info(struct snd_kcontrol *kcontrol, in maya_rec_src_info() argument
365 static int maya_rec_src_get(struct snd_kcontrol *kcontrol, in maya_rec_src_get() argument
368 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_rec_src_get()
379 static int maya_rec_src_put(struct snd_kcontrol *kcontrol, in maya_rec_src_put() argument
382 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_rec_src_put()
398 static int maya_pb_route_info(struct snd_kcontrol *kcontrol, in maya_pb_route_info() argument
416 static int maya_pb_route_get(struct snd_kcontrol *kcontrol, in maya_pb_route_get() argument
419 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_pb_route_get()
420 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in maya_pb_route_get()
426 static int maya_pb_route_put(struct snd_kcontrol *kcontrol, in maya_pb_route_put() argument
429 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_pb_route_put()
430 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in maya_pb_route_put()