Lines Matching refs:sm

389 	struct soc_mixer_control *sm =  in remove_mixer()  local
399 if (sm->dobj.control.kcontrol->tlv.p) in remove_mixer()
400 p = sm->dobj.control.kcontrol->tlv.p; in remove_mixer()
401 snd_ctl_remove(card, sm->dobj.control.kcontrol); in remove_mixer()
402 list_del(&sm->dobj.list); in remove_mixer()
403 kfree(sm); in remove_mixer()
485 struct soc_mixer_control *sm = in remove_widget() local
491 kfree(sm); in remove_widget()
760 struct soc_mixer_control *sm; in soc_tplg_dmixer_create() local
781 sm = kzalloc(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 = mc->max; in soc_tplg_dmixer_create()
808 sm->min = mc->min; in soc_tplg_dmixer_create()
809 sm->invert = mc->invert; in soc_tplg_dmixer_create()
810 sm->platform_max = 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()
820 kfree(sm); in soc_tplg_dmixer_create()
830 kfree(sm); in soc_tplg_dmixer_create()
839 &sm->dobj.control.kcontrol); in soc_tplg_dmixer_create()
844 kfree(sm); in soc_tplg_dmixer_create()
848 list_add(&sm->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dmixer_create()
1127 struct soc_mixer_control *sm; in soc_tplg_dapm_widget_dmixer_create() local
1137 sm = kzalloc(sizeof(*sm), GFP_KERNEL); in soc_tplg_dapm_widget_dmixer_create()
1138 if (sm == NULL) in soc_tplg_dapm_widget_dmixer_create()
1153 kc[i].private_value = (long)sm; in soc_tplg_dapm_widget_dmixer_create()
1158 sm->reg = tplc_chan_get_reg(tplg, mc->channel, in soc_tplg_dapm_widget_dmixer_create()
1160 sm->rreg = tplc_chan_get_reg(tplg, mc->channel, in soc_tplg_dapm_widget_dmixer_create()
1162 sm->shift = tplc_chan_get_shift(tplg, mc->channel, in soc_tplg_dapm_widget_dmixer_create()
1164 sm->rshift = tplc_chan_get_shift(tplg, mc->channel, in soc_tplg_dapm_widget_dmixer_create()
1167 sm->max = mc->max; in soc_tplg_dapm_widget_dmixer_create()
1168 sm->min = mc->min; in soc_tplg_dapm_widget_dmixer_create()
1169 sm->invert = mc->invert; in soc_tplg_dapm_widget_dmixer_create()
1170 sm->platform_max = mc->platform_max; in soc_tplg_dapm_widget_dmixer_create()
1171 sm->dobj.index = tplg->index; in soc_tplg_dapm_widget_dmixer_create()
1172 INIT_LIST_HEAD(&sm->dobj.list); in soc_tplg_dapm_widget_dmixer_create()
1178 kfree(sm); in soc_tplg_dapm_widget_dmixer_create()
1188 kfree(sm); in soc_tplg_dapm_widget_dmixer_create()
1195 kfree(sm); in soc_tplg_dapm_widget_dmixer_create()