Message ID | 20220712131022.1124-1-peter.ujfalusi@linux.intel.com |
---|---|
State | Accepted |
Commit | 9b93eda355089b36482f7a2f134bdd24be70f907 |
Headers | show |
Series | ASoC: SOF: sof-client-probes: Only load the driver if IPC3 is used | expand |
diff --git a/sound/soc/sof/sof-client-probes.c b/sound/soc/sof/sof-client-probes.c index 1f1ea93a7fbf..e7e78d1a8ec3 100644 --- a/sound/soc/sof/sof-client-probes.c +++ b/sound/soc/sof/sof-client-probes.c @@ -694,6 +694,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;