mirror of
https://github.com/torvalds/linux.git
synced 2026-04-29 12:02:35 -04:00
ASoC: SOF: Convert the generic probe support to SOF client
Add a new client driver for probes support and move all the probes-related code from the core to the client driver. The probes client driver registers a component driver with one CPU DAI driver for extraction and creates a new sound card with one DUMMY DAI link with a dummy codec that will be used for extracting audio data from specific points in the audio pipeline. The probes debugfs ops are based on the initial implementation by Cezary Rojewski and have been moved out of the SOF core into the client driver making it easier to maintain. This change will make it easier for the probes functionality to be added for all platforms without having the need to modify the existing(15+) machine drivers. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@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/20220210150525.30756-10-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
cac0b0887e
commit
3dc0d70917
@@ -201,27 +201,6 @@ struct snd_sof_dsp_ops {
|
||||
/* pcm ack */
|
||||
int (*pcm_ack)(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream); /* optional */
|
||||
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_SOF_DEBUG_PROBES)
|
||||
/* Except for probe_pointer, all probe ops are mandatory */
|
||||
int (*probe_assign)(struct snd_sof_dev *sdev,
|
||||
struct snd_compr_stream *cstream,
|
||||
struct snd_soc_dai *dai); /* mandatory */
|
||||
int (*probe_free)(struct snd_sof_dev *sdev,
|
||||
struct snd_compr_stream *cstream,
|
||||
struct snd_soc_dai *dai); /* mandatory */
|
||||
int (*probe_set_params)(struct snd_sof_dev *sdev,
|
||||
struct snd_compr_stream *cstream,
|
||||
struct snd_compr_params *params,
|
||||
struct snd_soc_dai *dai); /* mandatory */
|
||||
int (*probe_trigger)(struct snd_sof_dev *sdev,
|
||||
struct snd_compr_stream *cstream, int cmd,
|
||||
struct snd_soc_dai *dai); /* mandatory */
|
||||
int (*probe_pointer)(struct snd_sof_dev *sdev,
|
||||
struct snd_compr_stream *cstream,
|
||||
struct snd_compr_tstamp *tstamp,
|
||||
struct snd_soc_dai *dai); /* optional */
|
||||
#endif
|
||||
|
||||
/* host read DSP stream data */
|
||||
int (*ipc_msg_data)(struct snd_sof_dev *sdev,
|
||||
struct snd_pcm_substream *substream,
|
||||
@@ -446,10 +425,6 @@ struct snd_sof_dev {
|
||||
int ipc_timeout;
|
||||
int boot_timeout;
|
||||
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_SOF_DEBUG_PROBES)
|
||||
unsigned int extractor_stream_tag;
|
||||
#endif
|
||||
|
||||
/* DMA for Trace */
|
||||
struct snd_dma_buffer dmatb;
|
||||
struct snd_dma_buffer dmatp;
|
||||
|
||||
Reference in New Issue
Block a user