Lines Matching defs:kcontrol

718 static int snd_es1688_info_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
728 static int snd_es1688_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
730 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol);
735 static int snd_es1688_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
737 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol);
760 static int snd_es1688_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
762 int mask = (kcontrol->private_value >> 16) & 0xff;
771 static int snd_es1688_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
773 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol);
775 int reg = kcontrol->private_value & 0xff;
776 int shift = (kcontrol->private_value >> 8) & 0xff;
777 int mask = (kcontrol->private_value >> 16) & 0xff;
778 int invert = (kcontrol->private_value >> 24) & 0xff;
788 static int snd_es1688_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
790 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol);
792 int reg = kcontrol->private_value & 0xff;
793 int shift = (kcontrol->private_value >> 8) & 0xff;
794 int mask = (kcontrol->private_value >> 16) & 0xff;
795 int invert = (kcontrol->private_value >> 24) & 0xff;
819 static int snd_es1688_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
821 int mask = (kcontrol->private_value >> 24) & 0xff;
830 static int snd_es1688_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
832 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol);
834 int left_reg = kcontrol->private_value & 0xff;
835 int right_reg = (kcontrol->private_value >> 8) & 0xff;
836 int shift_left = (kcontrol->private_value >> 16) & 0x07;
837 int shift_right = (kcontrol->private_value >> 19) & 0x07;
838 int mask = (kcontrol->private_value >> 24) & 0xff;
839 int invert = (kcontrol->private_value >> 22) & 1;
864 static int snd_es1688_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
866 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol);
868 int left_reg = kcontrol->private_value & 0xff;
869 int right_reg = (kcontrol->private_value >> 8) & 0xff;
870 int shift_left = (kcontrol->private_value >> 16) & 0x07;
871 int shift_right = (kcontrol->private_value >> 19) & 0x07;
872 int mask = (kcontrol->private_value >> 24) & 0xff;
873 int invert = (kcontrol->private_value >> 22) & 1;