Lines Matching refs:i2sctl
44 struct lpaif_i2sctl *i2sctl, struct regmap *map) in lpass_cpu_init_i2sctl_bitfields() argument
49 i2sctl->loopback = devm_regmap_field_alloc(dev, map, v->loopback); in lpass_cpu_init_i2sctl_bitfields()
50 i2sctl->spken = devm_regmap_field_alloc(dev, map, v->spken); in lpass_cpu_init_i2sctl_bitfields()
51 i2sctl->spkmode = devm_regmap_field_alloc(dev, map, v->spkmode); in lpass_cpu_init_i2sctl_bitfields()
52 i2sctl->spkmono = devm_regmap_field_alloc(dev, map, v->spkmono); in lpass_cpu_init_i2sctl_bitfields()
53 i2sctl->micen = devm_regmap_field_alloc(dev, map, v->micen); in lpass_cpu_init_i2sctl_bitfields()
54 i2sctl->micmode = devm_regmap_field_alloc(dev, map, v->micmode); in lpass_cpu_init_i2sctl_bitfields()
55 i2sctl->micmono = devm_regmap_field_alloc(dev, map, v->micmono); in lpass_cpu_init_i2sctl_bitfields()
56 i2sctl->wssrc = devm_regmap_field_alloc(dev, map, v->wssrc); in lpass_cpu_init_i2sctl_bitfields()
57 i2sctl->bitwidth = devm_regmap_field_alloc(dev, map, v->bitwidth); in lpass_cpu_init_i2sctl_bitfields()
59 if (IS_ERR(i2sctl->loopback) || IS_ERR(i2sctl->spken) || in lpass_cpu_init_i2sctl_bitfields()
60 IS_ERR(i2sctl->spkmode) || IS_ERR(i2sctl->spkmono) || in lpass_cpu_init_i2sctl_bitfields()
61 IS_ERR(i2sctl->micen) || IS_ERR(i2sctl->micmode) || in lpass_cpu_init_i2sctl_bitfields()
62 IS_ERR(i2sctl->micmono) || IS_ERR(i2sctl->wssrc) || in lpass_cpu_init_i2sctl_bitfields()
63 IS_ERR(i2sctl->bitwidth)) in lpass_cpu_init_i2sctl_bitfields()
107 struct lpaif_i2sctl *i2sctl = drvdata->i2sctl; in lpass_cpu_daiops_shutdown() local
117 regmap_fields_write(i2sctl->spken, id, LPAIF_I2SCTL_SPKEN_DISABLE); in lpass_cpu_daiops_shutdown()
119 regmap_fields_write(i2sctl->micen, id, LPAIF_I2SCTL_MICEN_DISABLE); in lpass_cpu_daiops_shutdown()
138 struct lpaif_i2sctl *i2sctl = drvdata->i2sctl; in lpass_cpu_daiops_hw_params() local
153 ret = regmap_fields_write(i2sctl->loopback, id, in lpass_cpu_daiops_hw_params()
160 ret = regmap_fields_write(i2sctl->wssrc, id, in lpass_cpu_daiops_hw_params()
182 ret = regmap_fields_write(i2sctl->bitwidth, id, regval); in lpass_cpu_daiops_hw_params()
253 ret = regmap_fields_write(i2sctl->spkmode, id, in lpass_cpu_daiops_hw_params()
261 ret = regmap_fields_write(i2sctl->spkmono, id, in lpass_cpu_daiops_hw_params()
264 ret = regmap_fields_write(i2sctl->spkmono, id, in lpass_cpu_daiops_hw_params()
267 ret = regmap_fields_write(i2sctl->micmode, id, in lpass_cpu_daiops_hw_params()
275 ret = regmap_fields_write(i2sctl->micmono, id, in lpass_cpu_daiops_hw_params()
278 ret = regmap_fields_write(i2sctl->micmono, id, in lpass_cpu_daiops_hw_params()
303 struct lpaif_i2sctl *i2sctl = drvdata->i2sctl; in lpass_cpu_daiops_trigger() local
324 ret = regmap_fields_write(i2sctl->spken, id, in lpass_cpu_daiops_trigger()
327 ret = regmap_fields_write(i2sctl->micen, id, in lpass_cpu_daiops_trigger()
349 ret = regmap_fields_write(i2sctl->spken, id, in lpass_cpu_daiops_trigger()
352 ret = regmap_fields_write(i2sctl->micen, id, in lpass_cpu_daiops_trigger()
371 struct lpaif_i2sctl *i2sctl = drvdata->i2sctl; in lpass_cpu_daiops_prepare() local
382 ret = regmap_fields_write(i2sctl->spken, id, LPAIF_I2SCTL_SPKEN_ENABLE); in lpass_cpu_daiops_prepare()
384 ret = regmap_fields_write(i2sctl->micen, id, LPAIF_I2SCTL_MICEN_ENABLE); in lpass_cpu_daiops_prepare()
1232 drvdata->i2sctl = devm_kzalloc(&pdev->dev, sizeof(struct lpaif_i2sctl), in asoc_qcom_lpass_cpu_platform_probe()
1236 ret = lpass_cpu_init_i2sctl_bitfields(dev, drvdata->i2sctl, in asoc_qcom_lpass_cpu_platform_probe()