Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ASoC: SOF: topology: Add sample rate token to tone tokens for parsing
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
  • Loading branch information
ranj063 committed Jun 24, 2018
commit ee73865b7ee08bbb50e8735e1d16b4c9818fb1ef
7 changes: 5 additions & 2 deletions sound/soc/sof/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ static const struct sof_topology_token src_tokens[] = {

/* Tone */
static const struct sof_topology_token tone_tokens[] = {
{SOF_TKN_TONE_SAMPLE_RATE, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
offsetof(struct sof_ipc_comp_tone, sample_rate), 0},
};

/* PCM */
Expand Down Expand Up @@ -1228,8 +1230,9 @@ static int sof_widget_load_siggen(struct snd_soc_component *scomp, int index,
return ret;
}

dev_dbg(sdev->dev, "tone %s: frequency %d amplitude %d\n",
swidget->widget->name, tone.frequency, tone.amplitude);
dev_dbg(sdev->dev, "tone %s: frequency %d amplitude %d sample rate %d\n",
swidget->widget->name, tone.frequency, tone.amplitude,
tone.sample_rate);
sof_dbg_comp_config(scomp, &tone.config);

return sof_ipc_tx_message(sdev->ipc,
Expand Down