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

Commit 977e54d3 authored by Fred Oh's avatar Fred Oh
Browse files

ASoC: msm8994: Fix channel mapping for audio recording



Input parameters are wrongly used. Fixed tx channel parameters
for the proper usage.

Change-Id: I68ca13efd581bacf9199fa24e3a2e8e0de6ae4f6
Signed-off-by: default avatarFred Oh <fred@codeaurora.org>
parent 5656dbf3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -167,8 +167,8 @@ static int msm_snd_hw_params(struct snd_pcm_substream *substream,
			pr_err("%s: RX failed to set cpu chan map error %d\n",
			__func__, ret);
	} else {
		ret = snd_soc_dai_set_channel_map(cpu_dai, 0, 0,
		 msm_slim_0_tx_ch, tx_ch);
		ret = snd_soc_dai_set_channel_map(cpu_dai,
			msm_slim_0_tx_ch, tx_ch, 0, 0);
		if (ret < 0)
			pr_err("%s: TX failed to set cpu chan map error %d\n",
			__func__, ret);