ASoC: SOF: ipc4-topology: support NHLT device type
authorBrent Lu <brent.lu@intel.com>
Mon, 27 Nov 2023 12:06:57 +0000 (14:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 22 Mar 2024 11:40:46 +0000 (12:40 +0100)
commit188ab4bfd29d7c91e35873a360a31e95a6ff0816
tree9b96076ad7fccc6f7ec4a44816b43e1dc4c8fd17
parent02545bc57512b7660625e454e60e3fb0d07f660d
ASoC: SOF: ipc4-topology: support NHLT device type

The endpoint in NHLT table for a SSP port could have the device type
NHLT_DEVICE_BT or NHLT_DEVICE_I2S. Use intel_nhlt_ssp_device_type()
function to retrieve the device type before querying the endpoint
blob to make sure we are always using correct device type parameter.

Signed-off-by: Brent Lu <brent.lu@intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Message-ID: <20231127120657.19764-3-peter.ujfalusi@linux.intel.com>
sound/soc/sof/ipc4-topology.c