Commit 49efed50 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown

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: default avatarPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20210916103211.1573-7-peter.ujfalusi@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent f95b4152
...@@ -230,8 +230,8 @@ int sof_ipc_probe_points_remove(struct snd_sof_dev *sdev, ...@@ -230,8 +230,8 @@ int sof_ipc_probe_points_remove(struct snd_sof_dev *sdev,
} }
EXPORT_SYMBOL(sof_ipc_probe_points_remove); 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_soc_dai *dai)
{ {
struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(dai->component); struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(dai->component);
int ret; int ret;
...@@ -246,8 +246,8 @@ static int sof_probe_compr_open(struct snd_compr_stream *cstream, ...@@ -246,8 +246,8 @@ static int sof_probe_compr_open(struct snd_compr_stream *cstream,
return 0; 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_soc_dai *dai)
{ {
struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(dai->component); struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(dai->component);
struct sof_probe_point_desc *desc; struct sof_probe_point_desc *desc;
...@@ -322,8 +322,8 @@ static int sof_probe_compr_pointer(struct snd_compr_stream *cstream, ...@@ -322,8 +322,8 @@ static int sof_probe_compr_pointer(struct snd_compr_stream *cstream,
} }
struct snd_soc_cdai_ops sof_probe_compr_ops = { struct snd_soc_cdai_ops sof_probe_compr_ops = {
.startup = sof_probe_compr_open, .startup = sof_probe_compr_startup,
.shutdown = sof_probe_compr_free, .shutdown = sof_probe_compr_shutdown,
.set_params = sof_probe_compr_set_params, .set_params = sof_probe_compr_set_params,
.trigger = sof_probe_compr_trigger, .trigger = sof_probe_compr_trigger,
.pointer = sof_probe_compr_pointer, .pointer = sof_probe_compr_pointer,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment