ALSA: hda: intel-nhlt: add intel_nhlt_ssp_device_type() function
authorBrent Lu <brent.lu@intel.com>
Mon, 27 Nov 2023 12:06:56 +0000 (14:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 22 Mar 2024 11:40:46 +0000 (12:40 +0100)
commit02545bc57512b7660625e454e60e3fb0d07f660d
treeb8a7a6fa6741674d4424037888404b12d83fe061
parent9f2347842b526cbc2655068591fb0166362d2999
ALSA: hda: intel-nhlt: add intel_nhlt_ssp_device_type() function

Add a helper function intel_nhlt_ssp_device_type() to detect the type
of specific SSP port. The result is nhlt_device_type enum type which
could be NHLT_DEVICE_BT or NHLT_DEVICE_I2S.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Message-ID: <20231127120657.19764-2-peter.ujfalusi@linux.intel.com>
include/sound/intel-nhlt.h
sound/hda/intel-nhlt.c