ASoC: SOF: ipc4: get pipeline instance id from pipe_widget->instance_id
authorBard Liao <yung-chuan.liao@linux.intel.com>
Tue, 8 Nov 2022 00:29:10 +0000 (08:29 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 9 Nov 2022 13:44:20 +0000 (13:44 +0000)
commita2ba1f70b301b366666e739a1f951f57b8af2cce
treee03c30bc8027757718796db5ffc46de2453a010d
parenteb2eaf50395a8164f4f9e0021609ddb40ad97e87
ASoC: SOF: ipc4: get pipeline instance id from pipe_widget->instance_id

Currently we set pipeline instance id = swidget->pipeline_id, but
pipeline_id is from topology and can be any number. In fact, the
number of pipelines is limited. This patch use ida to allocate pipeline
instance id and will be used for pipeline instance id in the IPC
message.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20221108002910.2819709-4-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dai.c
sound/soc/sof/ipc4-pcm.c
sound/soc/sof/ipc4-topology.c