• Home
  • Raw
  • Download

Lines Matching refs:kcontrol

408 static int snd_cs4236_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)  in snd_cs4236_info_single()  argument
410 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_info_single()
419 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_single() argument
421 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_single()
423 int reg = kcontrol->private_value & 0xff; in snd_cs4236_get_single()
424 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_single()
425 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_single()
426 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_single()
436 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_single() argument
438 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_single()
440 int reg = kcontrol->private_value & 0xff; in snd_cs4236_put_single()
441 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_single()
442 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_put_single()
443 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_single()
465 static int snd_cs4236_get_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_cs4236_get_singlec() argument
467 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_singlec()
469 int reg = kcontrol->private_value & 0xff; in snd_cs4236_get_singlec()
470 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_singlec()
471 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_singlec()
472 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_singlec()
482 static int snd_cs4236_put_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_cs4236_put_singlec() argument
484 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_singlec()
486 int reg = kcontrol->private_value & 0xff; in snd_cs4236_put_singlec()
487 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_singlec()
488 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_put_singlec()
489 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_singlec()
521 static int snd_cs4236_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_cs4236_info_double() argument
523 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_info_double()
532 static int snd_cs4236_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_double() argument
534 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_double()
536 int left_reg = kcontrol->private_value & 0xff; in snd_cs4236_get_double()
537 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_double()
538 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_get_double()
539 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_get_double()
540 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_double()
541 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4236_get_double()
554 static int snd_cs4236_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_double() argument
556 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_double()
558 int left_reg = kcontrol->private_value & 0xff; in snd_cs4236_put_double()
559 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_double()
560 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_put_double()
561 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_put_double()
562 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_double()
563 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4236_put_double()
608 static int snd_cs4236_get_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_cs4236_get_double1() argument
610 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_double1()
612 int left_reg = kcontrol->private_value & 0xff; in snd_cs4236_get_double1()
613 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_double1()
614 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_get_double1()
615 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_get_double1()
616 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_double1()
617 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4236_get_double1()
630 static int snd_cs4236_put_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_cs4236_put_double1() argument
632 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_double1()
634 int left_reg = kcontrol->private_value & 0xff; in snd_cs4236_put_double1()
635 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_double1()
636 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_put_double1()
637 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_put_double1()
638 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_double1()
639 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4236_put_double1()
674 static int snd_cs4236_get_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *… in snd_cs4236_get_master_digital() argument
676 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_master_digital()
686 static int snd_cs4236_put_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *… in snd_cs4236_put_master_digital() argument
688 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_master_digital()
735 static int snd_cs4235_get_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uco… in snd_cs4235_get_output_accu() argument
737 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4235_get_output_accu()
747 static int snd_cs4235_put_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uco… in snd_cs4235_put_output_accu() argument
749 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4235_put_output_accu()
945 static int snd_cs4236_get_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *u… in snd_cs4236_get_iec958_switch() argument
947 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_iec958_switch()
966 static int snd_cs4236_put_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *u… in snd_cs4236_put_iec958_switch() argument
968 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_iec958_switch()
1037 struct snd_kcontrol_new *kcontrol; in snd_cs4236_mixer() local
1060 kcontrol = snd_cs4236_3d_controls_cs4235; in snd_cs4236_mixer()
1064 kcontrol = snd_cs4236_3d_controls_cs4237; in snd_cs4236_mixer()
1068 kcontrol = snd_cs4236_3d_controls_cs4238; in snd_cs4236_mixer()
1072 kcontrol = NULL; in snd_cs4236_mixer()
1074 for (idx = 0; idx < count; idx++, kcontrol++) { in snd_cs4236_mixer()
1075 if ((err = snd_ctl_add(card, snd_ctl_new1(kcontrol, chip))) < 0) in snd_cs4236_mixer()