Skip to content

Commit ecec880

Browse files
committed
ASoC: SOF: Intel: CNL: register probes client
Register the client device for probes support on the CNL platform. Creating this client device alleviates the need for modifying the sound card definitions in the existing machine drivers to add support for the new probes feature in the FW. This will result in the creation of a separate sound card that can be used for audio data extraction from user specified points in the audio pipeline. Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Tested-by: Fred Oh <fred.oh@linux.intel.com> Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1 parent 500835c commit ecec880

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

sound/soc/sof/intel/cnl.c

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,26 @@ void cnl_ipc_dump(struct snd_sof_dev *sdev)
235235

236236
static int cnl_register_clients(struct snd_sof_dev *sdev)
237237
{
238-
return intel_register_ipc_test_clients(sdev);
238+
int ret;
239+
240+
ret = intel_register_ipc_test_clients(sdev);
241+
if (ret < 0)
242+
return ret;
243+
244+
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_PROBES)
245+
return sof_client_dev_register(sdev, "probes", 0);
246+
#endif
247+
248+
return 0;
239249
}
240250

241251
static void cnl_unregister_clients(struct snd_sof_dev *sdev)
242252
{
243253
intel_unregister_ipc_test_clients(sdev);
254+
255+
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_PROBES)
256+
sof_client_dev_unregister(sdev, "probes", 0);
257+
#endif
244258
}
245259

246260
/* cannonlake ops */
@@ -411,3 +425,4 @@ const struct sof_intel_dsp_desc jsl_chip_info = {
411425
};
412426
EXPORT_SYMBOL_NS(jsl_chip_info, SND_SOC_SOF_INTEL_HDA_COMMON);
413427
MODULE_IMPORT_NS(SND_SOC_SOF_INTEL_CLIENT);
428+
MODULE_IMPORT_NS(SND_SOC_SOF_CLIENT);

0 commit comments

Comments
 (0)