Lines Matching refs:kcontrol

392 static int snd_cs4236_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)  in snd_cs4236_info_single()  argument
394 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_info_single()
403 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_single() argument
405 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_single()
407 int reg = kcontrol->private_value & 0xff; in snd_cs4236_get_single()
408 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_single()
409 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_single()
410 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_single()
420 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_single() argument
422 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_single()
424 int reg = kcontrol->private_value & 0xff; in snd_cs4236_put_single()
425 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_single()
426 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_put_single()
427 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_single()
449 static int snd_cs4236_get_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_cs4236_get_singlec() argument
451 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_singlec()
453 int reg = kcontrol->private_value & 0xff; in snd_cs4236_get_singlec()
454 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_singlec()
455 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_singlec()
456 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_singlec()
466 static int snd_cs4236_put_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_cs4236_put_singlec() argument
468 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_singlec()
470 int reg = kcontrol->private_value & 0xff; in snd_cs4236_put_singlec()
471 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_singlec()
472 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_put_singlec()
473 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_singlec()
505 static int snd_cs4236_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_cs4236_info_double() argument
507 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_info_double()
516 static int snd_cs4236_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_double() argument
518 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_double()
520 int left_reg = kcontrol->private_value & 0xff; in snd_cs4236_get_double()
521 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_double()
522 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_get_double()
523 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_get_double()
524 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_double()
525 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4236_get_double()
538 static int snd_cs4236_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_double() argument
540 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_double()
542 int left_reg = kcontrol->private_value & 0xff; in snd_cs4236_put_double()
543 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_double()
544 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_put_double()
545 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_put_double()
546 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_double()
547 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4236_put_double()
592 static int snd_cs4236_get_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_cs4236_get_double1() argument
594 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_double1()
596 int left_reg = kcontrol->private_value & 0xff; in snd_cs4236_get_double1()
597 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_double1()
598 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_get_double1()
599 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_get_double1()
600 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_double1()
601 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4236_get_double1()
614 static int snd_cs4236_put_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_cs4236_put_double1() argument
616 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_double1()
618 int left_reg = kcontrol->private_value & 0xff; in snd_cs4236_put_double1()
619 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_double1()
620 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_put_double1()
621 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_put_double1()
622 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_double1()
623 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4236_put_double1()
658 static int snd_cs4236_get_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *… in snd_cs4236_get_master_digital() argument
660 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_master_digital()
670 static int snd_cs4236_put_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *… in snd_cs4236_put_master_digital() argument
672 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_master_digital()
719 static int snd_cs4235_get_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uco… in snd_cs4235_get_output_accu() argument
721 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4235_get_output_accu()
731 static int snd_cs4235_put_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uco… in snd_cs4235_put_output_accu() argument
733 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4235_put_output_accu()
929 static int snd_cs4236_get_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *u… in snd_cs4236_get_iec958_switch() argument
931 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_iec958_switch()
950 static int snd_cs4236_put_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *u… in snd_cs4236_put_iec958_switch() argument
952 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_iec958_switch()
1021 const struct snd_kcontrol_new *kcontrol; in snd_cs4236_mixer() local
1046 kcontrol = snd_cs4236_3d_controls_cs4235; in snd_cs4236_mixer()
1050 kcontrol = snd_cs4236_3d_controls_cs4237; in snd_cs4236_mixer()
1054 kcontrol = snd_cs4236_3d_controls_cs4238; in snd_cs4236_mixer()
1058 kcontrol = NULL; in snd_cs4236_mixer()
1060 for (idx = 0; idx < count; idx++, kcontrol++) { in snd_cs4236_mixer()
1061 err = snd_ctl_add(card, snd_ctl_new1(kcontrol, chip)); in snd_cs4236_mixer()