Audio issue in imx6q (linux-imx)

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

Audio issue in imx6q (linux-imx)

864 Views
sharvari
Contributor I

Hello ,

  I am working on a custom board based on imx6q-arm2 board. I have linux-imx 3.14.28 running on it. I am facing an issue in AUDIO. My board has TLV codec interfaced via audmux to ssi. When i use aplay command , it shows the error as

aplay: pcm_write:1947: write error: Input/output error

and dmesg shows

[ 6834.037168] imx-sdma 20ec000.sdma: wml = 0x0000001a

[ 6834.037181] imx-sdma 20ec000.sdma: shp_addr = 0x02028000

[ 6834.037193] imx-sdma 20ec000.sdma: per_addr = 0x00000000

[ 6834.037205] imx-sdma 20ec000.sdma: event_mask0 = 0x00000000

[ 6834.037217] imx-sdma 20ec000.sdma: event_mask1 = 0x00000040

[ 6834.037244] imx-sdma 20ec000.sdma: sdma_prep_dma_cyclic :entry 0: count: 16384 dma: 0x4c7c0000  intr

[ 6834.037261] imx-sdma 20ec000.sdma: sdma_prep_dma_cyclic :entry 1: count: 16384 dma: 0x4c7c4000  intr

[ 6834.037277] imx-sdma 20ec000.sdma: sdma_prep_dma_cyclic :entry 2: count: 16384 dma: 0x4c7c8000  intr

[ 6834.037293] imx-sdma 20ec000.sdma: sdma_prep_dma_cyclic :entry 3: count: 16384 dma: 0x4c7cc000 wrap intr

[ 6844.037593] ALSA sound/core/pcm_lib.c:1947 playback write error (DMA or IRQ trouble?)

So what exactly can be the cause of this error.

If i use aplay -M test.wav , this playback error does not show up. but still sound can not be heard. Also with -M option, aplay never exists.

-Thanks

Sharvari Harisangam.

0 Kudos
3 Replies

488 Views
igorpadykov
NXP Employee
NXP Employee

Hi Sharvari

seems dts files for arm2 board, like imx6q-arm2.dts, do not have

ssi entries. Suggest to add them using SabreSD dts examples

linux-2.6-imx.git - Freescale i.MX Linux Tree

linux-2.6-imx.git - Freescale i.MX Linux Tree

Best regards

igor

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

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

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

0 Kudos

488 Views
sharvari
Contributor I

Hello,

I have added ssi block in DTS tree. I have also verified from dmesg logs that ssi block is getting initialized correctly. From the above logs shared, last line suggests error in DMA or IRQ. How can I check this?

0 Kudos

488 Views
saurabh206
Senior Contributor III

Hello sharvari

Check the LRCLK, MCLK and Bitclock using scope.

i.MX6 is configured in master or slave mode?

Thanks

Saurabh

0 Kudos