Lines Matching full:sbe
478 struct soc_bytes_ext *sbe; in soc_tplg_kcontrol_bind_io() local
481 sbe = (struct soc_bytes_ext *)k->private_value; in soc_tplg_kcontrol_bind_io()
498 if (sbe->max > 512) in soc_tplg_kcontrol_bind_io()
504 if (!sbe->put && in soc_tplg_kcontrol_bind_io()
506 sbe->put = ext_ops[i].put; in soc_tplg_kcontrol_bind_io()
507 if (!sbe->get && in soc_tplg_kcontrol_bind_io()
509 sbe->get = ext_ops[i].get; in soc_tplg_kcontrol_bind_io()
512 if ((k->access & SNDRV_CTL_ELEM_ACCESS_TLV_READ) && !sbe->get) in soc_tplg_kcontrol_bind_io()
514 if ((k->access & SNDRV_CTL_ELEM_ACCESS_TLV_WRITE) && !sbe->put) in soc_tplg_kcontrol_bind_io()
838 struct soc_bytes_ext *sbe; in soc_tplg_control_dbytes_create() local
847 sbe = devm_kzalloc(tplg->dev, sizeof(*sbe), GFP_KERNEL); in soc_tplg_control_dbytes_create()
848 if (!sbe) in soc_tplg_control_dbytes_create()
859 kc->private_value = (long)sbe; in soc_tplg_control_dbytes_create()
863 sbe->max = le32_to_cpu(be->max); in soc_tplg_control_dbytes_create()
879 struct soc_bytes_ext *sbe; in soc_tplg_dbytes_create() local
892 sbe = (struct soc_bytes_ext *)kc.private_value; in soc_tplg_dbytes_create()
894 INIT_LIST_HEAD(&sbe->dobj.list); in soc_tplg_dbytes_create()
895 sbe->dobj.type = SND_SOC_DOBJ_BYTES; in soc_tplg_dbytes_create()
896 sbe->dobj.index = tplg->index; in soc_tplg_dbytes_create()
898 sbe->dobj.unload = tplg->ops->control_unload; in soc_tplg_dbytes_create()
901 ret = soc_tplg_add_kcontrol(tplg, &kc, &sbe->dobj.control.kcontrol); in soc_tplg_dbytes_create()
905 list_add(&sbe->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dbytes_create()