OSDN Git Service

ASoC: qcom: Set dai_link id to each dai_link
authorRohit kumar <rohitkr@codeaurora.org>
Thu, 8 Nov 2018 13:41:40 +0000 (19:11 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 13 Nov 2018 23:08:33 +0000 (15:08 -0800)
commit67fd1437d11620de8768b22fe20942e752ed52e9
treeb4905f8df5c7afcec7c4e9fbc051418d3762c6ca
parent9ee325d029c4abb75716851ce38863845911d605
ASoC: qcom: Set dai_link id to each dai_link

Frontend dai_link id is used for closing ADM sessions.
During concurrent usecase when one session is closed,
it closes other ADM session associated with other usecase
too. Dai_link->id should always point to Frontend dai id.
Set cpu_dai id as dai_link id to fix the issue.

Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/common.c