diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2020-03-30 14:30:59 +0800 |
---|---|---|
committer | Shengjiu Wang <shengjiu.wang@nxp.com> | 2020-03-31 15:04:03 +0800 |
commit | 0bc59849c4b20ba7ae7526935af48123827e1655 (patch) | |
tree | 2a2a298928ef9d6d87cdde04bb2854dc8b995255 /sound/soc/fsl/imx-pcm-rpmsg.c | |
parent | ca2170e0fbdb4b8ac8cbd42db49cd144374da245 (diff) |
MLK-23702-2: ASoC: imx-pcm-rpmsg: Don't register codec driver if it is from DT
Don't register codec driver if it is from DT.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-pcm-rpmsg.c')
-rw-r--r-- | sound/soc/fsl/imx-pcm-rpmsg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c index 8da1345ccd06..0e70e1d2c253 100644 --- a/sound/soc/fsl/imx-pcm-rpmsg.c +++ b/sound/soc/fsl/imx-pcm-rpmsg.c @@ -806,6 +806,9 @@ static int i2s_rpmsg_probe(struct rpmsg_device *rpdev) rpmsg_i2s = container_of(i2s_info_g, struct fsl_rpmsg_i2s, i2s_info); + if (rpmsg_i2s->codec_in_dt) + return 0; + if (rpmsg_i2s->codec_wm8960) { rpmsg_codec[0].audioindex = rpmsg_i2s->codec_wm8960 >> 16; rpmsg_codec[0].shared_lrclk = true; |