Lines Matching refs:sbe
482 struct soc_bytes_ext *sbe;
485 sbe = (struct soc_bytes_ext *)k->private_value;
502 if (sbe->max > 512)
508 if (!sbe->put &&
510 sbe->put = ext_ops[i].put;
511 if (!sbe->get &&
513 sbe->get = ext_ops[i].get;
516 if ((k->access & SNDRV_CTL_ELEM_ACCESS_TLV_READ) && !sbe->get)
518 if ((k->access & SNDRV_CTL_ELEM_ACCESS_TLV_WRITE) && !sbe->put)
650 struct soc_bytes_ext *sbe;
666 sbe = devm_kzalloc(tplg->dev, sizeof(*sbe), GFP_KERNEL);
667 if (sbe == NULL)
679 kc.private_value = (long)sbe;
683 sbe->max = le32_to_cpu(be->max);
684 sbe->dobj.type = SND_SOC_DOBJ_BYTES;
686 sbe->dobj.unload = tplg->ops->control_unload;
687 INIT_LIST_HEAD(&sbe->dobj.list);
702 ret = soc_tplg_add_kcontrol(tplg, &kc, &sbe->dobj.control.kcontrol);
706 list_add(&sbe->dobj.list, &tplg->comp->dobj_list);
1254 struct soc_bytes_ext *sbe;
1264 sbe = devm_kzalloc(tplg->dev, sizeof(*sbe), GFP_KERNEL);
1265 if (!sbe)
1275 kc->private_value = (long)sbe;
1282 sbe->max = le32_to_cpu(be->max);
1283 INIT_LIST_HEAD(&sbe->dobj.list);