Skip to content
Permalink
Browse files
ASoC: SOF: Intel: hda: retrieve SSP mask for analog audio devices
Use the new NHLT helper.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
  • Loading branch information
plbossart committed Dec 14, 2021
1 parent 5130cba commit 96625939a8f1099dff79e7acd81bec23773c72bf
Showing 1 changed file with 4 additions and 2 deletions.
@@ -697,9 +697,11 @@ static int check_nhlt_ssp_mask(struct snd_sof_dev *sdev)

nhlt = intel_nhlt_init(sdev->dev);
if (nhlt && intel_nhlt_has_endpoint_type(nhlt, NHLT_LINK_SSP)) {
dev_dbg(sdev->dev, "NHLT_LINK_SSP detected\n");

/* TODO: find the mask */
ssp_mask = intel_nhlt_ssp_endpoint_mask(nhlt, NHLT_DEVICE_I2S);

dev_dbg(sdev->dev, "NHLT_LINK_SSP detected, ssp_mask %#x\n", ssp_mask);

intel_nhlt_free(nhlt);
}

0 comments on commit 9662593

Please sign in to comment.