Lines Matching defs:host
380 struct sof_ipc_comp_host *host;
381 size_t ipc_size = sizeof(*host);
384 host = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id);
385 if (!host)
387 swidget->private = host;
389 /* configure host comp IPC message */
390 host->comp.type = SOF_COMP_HOST;
391 host->config.hdr.size = sizeof(host->config);
394 host->direction = SOF_IPC_STREAM_CAPTURE;
396 host->direction = SOF_IPC_STREAM_PLAYBACK;
399 ret = sof_update_ipc_object(scomp, host, SOF_PCM_TOKENS, swidget->tuples,
400 swidget->num_tuples, sizeof(*host), 1);
405 ret = sof_update_ipc_object(scomp, &host->config, SOF_COMP_TOKENS, swidget->tuples,
406 swidget->num_tuples, sizeof(host->config), 1);
410 dev_dbg(scomp->dev, "loaded host %s\n", swidget->widget->name);
411 sof_dbg_comp_config(scomp, &host->config);