Lines Matching refs:value

91 			     unsigned int reg, unsigned int value)  in wm8776_write_spi()  argument
98 (reg << 9) | value); in wm8776_write_spi()
102 unsigned int reg, unsigned int value) in wm8776_write_i2c() argument
105 (reg << 1) | (value >> 8), value); in wm8776_write_i2c()
109 unsigned int reg, unsigned int value) in wm8776_write() argument
115 wm8776_write_spi(chip, reg, value); in wm8776_write()
117 wm8776_write_i2c(chip, reg, value); in wm8776_write()
121 value &= ~WM8776_UPDATE; in wm8776_write()
122 data->wm8776_regs[reg] = value; in wm8776_write()
127 unsigned int reg, unsigned int value) in wm8776_write_cached() argument
132 value != data->wm8776_regs[reg]) in wm8776_write_cached()
133 wm8776_write(chip, reg, value); in wm8776_write_cached()
137 unsigned int reg, unsigned int value) in wm8766_write() argument
146 (reg << 9) | value); in wm8766_write()
151 value &= ~WM8766_UPDATE; in wm8766_write()
152 data->wm8766_regs[reg] = value; in wm8766_write()
157 unsigned int reg, unsigned int value) in wm8766_write_cached() argument
162 value != data->wm8766_regs[reg]) in wm8766_write_cached()
163 wm8766_write(chip, reg, value); in wm8766_write_cached()
500 struct snd_ctl_elem_value *value) in wm8776_bit_switch_get() argument
508 value->value.integer.value[0] = in wm8776_bit_switch_get()
514 struct snd_ctl_elem_value *value) in wm8776_bit_switch_put() argument
526 if (value->value.integer.value[0] ^ invert) in wm8776_bit_switch_put()
603 info->value.integer.min = (ctl->private_value >> 8) & 0xf; in wm8776_field_volume_info()
604 info->value.integer.max = (ctl->private_value >> 12) & 0xf; in wm8776_field_volume_info()
612 unsigned int value, reg_index, mode; in wm8776_field_set_from_ctl() local
625 value = ctl->private_value & 0xf; in wm8776_field_set_from_ctl()
634 value = max - (value - min); in wm8776_field_set_from_ctl()
637 reg_value |= value << shift; in wm8776_field_set_from_ctl()
641 static int wm8776_field_set(struct snd_kcontrol *ctl, unsigned int value) in wm8776_field_set() argument
649 if (value < min || value > max) in wm8776_field_set()
652 changed = value != (ctl->private_value & 0xf); in wm8776_field_set()
654 ctl->private_value = (ctl->private_value & ~0xf) | value; in wm8776_field_set()
662 struct snd_ctl_elem_value *value) in wm8776_field_enum_get() argument
664 value->value.enumerated.item[0] = ctl->private_value & 0xf; in wm8776_field_enum_get()
669 struct snd_ctl_elem_value *value) in wm8776_field_volume_get() argument
671 value->value.integer.value[0] = ctl->private_value & 0xf; in wm8776_field_volume_get()
676 struct snd_ctl_elem_value *value) in wm8776_field_enum_put() argument
678 return wm8776_field_set(ctl, value->value.enumerated.item[0]); in wm8776_field_enum_put()
682 struct snd_ctl_elem_value *value) in wm8776_field_volume_put() argument
684 return wm8776_field_set(ctl, value->value.integer.value[0]); in wm8776_field_volume_put()
692 info->value.integer.min = 0x79 - 60; in wm8776_hp_vol_info()
693 info->value.integer.max = 0x7f; in wm8776_hp_vol_info()
698 struct snd_ctl_elem_value *value) in wm8776_hp_vol_get() argument
704 value->value.integer.value[0] = in wm8776_hp_vol_get()
706 value->value.integer.value[1] = in wm8776_hp_vol_get()
713 struct snd_ctl_elem_value *value) in wm8776_hp_vol_put() argument
720 to_update = (value->value.integer.value[0] != in wm8776_hp_vol_put()
723 to_update |= (value->value.integer.value[1] != in wm8776_hp_vol_put()
726 if (value->value.integer.value[0] == value->value.integer.value[1]) { in wm8776_hp_vol_put()
729 value->value.integer.value[0] | in wm8776_hp_vol_put()
732 value->value.integer.value[0] | WM8776_HPZCEN; in wm8776_hp_vol_put()
734 value->value.integer.value[0] | WM8776_HPZCEN; in wm8776_hp_vol_put()
739 value->value.integer.value[0] | in wm8776_hp_vol_put()
744 value->value.integer.value[1] | in wm8776_hp_vol_put()
752 struct snd_ctl_elem_value *value) in wm8776_input_mux_get() argument
758 value->value.integer.value[0] = in wm8776_input_mux_get()
764 struct snd_ctl_elem_value *value) in wm8776_input_mux_put() argument
775 if (value->value.integer.value[0]) { in wm8776_input_mux_put()
806 info->value.integer.min = 0xa5; in wm8776_input_vol_info()
807 info->value.integer.max = 0xff; in wm8776_input_vol_info()
812 struct snd_ctl_elem_value *value) in wm8776_input_vol_get() argument
818 value->value.integer.value[0] = in wm8776_input_vol_get()
820 value->value.integer.value[1] = in wm8776_input_vol_get()
827 struct snd_ctl_elem_value *value) in wm8776_input_vol_put() argument
834 changed = (value->value.integer.value[0] != in wm8776_input_vol_put()
836 (value->value.integer.value[1] != in wm8776_input_vol_put()
839 value->value.integer.value[0] | WM8776_ZCA); in wm8776_input_vol_put()
841 value->value.integer.value[1] | WM8776_ZCA); in wm8776_input_vol_put()
857 struct snd_ctl_elem_value *value) in wm8776_level_control_get() argument
863 value->value.enumerated.item[0] = 0; in wm8776_level_control_get()
866 value->value.enumerated.item[0] = 1; in wm8776_level_control_get()
868 value->value.enumerated.item[0] = 2; in wm8776_level_control_get()
888 struct snd_ctl_elem_value *value) in wm8776_level_control_put() argument
896 if (value->value.enumerated.item[0] >= 3) in wm8776_level_control_put()
899 changed = value->value.enumerated.item[0] != ctl->private_value; in wm8776_level_control_put()
901 ctl->private_value = value->value.enumerated.item[0]; in wm8776_level_control_put()
904 switch (value->value.enumerated.item[0]) { in wm8776_level_control_put()
942 static int hpf_get(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in hpf_get() argument
947 value->value.enumerated.item[0] = in hpf_get()
952 static int hpf_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in hpf_put() argument
961 if (!value->value.enumerated.item[0]) in hpf_put()