Lines Matching refs:sbe
583 struct soc_bytes_ext *sbe; in soc_tplg_kcontrol_bind_io() local
586 sbe = (struct soc_bytes_ext *)k->private_value; in soc_tplg_kcontrol_bind_io()
603 if (IS_ENABLED(CONFIG_SND_CTL_VALIDATION) && sbe->max > 512) in soc_tplg_kcontrol_bind_io()
609 if (!sbe->put && in soc_tplg_kcontrol_bind_io()
611 sbe->put = ext_ops[i].put; in soc_tplg_kcontrol_bind_io()
612 if (!sbe->get && in soc_tplg_kcontrol_bind_io()
614 sbe->get = ext_ops[i].get; in soc_tplg_kcontrol_bind_io()
617 if ((k->access & SNDRV_CTL_ELEM_ACCESS_TLV_READ) && !sbe->get) in soc_tplg_kcontrol_bind_io()
619 if ((k->access & SNDRV_CTL_ELEM_ACCESS_TLV_WRITE) && !sbe->put) in soc_tplg_kcontrol_bind_io()
754 struct soc_bytes_ext *sbe; in soc_tplg_dbytes_create() local
775 sbe = kzalloc(sizeof(*sbe), GFP_KERNEL); in soc_tplg_dbytes_create()
776 if (sbe == NULL) in soc_tplg_dbytes_create()
788 kc.private_value = (long)sbe; in soc_tplg_dbytes_create()
792 sbe->max = le32_to_cpu(be->max); in soc_tplg_dbytes_create()
793 sbe->dobj.type = SND_SOC_DOBJ_BYTES; in soc_tplg_dbytes_create()
794 sbe->dobj.ops = tplg->ops; in soc_tplg_dbytes_create()
795 INIT_LIST_HEAD(&sbe->dobj.list); in soc_tplg_dbytes_create()
801 kfree(sbe); in soc_tplg_dbytes_create()
811 kfree(sbe); in soc_tplg_dbytes_create()
817 &sbe->dobj.control.kcontrol); in soc_tplg_dbytes_create()
821 kfree(sbe); in soc_tplg_dbytes_create()
825 list_add(&sbe->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dbytes_create()
1518 struct soc_bytes_ext *sbe; in soc_tplg_dapm_widget_dbytes_create() local
1534 sbe = kzalloc(sizeof(*sbe), GFP_KERNEL); in soc_tplg_dapm_widget_dbytes_create()
1535 if (sbe == NULL) in soc_tplg_dapm_widget_dbytes_create()
1545 kc[i].private_value = (long)sbe; in soc_tplg_dapm_widget_dbytes_create()
1552 sbe->max = le32_to_cpu(be->max); in soc_tplg_dapm_widget_dbytes_create()
1553 INIT_LIST_HEAD(&sbe->dobj.list); in soc_tplg_dapm_widget_dbytes_create()
1576 sbe = (struct soc_bytes_ext *)kc[i].private_value; in soc_tplg_dapm_widget_dbytes_create()
1577 kfree(sbe); in soc_tplg_dapm_widget_dbytes_create()