Skip to content

Commit d1a7af0

Browse files
ranj063broonie
authored andcommitted
AsoC: dapm: export a couple of functions
Export a couple of DAPM functions that can be used by ASoC drivers to determine connected widgets when a PCM is started. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Link: https://lore.kernel.org/r/20210927120517.20505-6-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 93d7124 commit d1a7af0

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

include/sound/soc-dpcm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream, int cmd);
159159
int dpcm_be_dai_prepare(struct snd_soc_pcm_runtime *fe, int stream);
160160
int dpcm_dapm_stream_event(struct snd_soc_pcm_runtime *fe, int dir,
161161
int event);
162+
bool dpcm_end_walk_at_be(struct snd_soc_dapm_widget *widget, enum snd_soc_dapm_direction dir);
162163

163164
#define dpcm_be_dai_startup_rollback(fe, stream, last) \
164165
dpcm_be_dai_stop(fe, stream, 0, last)

sound/soc/soc-dapm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,11 +1331,13 @@ int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream,
13311331

13321332
return paths;
13331333
}
1334+
EXPORT_SYMBOL_GPL(snd_soc_dapm_dai_get_connected_widgets);
13341335

13351336
void snd_soc_dapm_dai_free_widgets(struct snd_soc_dapm_widget_list **list)
13361337
{
13371338
dapm_widget_list_free(list);
13381339
}
1340+
EXPORT_SYMBOL_GPL(snd_soc_dapm_dai_free_widgets);
13391341

13401342
/*
13411343
* Handler for regulator supply widget.

sound/soc/soc-pcm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,8 +1262,7 @@ static int widget_in_list(struct snd_soc_dapm_widget_list *list,
12621262
return 0;
12631263
}
12641264

1265-
static bool dpcm_end_walk_at_be(struct snd_soc_dapm_widget *widget,
1266-
enum snd_soc_dapm_direction dir)
1265+
bool dpcm_end_walk_at_be(struct snd_soc_dapm_widget *widget, enum snd_soc_dapm_direction dir)
12671266
{
12681267
struct snd_soc_card *card = widget->dapm->card;
12691268
struct snd_soc_pcm_runtime *rtd;
@@ -1281,6 +1280,7 @@ static bool dpcm_end_walk_at_be(struct snd_soc_dapm_widget *widget,
12811280

12821281
return false;
12831282
}
1283+
EXPORT_SYMBOL_GPL(dpcm_end_walk_at_be);
12841284

12851285
int dpcm_path_get(struct snd_soc_pcm_runtime *fe,
12861286
int stream, struct snd_soc_dapm_widget_list **list)

0 commit comments

Comments
 (0)