Home
last modified time | relevance | path

Searched refs:drv (Results 1 – 25 of 45) sorted by relevance

12

/sof-2.7.6/src/include/sof/audio/
Dcomponent_ext.h47 assert(dev->drv->ops.free); in comp_free()
55 dev->drv->ops.free(dev); in comp_free()
90 if (dev->drv->ops.params) { in comp_params()
91 ret = dev->drv->ops.params(dev, params); in comp_params()
112 if (dev->drv->ops.dai_get_hw_params) in comp_dai_get_hw_params()
113 ret = dev->drv->ops.dai_get_hw_params(dev, params, dir); in comp_dai_get_hw_params()
135 if (dev->drv->ops.cmd) in comp_cmd()
136 ret = dev->drv->ops.cmd(dev, cmd, data, max_data_size); in comp_cmd()
161 assert(dev->drv->ops.trigger); in comp_trigger()
164 comp_trigger_remote(dev, cmd) : dev->drv->ops.trigger(dev, cmd); in comp_trigger()
[all …]
Dcomponent.h251 struct comp_dev *(*create)(const struct comp_driver *drv,
433 const struct comp_driver *drv; /**< pointer to component driver */ member
488 const struct comp_driver *drv; /**< driver */ member
557 static inline struct comp_dev *comp_alloc(const struct comp_driver *drv, in comp_alloc() argument
566 dev->drv = drv; in comp_alloc()
569 trace_comp_drv_get_tr_ctx(dev->drv), sizeof(struct tr_ctx)); in comp_alloc()
613 int comp_register(struct comp_driver_info *drv);
619 void comp_unregister(struct comp_driver_info *drv);
/sof-2.7.6/src/include/sof/lib/
Ddai.h188 const struct dai_driver *drv; member
206 #define trace_dai_get_tr_ctx(dai_p) ((dai_p)->drv->tctx)
207 #define trace_dai_get_id(dai_p) ((dai_p)->drv->type)
365 int ret = dai->drv->ops.set_config(dai, config, spec_config); in dai_set_config()
375 int ret = dai->drv->ops.trigger(dai, cmd, direction); in dai_trigger()
385 int ret = dai->drv->ops.pm_context_store(dai); in dai_pm_context_store()
395 int ret = dai->drv->ops.pm_context_restore(dai); in dai_pm_context_restore()
407 int ret = dai->drv->ops.get_hw_params(dai, params, dir); in dai_get_hw_params()
420 if (dai->drv->ops.hw_params) in dai_hw_params()
421 ret = dai->drv->ops.hw_params(dai, params); in dai_hw_params()
[all …]
/sof-2.7.6/test/cmocka/src/audio/mixer/
Dcomp_mock.c16 static struct comp_dev *mock_comp_new(const struct comp_driver *drv, in mock_comp_new() argument
22 dev->drv = drv; in mock_comp_new()
72 .drv = &comp_mock,
Dmixer_test.c41 switch (info->drv->type) { in comp_register()
45 info->drv, sizeof(struct comp_driver)); in comp_register()
50 err = memcpy_s(dst, sizeof(drv_mock), info->drv, in comp_register()
101 struct comp_driver *drv, in create_comp() argument
104 struct comp_dev *cd = drv->ops.create(drv, ipc_config, NULL); in create_comp()
108 cd->drv = drv; in create_comp()
115 static void destroy_comp(struct comp_driver *drv, struct comp_dev *dev) in destroy_comp() argument
117 drv->ops.free(dev); in destroy_comp()
/sof-2.7.6/src/platform/baytrail/lib/
Ddai.c33 .drv = &ssp_driver,
49 .drv = &ssp_driver,
65 .drv = &ssp_driver,
82 .drv = &ssp_driver,
98 .drv = &ssp_driver,
114 .drv = &ssp_driver,
/sof-2.7.6/src/ipc/ipc4/
Dhelper.c53 const struct comp_driver *drv; in comp_new() local
56 drv = ipc4_get_comp_drv(IPC4_MOD_ID(comp->id)); in comp_new()
57 if (!drv) in comp_new()
75 dev = drv->ops.create(drv, &ipc_config, (void *)MAILBOX_HOSTBOX_BASE); in comp_new()
333 const struct comp_driver *drv = NULL; in ipc4_get_drv() local
343 if (!memcmp(info->drv->uid, uuid, UUID_SIZE)) { in ipc4_get_drv()
346 info->drv->type, in ipc4_get_drv()
347 info->drv->tctx->uuid_p); in ipc4_get_drv()
348 drv = info->drv; in ipc4_get_drv()
361 return drv; in ipc4_get_drv()
[all …]
/sof-2.7.6/src/audio/
Dcopier.c86 const struct comp_driver *drv; in create_host() local
89 drv = ipc4_get_drv((uint8_t *)&host); in create_host()
90 if (!drv) in create_host()
98 dev = drv->ops.create(drv, config, &ipc_host); in create_host()
119 const struct comp_driver *drv; in create_dai() local
124 drv = ipc4_get_drv((uint8_t *)&id); in create_dai()
125 if (!drv) in create_dai()
160 dev = drv->ops.create(drv, config, &dai); in create_dai()
181 static struct comp_dev *copier_new(const struct comp_driver *drv, in copier_new() argument
194 dev = comp_alloc(drv, sizeof(*dev)); in copier_new()
[all …]
Dswitch.c25 static struct comp_dev *switch_new(const struct comp_driver *drv, in switch_new() argument
85 .drv = &comp_switch,
Ddai.c151 static struct comp_dev *dai_new(const struct comp_driver *drv, in dai_new() argument
162 dev = comp_alloc(drv, sizeof(*dev)); in dai_new()
1005 cfg->type = dd->dai->drv->type; in dai_ts_config()
1011 if (!dd->dai->drv->ts_ops.ts_config) in dai_ts_config()
1014 return dd->dai->drv->ts_ops.ts_config(dd->dai, cfg); in dai_ts_config()
1022 if (!dd->dai->drv->ts_ops.ts_start) in dai_ts_start()
1025 return dd->dai->drv->ts_ops.ts_start(dd->dai, &dd->ts_config); in dai_ts_start()
1033 if (!dd->dai->drv->ts_ops.ts_stop) in dai_ts_stop()
1036 return dd->dai->drv->ts_ops.ts_stop(dd->dai, &dd->ts_config); in dai_ts_stop()
1044 if (!dd->dai->drv->ts_ops.ts_get) in dai_ts_get()
[all …]
Dcomponent.c32 int comp_register(struct comp_driver_info *drv) in comp_register() argument
37 list_item_prepend(&drv->list, &drivers->list); in comp_register()
43 void comp_unregister(struct comp_driver_info *drv) in comp_unregister() argument
48 list_item_del(&drv->list); in comp_unregister()
Dmixer.c133 static struct comp_dev *mixer_new(const struct comp_driver *drv, in mixer_new() argument
142 dev = comp_alloc(drv, sizeof(*dev)); in mixer_new()
473 static struct comp_dev *mixinout_new(const struct comp_driver *drv, in mixinout_new() argument
482 dev = comp_alloc(drv, sizeof(*dev)); in mixinout_new()
591 .drv = &comp_mixin,
619 .drv = &comp_mixer,
Dgoogle_hotword_detect.c86 static struct comp_dev *ghd_create(const struct comp_driver *drv, in ghd_create() argument
94 comp_cl_info(drv, "ghd_create()"); in ghd_create()
97 dev = comp_alloc(drv, COMP_SIZE(struct sof_ipc_comp_process)); in ghd_create()
476 .drv = &ghd_driver,
/sof-2.7.6/src/ipc/ipc3/
Dhelper.c73 const struct comp_driver *drv = NULL; in get_drv() local
82 if (info->drv->type == comp->type) { in get_drv()
83 drv = info->drv; in get_drv()
88 if (!drv) in get_drv()
121 if (!memcmp(info->drv->uid, comp_ext->uuid, in get_drv()
123 drv = info->drv; in get_drv()
128 if (!drv) in get_drv()
137 if (drv) in get_drv()
139 drv->type, drv->tctx->uuid_p); in get_drv()
143 return drv; in get_drv()
[all …]
/sof-2.7.6/src/platform/intel/cavs/lib/
Ddai.c57 .drv = &dmic_driver,
75 .drv = &dmic_driver,
137 dai[i].drv = &ssp_driver; in dai_init()
164 dai[i].drv = &hda_driver; in dai_init()
183 dai[i].drv = &alh_driver; in dai_init()
/sof-2.7.6/src/platform/amd/renoir/lib/
Ddai.c34 .drv = &acp_dmic_dai_driver,
54 .drv = &acp_spdai_driver,
75 .drv = &acp_btdai_driver,
/sof-2.7.6/src/platform/imx8m/lib/
Ddai.c35 .drv = &sai_driver,
55 .drv = &sai_driver,
/sof-2.7.6/src/platform/haswell/lib/
Ddai.c32 .drv = &ssp_driver,
48 .drv = &ssp_driver,
/sof-2.7.6/src/include/sof/audio/codec_adapter/codec/
Dgeneric.h31 static struct comp_dev *adapter_shim_new(const struct comp_driver *drv, \
35 return codec_adapter_new(drv, config, &(adapter), spec);\
55 .drv = &comp_codec_adapter, \
253 struct comp_dev *codec_adapter_new(const struct comp_driver *drv,
/sof-2.7.6/src/platform/imx8/lib/
Ddai.c36 .drv = &esai_driver,
65 .drv = &sai_driver,
/sof-2.7.6/src/audio/codec_adapter/
Dcodec_adapter.c36 struct comp_dev *codec_adapter_new(const struct comp_driver *drv, in codec_adapter_new() argument
46 comp_cl_dbg(drv, "codec_adapter_new() start"); in codec_adapter_new()
48 if (!drv || !config) { in codec_adapter_new()
49 comp_cl_err(drv, "codec_adapter_new(), wrong input params! drv = %x config = %x", in codec_adapter_new()
50 (uint32_t)drv, (uint32_t)config); in codec_adapter_new()
54 dev = comp_alloc(drv, sizeof(*dev)); in codec_adapter_new()
56 comp_cl_err(drv, "codec_adapter_new(), failed to allocate memory for comp_dev"); in codec_adapter_new()
60 dev->drv = drv; in codec_adapter_new()
/sof-2.7.6/src/platform/imx8ulp/lib/
Ddai.c42 .drv = &sai_driver,
/sof-2.7.6/src/lib/
Ddai.c184 dai->drv->type, dai->index, ret); in dai_put()
188 dai->drv->type, dai->index, dai->sref); in dai_put()
/sof-2.7.6/src/audio/dcblock/
Ddcblock.c67 static struct comp_dev *dcblock_new(const struct comp_driver *drv, in dcblock_new() argument
79 dev = comp_alloc(drv, sizeof(*dev)); in dcblock_new()
408 .drv = &comp_dcblock,
/sof-2.7.6/src/audio/asrc/
Dasrc.c251 static struct comp_dev *asrc_new(const struct comp_driver *drv, in asrc_new() argument
271 dev = comp_alloc(drv, sizeof(*dev)); in asrc_new()
483 ret = cd->dai_dev->drv->ops.dai_ts_config(cd->dai_dev); in asrc_dai_configure_timestamp()
495 ret = cd->dai_dev->drv->ops.dai_ts_start(cd->dai_dev); in asrc_dai_start_timestamp()
507 ret = cd->dai_dev->drv->ops.dai_ts_stop(cd->dai_dev); in asrc_dai_stop_timestamp()
520 return cd->dai_dev->drv->ops.dai_ts_get(cd->dai_dev, tsd); in asrc_dai_get_timestamp()
925 .drv = &comp_asrc,

12