Lines Matching defs:sbe
472 struct soc_bytes_ext *sbe;
475 sbe = (struct soc_bytes_ext *)k->private_value;
492 if (sbe->max > 512)
498 if (!sbe->put &&
500 sbe->put = ext_ops[i].put;
501 if (!sbe->get &&
503 sbe->get = ext_ops[i].get;
506 if ((k->access & SNDRV_CTL_ELEM_ACCESS_TLV_READ) && !sbe->get)
508 if ((k->access & SNDRV_CTL_ELEM_ACCESS_TLV_WRITE) && !sbe->put)
833 struct soc_bytes_ext *sbe;
842 sbe = devm_kzalloc(tplg->dev, sizeof(*sbe), GFP_KERNEL);
843 if (!sbe)
854 kc->private_value = (long)sbe;
858 sbe->max = le32_to_cpu(be->max);
874 struct soc_bytes_ext *sbe;
887 sbe = (struct soc_bytes_ext *)kc.private_value;
889 INIT_LIST_HEAD(&sbe->dobj.list);
890 sbe->dobj.type = SND_SOC_DOBJ_BYTES;
891 sbe->dobj.index = tplg->index;
893 sbe->dobj.unload = tplg->ops->control_unload;
896 ret = soc_tplg_add_kcontrol(tplg, &kc, &sbe->dobj.control.kcontrol);
900 list_add(&sbe->dobj.list, &tplg->comp->dobj_list);