1
0
Fork 0

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>
5.4-rM2-2.2.x-imx-squashed
Shengjiu Wang 2020-03-30 14:30:59 +08:00
parent ca2170e0fb
commit 0bc59849c4
1 changed files with 3 additions and 0 deletions

View File

@ -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;