Skip to content

Commit 7cc5f8a

Browse files
ranj063plbossart
authored andcommitted
ASoC: SOF: remove snd_sof_pipeline_find()
It is not used. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1 parent 019126a commit 7cc5f8a

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

sound/soc/sof/sof-audio.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -610,22 +610,6 @@ int sof_set_hw_params_upon_resume(struct device *dev)
610610
return snd_sof_dsp_hw_params_upon_resume(sdev);
611611
}
612612

613-
const struct sof_ipc_pipe_new *snd_sof_pipeline_find(struct snd_sof_dev *sdev,
614-
int pipeline_id)
615-
{
616-
const struct snd_sof_widget *swidget;
617-
618-
list_for_each_entry(swidget, &sdev->widget_list, list)
619-
if (swidget->id == snd_soc_dapm_scheduler) {
620-
const struct sof_ipc_pipe_new *pipeline =
621-
swidget->private;
622-
if (pipeline->pipeline_id == pipeline_id)
623-
return pipeline;
624-
}
625-
626-
return NULL;
627-
}
628-
629613
int sof_set_up_pipelines(struct snd_sof_dev *sdev, bool verify)
630614
{
631615
struct sof_ipc_fw_version *v = &sdev->fw_ready.version;

sound/soc/sof/sof-audio.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ struct snd_sof_pcm *snd_sof_find_spcm_comp(struct snd_soc_component *scomp,
222222
int *direction);
223223
struct snd_sof_pcm *snd_sof_find_spcm_pcm_id(struct snd_soc_component *scomp,
224224
unsigned int pcm_id);
225-
const struct sof_ipc_pipe_new *snd_sof_pipeline_find(struct snd_sof_dev *sdev,
226-
int pipeline_id);
227225
void snd_sof_pcm_period_elapsed(struct snd_pcm_substream *substream);
228226
void snd_sof_pcm_init_elapsed_work(struct work_struct *work);
229227

0 commit comments

Comments
 (0)