Audio playback/capture failure on SabreAuto

cancel
Showing results for 
Search instead for 
Did you mean: 

Audio playback/capture failure on SabreAuto

437 Views
saurabh_patel
NXP Pro Support
NXP Pro Support

Hi,

I am using 3.14.28 Yocto BSP to verify Audio playback on SabreAuto board.

CPU:   Freescale i.MX6Q rev1.2 996 MHz (running at 792 MHz)

CPU:   Automotive temperature grade (-40C to 125C) at 17C

Reset cause: POR

Board: MX6Q-Sabreauto revA

I2C:   ready

DRAM:  2 GiB

PMIC:  PFUZE100 ID=0x10

Flash: 32 MiB

NAND:  0 MiB

MMC:   FSL_SDHC: 0

I am getting following error while simple audio playback.

root@imx6qsabreauto:~# aplay -Dhw:0,0 1.wav
Playing WAVE '1.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

aplay: pcm_write:1947: write error: Input/output error
root@imx6qsabreauto:~#

Is there any jumper setting or mode correction required to get Audio playback working.

0 Kudos
7 Replies

81 Views
saurabh_patel
NXP Pro Support
NXP Pro Support

Hi igor,

How to check rev number?

We have two board and both has same issue.

Is it possible to get it working with any modification?

0 Kudos

81 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Saurabh

regarding rev.A board seems it uses preproduction chip PCIMX6Q0AVT01A - it is

not more supported in last BSPs, so suggest to use rev.C board.

Best regards

igor

0 Kudos

81 Views
rameshbabup
NXP Employee
NXP Employee

Hi Igor,

I am trying to get arecord / aplay working on Sabre AI board, but does not work with 3.10.53-rt56 #1 SMP PREEMPT RT Fri Jul 17 12:56:13 CEST 2015 armv7l GNU/Linux"

But arecord & aply works good on rev A board with AVB eval image.

Do you think it is an issue with board or software audio routing?

Let me know your thoughts

Thanks

Ramesh

0 Kudos

81 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Saurabh

do you have space after "D" : should be aplay -D hw:0,0 1.wav.

Also one can use aplay -l  to find codec number.

Best regards

igor

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

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

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

0 Kudos

81 Views
saurabh_patel
NXP Pro Support
NXP Pro Support

Hi igor,

Syntax is correct.

with wrong syntax we are getting different error.

Even with custom audio playback application fails to run on this board, while it is running correctly on SabareSD.

Thanks

Saurabh

0 Kudos

81 Views
daveeewang
Contributor II

Hi,Saurabh,

   did you solve the aplay: pcm_write:1947: write error: Input/output error,i'am porting the sound card right now ,and i have the same problem with u ,i check my device code and it sames all right ,so i don't know what should i can do,can you help me ? or give me some advices,thank you very much...

捕获.PNG

0 Kudos

81 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Saurabh

this may be due to old rev.A board version. Please try with  SABRE-AI RevC board.

Steps:

| Kernel Config Option |

CONFIG_IMX_HAVE_PLATFORM_IMX_ESAI=y

CONFIG_IMX_HAVE_PLATFORM_IMX_I2C=y

CONFIG_SND_SOC_IMX_CS42888=y

CONFIG_SND_SOC_CS42888=y

| Test Procedure |

. check the esai sound card number, and adjust the n to 0 or 1...

$ aplay -l

. file.wav may be 2 to 6 channel stream

$ aplay -Dhw:n,0 file.wav

Best regards

igor