Lines Matching refs:mc
759 struct snd_soc_tplg_mixer_control *mc; in soc_tplg_dmixer_create() local
774 mc = (struct snd_soc_tplg_mixer_control *)tplg->pos; in soc_tplg_dmixer_create()
777 if (strnlen(mc->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_dmixer_create()
785 mc->priv.size); in soc_tplg_dmixer_create()
789 mc->hdr.name, mc->hdr.access); in soc_tplg_dmixer_create()
792 kc.name = mc->hdr.name; in soc_tplg_dmixer_create()
795 kc.access = mc->hdr.access; 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()
817 err = soc_tplg_kcontrol_bind_io(&mc->hdr, &kc, tplg); in soc_tplg_dmixer_create()
819 soc_control_err(tplg, &mc->hdr, mc->hdr.name); in soc_tplg_dmixer_create()
826 (struct snd_soc_tplg_ctl_hdr *) mc); in soc_tplg_dmixer_create()
829 mc->hdr.name); in soc_tplg_dmixer_create()
835 soc_tplg_create_tlv(tplg, &kc, &mc->hdr); in soc_tplg_dmixer_create()
842 mc->hdr.name); in soc_tplg_dmixer_create()
1128 struct snd_soc_tplg_mixer_control *mc; in soc_tplg_dapm_widget_dmixer_create() local
1136 mc = (struct snd_soc_tplg_mixer_control *)tplg->pos; in soc_tplg_dapm_widget_dmixer_create()
1142 mc->priv.size); in soc_tplg_dapm_widget_dmixer_create()
1145 if (strnlen(mc->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_dapm_widget_dmixer_create()
1150 mc->hdr.name, i); in soc_tplg_dapm_widget_dmixer_create()
1152 kc[i].name = mc->hdr.name; in soc_tplg_dapm_widget_dmixer_create()
1155 kc[i].access = mc->hdr.access; 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()
1175 err = soc_tplg_kcontrol_bind_io(&mc->hdr, &kc[i], tplg); in soc_tplg_dapm_widget_dmixer_create()
1177 soc_control_err(tplg, &mc->hdr, mc->hdr.name); in soc_tplg_dapm_widget_dmixer_create()
1184 (struct snd_soc_tplg_ctl_hdr *)mc); in soc_tplg_dapm_widget_dmixer_create()
1187 mc->hdr.name); in soc_tplg_dapm_widget_dmixer_create()