Error while registering the sound card on iMX6 sabrelite board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error while registering the sound card on iMX6 sabrelite board

1,699 Views
anilghadiya
Contributor II

Hi,

I am trying to register a sound card from the machine driver of the codec adau1701 which is connected via i2c..

What should be the value of .cpu_dai_name and  .platform_name in the dai link.

I am using iMX6-sabrelite board with trusty(3.10.17) SD card image.

Thanks in Advance,

Anil Ghadiya

Labels (3)
0 Kudos
10 Replies

1,164 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

"and SoC as i2s pins of SoC are already connected to sgtl5000 codec" Do you mean that you are using the same pins for both codecs?

Thanks,

Alejandro

0 Kudos

1,164 Views
anilghadiya
Contributor II

Hi,

What i meant is that SoC's i2s pins are connected to the sgtl5000 so, we we can not establish the i2s interface between adau1701 codec and SoC.

Thanks and Regards,

Anil Ghadiya

0 Kudos

1,164 Views
alejandrolozan1
NXP Employee
NXP Employee

Maybe I am misunderstanding, but you cannot use 2  i2S codecs with the same MPU pins.

0 Kudos

1,164 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Can you share the code of your codec and the modifications you have performed?

I suggest you to use as reference the code for the SGTL500 source/sound/soc/mxs/mxs-sgtl5000.c

If you are getting any error please provide the details.

Best Regards,

Alejandro

0 Kudos

1,164 Views
anilghadiya
Contributor II

Hi,

Thanks for the reply. Attached is the codec and machine driver files for adau1701.

When i try to insert the machine driver, it fails with the error code (-517). Have a look at screen-shot for the details.

error.jpg

I am connecting the codec via I2C to the board. Is it required to establish any other link between SoC and the codec?

Is it possible to connect any codec to the iMX board and use it as one of the dai links while registering the sound card?

With Regards,

Anil Ghadiya

0 Kudos

1,164 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Sorry, I cannot see the attachments.

Alejandro

0 Kudos

1,164 Views
anilghadiya
Contributor II

Hi,

Sorry forgot to attach the code in previous post. PFA.

Thanks and Regards,

Anil Ghadiya

0 Kudos

1,164 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I have checked and the error -517 corresponds to

#define EPROBE_DEFER  517  /* Driver requests probe retry */


And after checking your dtsi file I noticed that in your sound node you are using a phandle to the sgtl-5000. Therefore it tries to register the codec sgtl 5000.

I believe that you will have to modify the adau1701.c which does not use the .compatible or the dts. I checked in more recent kernels and the adau1701.c is already using the dts.

http://lxr.free-electrons.com/source/sound/soc/codecs/adau1701.c

You may find that file useful.

Best Regards,

Alejandro

0 Kudos

1,164 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Were you able to make it work?

Alejandro

0 Kudos

1,164 Views
anilghadiya
Contributor II

Hi,

We are not able to establish the i2S link between codec(adau1701) and SoC as i2s pins of SoC are already connected to sgtl5000 codec.

And as per the ASoC, there has to be at least  one DAI link between codec and SoC. If you have any idea on how to establish the i2s link between iMX6 boardand any codec, please do share it with us.

Thanks and Regards,

Anil

0 Kudos