How to adapt the SGTL5000 driver for other devices

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to adapt the SGTL5000 driver for other devices

1,684 次查看
joshkurland
Contributor IV

Hello,

I have an I2S audio device connected to an i.MX6Q using the same interface as the common SGTL5000.  In order to test the basic functionality of my device, I would like to use ALSA and the imx-sgtl5000 driver to send sound from a user space application to the new hardware.  However, because the SGTL5000 codec is not physically present on my board, the driver probe fails.

  imx-sgtl5000 sound.22: ASoC: CODEC (null) not registered

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

How can I adapt the probe function to allow the imx-sgtl5000 driver to run without the hardware being present?

Thank you,

Josh K.

标签 (4)
0 项奖励
回复
4 回复数

1,088 次查看
saisuryanarayan
Contributor I

Hi Josh Kurland,

Is your problem got resolved.If so please reply to this I am also trying the same.we also don't have sgtl5000 Codec IC in our board and we want to sent some data from user space application to hardware.

Thank You,

SaiSurya

0 项奖励
回复

1,088 次查看
joshkurland
Contributor IV

Hi SaiSurya,

I apologize for responding to you so late.  Have you resolved your problem yet?

I was able to make my own audio codec to receive audio data from userspace.  However instead of modifying the sgtl5000 driver, I went ahead and wrote the full driver for my own device.

0 项奖励
回复

1,088 次查看
sinanakman
Senior Contributor III

Hi Josh

There is something called simple card and simple codec that

you might be able to use for this. Search for some of the

examples.

Hope this helps

Regards

Sinan Akman

0 项奖励
回复

1,088 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Josh

in sgtl5000.c one can try to set "ret=0"

before all exspresions with "if (ret < 0)..", these are

checks for errors.

Best regards

igor

0 项奖励
回复