ASoC: SOF: ipc4: avoid uninitialized default instance 0
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Mon, 7 Aug 2023 21:09:42 +0000 (16:09 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 7 Aug 2023 22:09:32 +0000 (23:09 +0100)
commitdefc0c638d20eec17ebb3dbf82709aba1ac2f0d4
tree7261a3ca4f2e8bc56390add02d22f3c79850a7c9
parent7a52d7062e02af4a479da24b40cfd76b54c0cd6c
ASoC: SOF: ipc4: avoid uninitialized default instance 0

When a pipeline contains multiple DAI widgets, the pipe_widget is not
set up except for the first DAI. This result in the pipe_widget having
a default instance 0, which can conflict with another real the
pipeline instance 0 and leads to spurious transitions.

This patch makes sure the instance_id is properly initialized to a
-EINVAL value.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20230807210959.506849-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dai-ops.c
sound/soc/sof/ipc4-topology.c
sound/soc/sof/topology.c