Lines Matching refs:kcontrol

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