|
@@ -3652,6 +3652,7 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w,
|
|
|
{
|
|
|
struct snd_soc_dapm_path *source_p, *sink_p;
|
|
|
struct snd_soc_dai *source, *sink;
|
|
|
+ struct snd_soc_pcm_runtime *rtd = w->priv;
|
|
|
const struct snd_soc_pcm_stream *config = w->params + w->params_select;
|
|
|
struct snd_pcm_substream substream;
|
|
|
struct snd_pcm_hw_params *params = NULL;
|
|
@@ -3711,6 +3712,7 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w,
|
|
|
goto out;
|
|
|
}
|
|
|
substream.runtime = runtime;
|
|
|
+ substream.private_data = rtd;
|
|
|
|
|
|
switch (event) {
|
|
|
case SND_SOC_DAPM_PRE_PMU:
|
|
@@ -3895,6 +3897,7 @@ outfree_w_param:
|
|
|
}
|
|
|
|
|
|
int snd_soc_dapm_new_pcm(struct snd_soc_card *card,
|
|
|
+ struct snd_soc_pcm_runtime *rtd,
|
|
|
const struct snd_soc_pcm_stream *params,
|
|
|
unsigned int num_params,
|
|
|
struct snd_soc_dapm_widget *source,
|
|
@@ -3963,6 +3966,7 @@ int snd_soc_dapm_new_pcm(struct snd_soc_card *card,
|
|
|
|
|
|
w->params = params;
|
|
|
w->num_params = num_params;
|
|
|
+ w->priv = rtd;
|
|
|
|
|
|
ret = snd_soc_dapm_add_path(&card->dapm, source, w, NULL, NULL);
|
|
|
if (ret)
|