Lines Matching refs:tone
418 struct sof_ipc_comp_tone *tone; in sof_ipc3_widget_setup_comp_tone() local
419 size_t ipc_size = sizeof(*tone); in sof_ipc3_widget_setup_comp_tone()
422 tone = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); in sof_ipc3_widget_setup_comp_tone()
423 if (!tone) in sof_ipc3_widget_setup_comp_tone()
426 swidget->private = tone; in sof_ipc3_widget_setup_comp_tone()
429 tone->comp.type = SOF_COMP_TONE; in sof_ipc3_widget_setup_comp_tone()
430 tone->config.hdr.size = sizeof(tone->config); in sof_ipc3_widget_setup_comp_tone()
433 ret = sof_update_ipc_object(scomp, &tone->config, SOF_COMP_TOKENS, swidget->tuples, in sof_ipc3_widget_setup_comp_tone()
434 swidget->num_tuples, sizeof(tone->config), 1); in sof_ipc3_widget_setup_comp_tone()
442 swidget->widget->name, tone->frequency, tone->amplitude); in sof_ipc3_widget_setup_comp_tone()
443 sof_dbg_comp_config(scomp, &tone->config); in sof_ipc3_widget_setup_comp_tone()