Lines Matching defs:buffer
1463 * sof_comp_alloc - allocate and initialize buffer for a new component
1578 struct sof_ipc_buffer *buffer;
1581 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL);
1582 if (!buffer)
1586 buffer->comp.hdr.size = sizeof(*buffer);
1587 buffer->comp.hdr.cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_BUFFER_NEW;
1588 buffer->comp.id = swidget->comp_id;
1589 buffer->comp.type = SOF_COMP_BUFFER;
1590 buffer->comp.pipeline_id = index;
1591 buffer->comp.core = swidget->core;
1593 ret = sof_parse_tokens(scomp, buffer, buffer_tokens,
1597 dev_err(scomp->dev, "error: parse buffer tokens failed %d\n",
1599 kfree(buffer);
1603 dev_dbg(scomp->dev, "buffer %s: size %d caps 0x%x\n",
1604 swidget->widget->name, buffer->size, buffer->caps);
1606 swidget->private = buffer;
1608 ret = sof_ipc_tx_message(sdev->ipc, buffer->comp.hdr.cmd, buffer,
1609 sizeof(*buffer), r, sizeof(*r));
1611 dev_err(scomp->dev, "error: buffer %s load failed\n",
1613 kfree(buffer);
2709 /* allocate playback page table buffer */
2739 /* allocate capture page table buffer */
3489 * buffer. Since only buffer linked to component is supported by
3491 * do not send it to FW when both source and sink are not buffer
3495 dev_dbg(scomp->dev, "warning: neither Linked source component %s nor sink component %s is of buffer type, ignoring link\n",