ASoC: SOF: sof-probes: Correct the function names used for snd_soc_cdai_ops

The snd_soc_cdai_ops have startup and shutdown callbacks defined unlike
the component callbacks where open and free is used.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20210916103211.1573-7-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Peter Ujfalusi 2021-09-16 13:32:11 +03:00 committed by Mark Brown
parent f95b4152ad
commit 49efed5058
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -230,7 +230,7 @@ int sof_ipc_probe_points_remove(struct snd_sof_dev *sdev,
}
EXPORT_SYMBOL(sof_ipc_probe_points_remove);
static int sof_probe_compr_open(struct snd_compr_stream *cstream,
static int sof_probe_compr_startup(struct snd_compr_stream *cstream,
struct snd_soc_dai *dai)
{
struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(dai->component);
@ -246,7 +246,7 @@ static int sof_probe_compr_open(struct snd_compr_stream *cstream,
return 0;
}
static int sof_probe_compr_free(struct snd_compr_stream *cstream,
static int sof_probe_compr_shutdown(struct snd_compr_stream *cstream,
struct snd_soc_dai *dai)
{
struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(dai->component);
@ -322,8 +322,8 @@ static int sof_probe_compr_pointer(struct snd_compr_stream *cstream,
}
struct snd_soc_cdai_ops sof_probe_compr_ops = {
.startup = sof_probe_compr_open,
.shutdown = sof_probe_compr_free,
.startup = sof_probe_compr_startup,
.shutdown = sof_probe_compr_shutdown,
.set_params = sof_probe_compr_set_params,
.trigger = sof_probe_compr_trigger,
.pointer = sof_probe_compr_pointer,