From: Sylwester Nawrocki Date: Mon, 4 Mar 2019 16:17:14 +0000 (+0100) Subject: ASoC: samsung: i2s: Fix DAPM routes for capture stream X-Git-Tag: submit/tizen/20190329.020226~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=974ab062962f5dbe62f8744257540a24cb9a8d74;p=platform%2Fkernel%2Flinux-exynos.git ASoC: samsung: i2s: Fix DAPM routes for capture stream This patch sets missing stream_name of capture part of the DAI driver so we can define DAPM routing properly also for the capture stream. Fixes: 64aba9bca5bd ("ASoC: samsung: i2s: Add widgets and routes for DPCM support") Change-Id: I7ac244afcd74d92cf92da1d9d7d9606285ea0360 Signed-off-by: Sylwester Nawrocki --- diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index d3d250ea4f6b..23ff8579c3c1 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c @@ -1134,7 +1134,7 @@ static const struct snd_soc_dapm_route samsung_i2s_dapm_routes[] = { { "Playback Mixer", NULL, "Secondary" }, { "Mixer DAI TX", NULL, "Playback Mixer" }, - { "Playback Mixer", NULL, "Mixer DAI RX" }, + { "Primary Capture", NULL, "Mixer DAI RX" }, }; static const struct snd_soc_component_driver samsung_i2s_component = { @@ -1201,6 +1201,7 @@ static int i2s_alloc_dais(struct samsung_i2s_priv *priv, dai_drv->capture.channels_max = 2; dai_drv->capture.rates = i2s_dai_data->pcm_rates; dai_drv->capture.formats = SAMSUNG_I2S_FMTS; + dai_drv->capture.stream_name = "Primary Capture"; return 0; }