Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f0af4ae authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown
Browse files

ASoC: omap-abe-twl6040: Register machine level DMIC DAPM routes with the card



Machine level DAPM widgets and routes should be registered in the card's DAPM
context, rather than in the CODEC's context.

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 7cb5e1bb
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -203,8 +203,7 @@ static const struct snd_soc_dapm_route dmic_audio_map[] = {


static int omap_abe_dmic_init(struct snd_soc_pcm_runtime *rtd)
static int omap_abe_dmic_init(struct snd_soc_pcm_runtime *rtd)
{
{
	struct snd_soc_codec *codec = rtd->codec;
	struct snd_soc_dapm_context *dapm = &rtd->card->dapm;
	struct snd_soc_dapm_context *dapm = &codec->dapm;


	return snd_soc_dapm_add_routes(dapm, dmic_audio_map,
	return snd_soc_dapm_add_routes(dapm, dmic_audio_map,
				ARRAY_SIZE(dmic_audio_map));
				ARRAY_SIZE(dmic_audio_map));