can not record with sgtl5000

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

can not record with sgtl5000

850 次查看
xiaoqiangyang
Contributor III

Hi all,

I'm testing sgtl5000 on sabresd. The playback feature has been tested by using aplay **.wav and is proved OK.

But the recording feature test failed.Below is the progress:

arecord -l

        • List of CAPTURE Hardware Devices ****

card 0: sgtl5000audio , device 0: HiFi sgtl5000-0 []

Subdevices: 1/1

Subdevice #0: subdevice #0

aplay -l

        • List of PLAYBACK Hardware Devices ****

card 0: sgtl5000audio , device 0: HiFi sgtl5000-0 []

Subdevices: 1/1

Subdevice #0: subdevice #0

arecord -Dplughw:0,0 -r 48000 -f S16_LE -c 2 -d 5 record.wav

Recording WAVE 'record.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

aplay -Dplughw:0,0 record.wav

Playing WAVE 'record.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

I can't see any error message, but I can't hear any sound.Why?

Any advice will be appreciated!

Best Regards

Xiaoqiang

0 项奖励
3 回复数

564 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Hello Xiaoquiang,

What version of BSP are you using?,  I am testing with the Freescale Demo Image from the Freescale Web site that it is already pre-build, and the use a mic, to the Line1 and it is working fine,  have you try to use the record wave in a windows host to see if the audio record, it is not wrong. Or do you make any changes to the BSP related to the SGTL5000.

Have a nice day sir!

0 项奖励

564 次查看
xiaoqiangyang
Contributor III

Dear jamesbone,

My BSP is L3.0.35_4.1.0, I have played the wave file in windows but no sounds heared. The only change I have made is changing i2c

bus number of sgtl5000 in imx-sgtl5000.c,that is from "sgtl5000.1-000a" to sgtl5000.0-000a, because my codec is on bus0.

From: jamesbone

Date: 2015-02-10 02:00

To: Xiaoqiang Yang

Subject: Re: - can not record with sgtl5000

can not record with sgtl5000

reply from jamesbone in i.MX Community - View the full discussion

Hello Xiaoquiang,

What version of BSP are you using?, I am testing with the Freescale Demo Image from the Freescale Web site that it is already pre-build, and the use a mic, to the Line1 and it is working fine, have you try to use the record wave in a windows host to see if the audio record, it is not wrong. Or do you make any changes to the BSP related to the SGTL5000.

Have a nice day sir!

Did your question get answered?

If so, say thanks by clicking Correct Answer in the community thread!

Reply to this message by replying to this email, or go to the message on Freescale Community

Start a new discussion in i.MX Community by email or at Freescale Community

Following can not record with sgtl5000 in these streams: Inbox

0 项奖励

564 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Thank you for your response, can you please check if there is activity in the I2S bus when you are doing the ALSA Command,

0 项奖励