[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201113161859.1775473-11-david.m.ertman@intel.com>
Date: Fri, 13 Nov 2020 08:18:59 -0800
From: Dave Ertman <david.m.ertman@...el.com>
To: alsa-devel@...a-project.org
Cc: tiwai@...e.de, broonie@...nel.org, linux-rdma@...r.kernel.org,
jgg@...dia.com, dledford@...hat.com, netdev@...r.kernel.org,
davem@...emloft.net, kuba@...nel.org, gregkh@...uxfoundation.org,
ranjani.sridharan@...ux.intel.com,
pierre-louis.bossart@...ux.intel.com, fred.oh@...ux.intel.com,
parav@...lanox.com, shiraz.saleem@...el.com,
dan.j.williams@...el.com, kiran.patil@...el.com,
linux-kernel@...r.kernel.org, leonro@...dia.com
Subject: [PATCH v4 10/10] ASoC: SOF: Intel: CNL: register probes client
From: Ranjani Sridharan <ranjani.sridharan@...ux.intel.com>
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@...ux.intel.com>
Tested-by: Fred Oh <fred.oh@...ux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@...ux.intel.com>
Signed-off-by: Dave Ertman <david.m.ertman@...el.com>
---
sound/soc/sof/intel/cnl.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/sound/soc/sof/intel/cnl.c b/sound/soc/sof/intel/cnl.c
index 20afb622c315..6d15b871dc17 100644
--- a/sound/soc/sof/intel/cnl.c
+++ b/sound/soc/sof/intel/cnl.c
@@ -19,6 +19,7 @@
#include "hda.h"
#include "hda-ipc.h"
#include "../sof-audio.h"
+#include "../sof-client.h"
#include "intel-client.h"
static const struct snd_sof_debugfs_map cnl_dsp_debugfs[] = {
@@ -233,12 +234,26 @@ void cnl_ipc_dump(struct snd_sof_dev *sdev)
static int cnl_register_clients(struct snd_sof_dev *sdev)
{
- return intel_register_ipc_test_clients(sdev);
+ int ret;
+
+ ret = intel_register_ipc_test_clients(sdev);
+ if (ret < 0)
+ return ret;
+
+#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_PROBES)
+ return sof_client_dev_register(sdev, "probes", 0);
+#endif
+
+ return 0;
}
static void cnl_unregister_clients(struct snd_sof_dev *sdev)
{
intel_unregister_ipc_test_clients(sdev);
+
+#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_PROBES)
+ sof_client_dev_unregister(sdev, "probes", 0);
+#endif
}
/* cannonlake ops */
@@ -409,3 +424,4 @@ const struct sof_intel_dsp_desc jsl_chip_info = {
};
EXPORT_SYMBOL_NS(jsl_chip_info, SND_SOC_SOF_INTEL_HDA_COMMON);
MODULE_IMPORT_NS(SND_SOC_SOF_INTEL_CLIENT);
+MODULE_IMPORT_NS(SND_SOC_SOF_CLIENT);
--
2.26.2
Powered by blists - more mailing lists