Loading sgtl5000 codec and machine driver as dynamic module

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

Loading sgtl5000 codec and machine driver as dynamic module

3,795 Views
anilghadiya
Contributor II

Hi,

Is it possible to insert the sgtl5000 related modules as dynamic module(using "insmod").

I have build sgtl5000.c imx-sgtl5000.c and imx-audmux.c as independent module and tried to insert it, but it gives error saying as shown below...

root@nitrogen:/home/ubuntu/sgtl5000#

root@nitrogen:/home/ubuntu/sgtl5000# insmod sgtl5000.ko

root@nitrogen:/home/ubuntu/sgtl5000# insmod imx-audmux.ko

root@nitrogen:/home/ubuntu/sgtl5000# insmod imx-sgtl5000.ko

imx-sgtl5000 sound.24: ASoC: CPU DAI (null) not registered

imx-sgtl5000 sound.24: snd_soc_register_card failed (-517)

root@nitrogen:/home/ubuntu/sgtl5000# dmesg -c

sgtl5000 0-000a: sgtl5000 revision 0x11

imx-sgtl5000 sound.24: ASoC: CPU DAI (null) not registered

imx-sgtl5000 sound.24: snd_soc_register_card failed (-517)

platform sound.24: Driver imx-sgtl5000 requests probe deferral

root@nitrogen:/home/ubuntu/sgtl5000#

Am i missing anything here?..

I am able to load these modules with kernel(statically) and user the capture and playback functionality

I am using iMX-sabrelite board with kernel_3.10.17_1.0.0 SD card image.

Thanks in Advance,

Anil Ghadiya

Labels (4)
0 Kudos
7 Replies

1,547 Views
b36401
NXP Employee
NXP Employee

Anil,

Is everything fine now?

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,547 Views
anilghadiya
Contributor II

HI Victor,

Thanks for your reply.

I am able to register the sound card successfully but it gives error when i execute aplay/arecord command for the registered card saying that the "aplay: unable to install the hw params".

Do you have any idea about this.

Thanks and Regards,

Anil Ghadiya

0 Kudos

1,547 Views
saisuryanarayan
Contributor I

Hi Anil,

Is your issue solved I am also facing same issue.I am also able to register my soundcard successfully.But when i am trying to execute aplay/arecord then it is saying "aplay: set_params:1297: Unable to install hw params:".

Please help us in this if you have solved your problem.

Thank You.

0 Kudos

1,547 Views
saurabh206
Senior Contributor III

Hi

You can look

A close look at ALSA

0 Kudos

1,547 Views
saurabh206
Senior Contributor III

Hi,

Anil

Can review your pinmux and Clocking to SGTL5000?

Thanks

Saurabh

0 Kudos

1,547 Views
anilghadiya
Contributor II

Hi Saurabh,

Thanks for the reply.

I will check the clock configuration. But i am not able to understand why the same modules are working fine when i build it with the kernel.

If i enable the "CONFIG_SND_SOC_IMX_SGTL5000" then everything works fine.

With Regards,

Anil Ghadiya

0 Kudos

1,547 Views
saurabh206
Senior Contributor III

Hi,

Anil

In this case your module initialization order needs to check.

Thanks

Saurabh

0 Kudos