Skip to content

Commit

Permalink
ASoC: SOF: topology: make process type optional
Browse files Browse the repository at this point in the history
As components can be now identified with a UUID based mechanism, the
process type is no longer required. For new DSP components, process and
its component type can be set to SOF_PROCESS_NONE and SOF_COMP_NONE.
Allow this combination in topology load, modify the load time check for
process type to reflect this.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Curtis Malainey <curtis@malainey.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200904132744.1699575-17-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
keyonjie authored and broonie committed Sep 7, 2020
1 parent d2306f4 commit 988d941
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sound/soc/sof/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -2197,12 +2197,6 @@ static int sof_process_load(struct snd_soc_component *scomp, int index,
int ret;
int i;

if (type == SOF_COMP_NONE) {
dev_err(scomp->dev, "error: invalid process comp type %d\n",
type);
return -EINVAL;
}

/* allocate struct for widget control data sizes and types */
if (widget->num_kcontrols) {
wdata = kcalloc(widget->num_kcontrols,
Expand Down

0 comments on commit 988d941

Please sign in to comment.