Lines Matching refs:sm
759 struct soc_mixer_control *sm; in soc_tplg_dmixer_create() local
781 sm = devm_kzalloc(tplg->dev, sizeof(*sm), GFP_KERNEL); in soc_tplg_dmixer_create()
782 if (sm == NULL) in soc_tplg_dmixer_create()
793 kc.private_value = (long)sm; in soc_tplg_dmixer_create()
798 sm->reg = tplc_chan_get_reg(tplg, mc->channel, in soc_tplg_dmixer_create()
800 sm->rreg = tplc_chan_get_reg(tplg, mc->channel, in soc_tplg_dmixer_create()
802 sm->shift = tplc_chan_get_shift(tplg, mc->channel, in soc_tplg_dmixer_create()
804 sm->rshift = tplc_chan_get_shift(tplg, mc->channel, in soc_tplg_dmixer_create()
807 sm->max = le32_to_cpu(mc->max); in soc_tplg_dmixer_create()
808 sm->min = le32_to_cpu(mc->min); in soc_tplg_dmixer_create()
809 sm->invert = le32_to_cpu(mc->invert); in soc_tplg_dmixer_create()
810 sm->platform_max = le32_to_cpu(mc->platform_max); in soc_tplg_dmixer_create()
811 sm->dobj.index = tplg->index; in soc_tplg_dmixer_create()
812 sm->dobj.ops = tplg->ops; in soc_tplg_dmixer_create()
813 sm->dobj.type = SND_SOC_DOBJ_MIXER; in soc_tplg_dmixer_create()
814 INIT_LIST_HEAD(&sm->dobj.list); in soc_tplg_dmixer_create()
842 &sm->dobj.control.kcontrol); in soc_tplg_dmixer_create()
849 list_add(&sm->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dmixer_create()
1207 struct soc_mixer_control *sm; in soc_tplg_dapm_widget_dmixer_create() local
1218 sm = devm_kzalloc(tplg->dev, sizeof(*sm), GFP_KERNEL); in soc_tplg_dapm_widget_dmixer_create()
1219 if (!sm) in soc_tplg_dapm_widget_dmixer_create()
1228 kc->private_value = (long)sm; in soc_tplg_dapm_widget_dmixer_create()
1236 sm->reg = tplc_chan_get_reg(tplg, mc->channel, in soc_tplg_dapm_widget_dmixer_create()
1238 sm->rreg = tplc_chan_get_reg(tplg, mc->channel, in soc_tplg_dapm_widget_dmixer_create()
1240 sm->shift = tplc_chan_get_shift(tplg, mc->channel, in soc_tplg_dapm_widget_dmixer_create()
1242 sm->rshift = tplc_chan_get_shift(tplg, mc->channel, in soc_tplg_dapm_widget_dmixer_create()
1245 sm->max = le32_to_cpu(mc->max); in soc_tplg_dapm_widget_dmixer_create()
1246 sm->min = le32_to_cpu(mc->min); in soc_tplg_dapm_widget_dmixer_create()
1247 sm->invert = le32_to_cpu(mc->invert); in soc_tplg_dapm_widget_dmixer_create()
1248 sm->platform_max = le32_to_cpu(mc->platform_max); in soc_tplg_dapm_widget_dmixer_create()
1249 sm->dobj.index = tplg->index; in soc_tplg_dapm_widget_dmixer_create()
1250 INIT_LIST_HEAD(&sm->dobj.list); in soc_tplg_dapm_widget_dmixer_create()