Lines Matching refs:component

61 	struct snd_soc_component *component = snd_kcontrol_chip(kcontrol);  in snd_soc_get_enum_double()  local
66 reg_val = snd_soc_component_read(component, e->reg); in snd_soc_get_enum_double()
92 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_put_enum_double() local
109 return snd_soc_component_update_bits(component, e->reg, mask, val); in snd_soc_put_enum_double()
128 static int snd_soc_read_signed(struct snd_soc_component *component, in snd_soc_read_signed() argument
135 val = snd_soc_component_read(component, reg); in snd_soc_read_signed()
256 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_get_volsw() local
274 ret = snd_soc_read_signed(component, reg, mask, shift, sign_bit, &val); in snd_soc_get_volsw()
285 ret = snd_soc_read_signed(component, reg, mask, rshift, in snd_soc_get_volsw()
288 ret = snd_soc_read_signed(component, reg2, mask, shift, in snd_soc_get_volsw()
316 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_put_volsw() local
367 err = snd_soc_component_update_bits(component, reg, val_mask, val); in snd_soc_put_volsw()
373 err = snd_soc_component_update_bits(component, reg2, val_mask, in snd_soc_put_volsw()
398 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_get_volsw_sx() local
410 val = snd_soc_component_read(component, reg); in snd_soc_get_volsw_sx()
414 val = snd_soc_component_read(component, reg2); in snd_soc_get_volsw_sx()
435 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_put_volsw_sx() local
461 err = snd_soc_component_update_bits(component, reg, val_mask, val); in snd_soc_put_volsw_sx()
478 err = snd_soc_component_update_bits(component, reg2, val_mask, in snd_soc_put_volsw_sx()
535 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_put_volsw_range() local
561 err = snd_soc_component_update_bits(component, reg, val_mask, val); in snd_soc_put_volsw_range()
582 err = snd_soc_component_update_bits(component, rreg, val_mask, in snd_soc_put_volsw_range()
606 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_get_volsw_range() local
618 val = snd_soc_component_read(component, reg); in snd_soc_get_volsw_range()
628 val = snd_soc_component_read(component, rreg); in snd_soc_get_volsw_range()
676 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_bytes_info() local
680 uinfo->count = params->num_regs * component->val_bytes; in snd_soc_bytes_info()
689 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_bytes_get() local
693 if (component->regmap) in snd_soc_bytes_get()
694 ret = regmap_raw_read(component->regmap, params->base, in snd_soc_bytes_get()
696 params->num_regs * component->val_bytes); in snd_soc_bytes_get()
702 switch (component->val_bytes) { in snd_soc_bytes_get()
726 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_bytes_put() local
732 if (!component->regmap || !params->num_regs) in snd_soc_bytes_put()
735 len = params->num_regs * component->val_bytes; in snd_soc_bytes_put()
747 ret = regmap_read(component->regmap, params->base, &val); in snd_soc_bytes_put()
753 switch (component->val_bytes) { in snd_soc_bytes_put()
760 ret = regmap_parse_val(component->regmap, in snd_soc_bytes_put()
767 ret = regmap_parse_val(component->regmap, in snd_soc_bytes_put()
776 ret = regmap_parse_val(component->regmap, in snd_soc_bytes_put()
783 ret = regmap_parse_val(component->regmap, in snd_soc_bytes_put()
796 ret = regmap_raw_write(component->regmap, params->base, in snd_soc_bytes_put()
880 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_get_xr_sx() local
885 unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; in snd_soc_get_xr_sx()
895 unsigned int regval = snd_soc_component_read(component, regbase+i); in snd_soc_get_xr_sx()
925 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_put_xr_sx() local
930 unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; in snd_soc_put_xr_sx()
947 int err = snd_soc_component_update_bits(component, regbase+i, in snd_soc_put_xr_sx()
971 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_get_strobe() local
980 val = snd_soc_component_read(component, reg); in snd_soc_get_strobe()
1004 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_put_strobe() local
1016 err = snd_soc_component_update_bits(component, reg, mask, val1); in snd_soc_put_strobe()
1020 return snd_soc_component_update_bits(component, reg, mask, val2); in snd_soc_put_strobe()