Lines Matching defs:kcontrol
394 static int snd_cs4236_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
396 int mask = (kcontrol->private_value >> 16) & 0xff;
405 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
407 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
409 int reg = kcontrol->private_value & 0xff;
410 int shift = (kcontrol->private_value >> 8) & 0xff;
411 int mask = (kcontrol->private_value >> 16) & 0xff;
412 int invert = (kcontrol->private_value >> 24) & 0xff;
422 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
424 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
426 int reg = kcontrol->private_value & 0xff;
427 int shift = (kcontrol->private_value >> 8) & 0xff;
428 int mask = (kcontrol->private_value >> 16) & 0xff;
429 int invert = (kcontrol->private_value >> 24) & 0xff;
451 static int snd_cs4236_get_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
453 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
455 int reg = kcontrol->private_value & 0xff;
456 int shift = (kcontrol->private_value >> 8) & 0xff;
457 int mask = (kcontrol->private_value >> 16) & 0xff;
458 int invert = (kcontrol->private_value >> 24) & 0xff;
468 static int snd_cs4236_put_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
470 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
472 int reg = kcontrol->private_value & 0xff;
473 int shift = (kcontrol->private_value >> 8) & 0xff;
474 int mask = (kcontrol->private_value >> 16) & 0xff;
475 int invert = (kcontrol->private_value >> 24) & 0xff;
507 static int snd_cs4236_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
509 int mask = (kcontrol->private_value >> 24) & 0xff;
518 static int snd_cs4236_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
520 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
522 int left_reg = kcontrol->private_value & 0xff;
523 int right_reg = (kcontrol->private_value >> 8) & 0xff;
524 int shift_left = (kcontrol->private_value >> 16) & 0x07;
525 int shift_right = (kcontrol->private_value >> 19) & 0x07;
526 int mask = (kcontrol->private_value >> 24) & 0xff;
527 int invert = (kcontrol->private_value >> 22) & 1;
540 static int snd_cs4236_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
542 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
544 int left_reg = kcontrol->private_value & 0xff;
545 int right_reg = (kcontrol->private_value >> 8) & 0xff;
546 int shift_left = (kcontrol->private_value >> 16) & 0x07;
547 int shift_right = (kcontrol->private_value >> 19) & 0x07;
548 int mask = (kcontrol->private_value >> 24) & 0xff;
549 int invert = (kcontrol->private_value >> 22) & 1;
594 static int snd_cs4236_get_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
596 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
598 int left_reg = kcontrol->private_value & 0xff;
599 int right_reg = (kcontrol->private_value >> 8) & 0xff;
600 int shift_left = (kcontrol->private_value >> 16) & 0x07;
601 int shift_right = (kcontrol->private_value >> 19) & 0x07;
602 int mask = (kcontrol->private_value >> 24) & 0xff;
603 int invert = (kcontrol->private_value >> 22) & 1;
616 static int snd_cs4236_put_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
618 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
620 int left_reg = kcontrol->private_value & 0xff;
621 int right_reg = (kcontrol->private_value >> 8) & 0xff;
622 int shift_left = (kcontrol->private_value >> 16) & 0x07;
623 int shift_right = (kcontrol->private_value >> 19) & 0x07;
624 int mask = (kcontrol->private_value >> 24) & 0xff;
625 int invert = (kcontrol->private_value >> 22) & 1;
660 static int snd_cs4236_get_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
662 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
672 static int snd_cs4236_put_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
674 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
721 static int snd_cs4235_get_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
723 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
733 static int snd_cs4235_put_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
735 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
931 static int snd_cs4236_get_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
933 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
952 static int snd_cs4236_put_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
954 struct snd_wss *chip = snd_kcontrol_chip(kcontrol);
1023 const struct snd_kcontrol_new *kcontrol;
1046 kcontrol = snd_cs4236_3d_controls_cs4235;
1050 kcontrol = snd_cs4236_3d_controls_cs4237;
1054 kcontrol = snd_cs4236_3d_controls_cs4238;
1058 kcontrol = NULL;
1060 for (idx = 0; idx < count; idx++, kcontrol++) {
1061 if ((err = snd_ctl_add(card, snd_ctl_new1(kcontrol, chip))) < 0)