Skip to content

Commit

Permalink
ASoC: SOF: sof-client-probes: Only load the driver if IPC3 is used
Browse files Browse the repository at this point in the history
[ Upstream commit 9b93eda ]

The current implementation of probes only supports IPC3 and should not be
loaded for other IPC implementation.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220712131022.1124-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
ujfalusi authored and gregkh committed Aug 25, 2022
1 parent 4894524 commit 7218511
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/soc/sof/sof-client-probes.c
Expand Up @@ -693,6 +693,10 @@ static int sof_probes_client_probe(struct auxiliary_device *auxdev,
if (!sof_probes_enabled)
return -ENXIO;

/* only ipc3 is supported */
if (sof_client_get_ipc_type(cdev) != SOF_IPC)
return -ENXIO;

if (!dev->platform_data) {
dev_err(dev, "missing platform data\n");
return -ENODEV;
Expand Down

0 comments on commit 7218511

Please sign in to comment.