Skip to content

Commit 132b2ee

Browse files
ujfalusiplbossart
authored andcommitted
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>
1 parent 2cd9f7e commit 132b2ee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sound/soc/sof/sof-probes.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ int sof_ipc_probe_points_remove(struct snd_sof_dev *sdev,
230230
}
231231
EXPORT_SYMBOL(sof_ipc_probe_points_remove);
232232

233-
static int sof_probe_compr_open(struct snd_compr_stream *cstream,
234-
struct snd_soc_dai *dai)
233+
static int sof_probe_compr_startup(struct snd_compr_stream *cstream,
234+
struct snd_soc_dai *dai)
235235
{
236236
struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(dai->component);
237237
int ret;
@@ -246,8 +246,8 @@ static int sof_probe_compr_open(struct snd_compr_stream *cstream,
246246
return 0;
247247
}
248248

249-
static int sof_probe_compr_free(struct snd_compr_stream *cstream,
250-
struct snd_soc_dai *dai)
249+
static int sof_probe_compr_shutdown(struct snd_compr_stream *cstream,
250+
struct snd_soc_dai *dai)
251251
{
252252
struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(dai->component);
253253
struct sof_probe_point_desc *desc;
@@ -322,8 +322,8 @@ static int sof_probe_compr_pointer(struct snd_compr_stream *cstream,
322322
}
323323

324324
struct snd_soc_cdai_ops sof_probe_compr_ops = {
325-
.startup = sof_probe_compr_open,
326-
.shutdown = sof_probe_compr_free,
325+
.startup = sof_probe_compr_startup,
326+
.shutdown = sof_probe_compr_shutdown,
327327
.set_params = sof_probe_compr_set_params,
328328
.trigger = sof_probe_compr_trigger,
329329
.pointer = sof_probe_compr_pointer,

0 commit comments

Comments
 (0)