Lines Matching defs:kcontrol

884 static int snd_sonicvibes_info_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
893 static int snd_sonicvibes_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
895 struct sonicvibes *sonic = snd_kcontrol_chip(kcontrol);
904 static int snd_sonicvibes_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
906 struct sonicvibes *sonic = snd_kcontrol_chip(kcontrol);
933 static int snd_sonicvibes_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
935 int mask = (kcontrol->private_value >> 16) & 0xff;
944 static int snd_sonicvibes_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
946 struct sonicvibes *sonic = snd_kcontrol_chip(kcontrol);
947 int reg = kcontrol->private_value & 0xff;
948 int shift = (kcontrol->private_value >> 8) & 0xff;
949 int mask = (kcontrol->private_value >> 16) & 0xff;
950 int invert = (kcontrol->private_value >> 24) & 0xff;
960 static int snd_sonicvibes_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
962 struct sonicvibes *sonic = snd_kcontrol_chip(kcontrol);
963 int reg = kcontrol->private_value & 0xff;
964 int shift = (kcontrol->private_value >> 8) & 0xff;
965 int mask = (kcontrol->private_value >> 16) & 0xff;
966 int invert = (kcontrol->private_value >> 24) & 0xff;
989 static int snd_sonicvibes_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
991 int mask = (kcontrol->private_value >> 24) & 0xff;
1000 static int snd_sonicvibes_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1002 struct sonicvibes *sonic = snd_kcontrol_chip(kcontrol);
1003 int left_reg = kcontrol->private_value & 0xff;
1004 int right_reg = (kcontrol->private_value >> 8) & 0xff;
1005 int shift_left = (kcontrol->private_value >> 16) & 0x07;
1006 int shift_right = (kcontrol->private_value >> 19) & 0x07;
1007 int mask = (kcontrol->private_value >> 24) & 0xff;
1008 int invert = (kcontrol->private_value >> 22) & 1;
1021 static int snd_sonicvibes_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1023 struct sonicvibes *sonic = snd_kcontrol_chip(kcontrol);
1024 int left_reg = kcontrol->private_value & 0xff;
1025 int right_reg = (kcontrol->private_value >> 8) & 0xff;
1026 int shift_left = (kcontrol->private_value >> 16) & 0x07;
1027 int shift_right = (kcontrol->private_value >> 19) & 0x07;
1028 int mask = (kcontrol->private_value >> 24) & 0xff;
1029 int invert = (kcontrol->private_value >> 22) & 1;
1077 static void snd_sonicvibes_master_free(struct snd_kcontrol *kcontrol)
1079 struct sonicvibes *sonic = snd_kcontrol_chip(kcontrol);