int (*manifest)(struct snd_soc_component *,
struct snd_soc_tplg_manifest *);
- /* bespoke kcontrol handlers available for binding */
+ /* vendor specific kcontrol handlers available for binding */
const struct snd_soc_tplg_kcontrol_ops *io_ops;
int io_ops_count;
};
u32 index; /* current block index */
u32 req_index; /* required index, only loaded/free matching blocks */
- /* kcontrol operations */
+ /* vendor specific kcontrol operations */
const struct snd_soc_tplg_kcontrol_ops *io_ops;
int io_ops_count;
{
int i;
- /* try and map standard kcontrols handler first */
- for (i = 0; i < num_ops; i++) {
-
- if (ops[i].id == hdr->ops.put)
- k->put = ops[i].put;
- if (ops[i].id == hdr->ops.get)
- k->get = ops[i].get;
- if (ops[i].id == hdr->ops.info)
- k->info = ops[i].info;
- }
-
- /* standard handlers found ? */
- if (k->put && k->get && k->info)
- return 0;
-
- /* none found so try bespoke handlers */
+ /* try and map vendor specific kcontrol handlers first */
for (i = 0; i < num_bops; i++) {
if (k->put == NULL && bops[i].id == hdr->ops.put)
k->info = bops[i].info;
}
- /* bespoke handlers found ? */
+ /* vendor specific handlers found ? */
+ if (k->put && k->get && k->info)
+ return 0;
+
+ /* none found so try standard kcontrol handlers */
+ for (i = 0; i < num_ops; i++) {
+
+ if (k->put == NULL && ops[i].id == hdr->ops.put)
+ k->put = ops[i].put;
+ if (k->get == NULL && ops[i].id == hdr->ops.get)
+ k->get = ops[i].get;
+ if (k->info == NULL && ops[i].id == hdr->ops.info)
+ k->info = ops[i].info;
+ }
+
+ /* standard handlers found ? */
if (k->put && k->get && k->info)
return 0;