Audio(SAI) does not work on ls1028ardb with ls1028a BSP rev 0.2

cancel
Showing results for 
Search instead for 
Did you mean: 

Audio(SAI) does not work on ls1028ardb with ls1028a BSP rev 0.2

Jump to solution
140 Views
Contributor III

Hi experts,

I did some audio testing on ls1028ardb based on the section 4.1.14.3 Synchronous audio interface (SAI) from "Layerscape LS1028A BSP v0.2.pdf", I did set the sw5(8) on, and BRDCFG3[2] = 1, then run the default Image from emmc, it seems still failure with the followings:

root@ls1028a:/# uname -a
Linux ls1028a 4.14.47-51091-g985a1f51c31c #2 SMP PREEMPT Wed Dec 19 11:41:09 IST 2018 aarch64 GNU/Linux

root@ls1028a:/# aplay ./usr/share/sounds/alsa/Rear_Center.wav
Playing WAVE './usr/share/sounds/alsa/Rear_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono


aplay: pcm_write:1947: write error: Input/output error
root@ls1028a:/#
root@ls1028a:/#
root@ls1028a:/# aplay ./usr/share/sounds/alsa/Rear_Center.wav
Playing WAVE './usr/share/sounds/alsa/Rear_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

aplay: pcm_write:1947: write error: Input/output error
root@ls1028a:/#
root@ls1028a:/# aplay ./run/media/mmcblk0p3/mnt/44k-16b.wav
Playing WAVE './run/media/mmcblk0p3/mnt/44k-16b.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: pcm_write:1947: write error: Input/output error
root@ls1028a:/# aplay -f S16_LE -r 44100 -t wav -c 2 ./run/media/mmcblk0p3/mnt/44k-16b.wav
Playing WAVE './run/media/mmcblk0p3/mnt/44k-16b.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: pcm_write:1947: write error: Input/output error

Any comments are welcome

Cheers,

Zumeng

1 Solution
23 Views
NXP TechSupport
NXP TechSupport

Please refer to the following.

=> tftp a0000000  rcw_1300_audio.bin
=> sf probe 0:0
=> sf erase 0 +$filesize && sf write 0xa0000000 0 $filesize
=> reset

Thanks,

Yiping

View solution in original post

4 Replies
23 Views
Contributor III

Thanks Yiping, please consider this question has been acked, I'll take a look tomorrow again.

0 Kudos
23 Views
NXP TechSupport
NXP TechSupport

Hello zumeng chen,

I confirmed with Linux SDK testing team, they have verified SAI audio driver on LS1028ARDB following BSP 0.2 user manual without any problem.

Please use rcw_1300_audio.bin for audio function(EC1_SAI4_5_PMUX = 2), please refer to the attachment.

In Linux please type the following command "zcat /proc/config.gz>config.txt", and check whether the following options are enabled in config.txt

CONFIG_I2C_IMX=y

CONFIG_SOUND=y

CONFIG_SND=y

CONFIG_SND_PCM_OSS=y

CONFIG_SND_PCM_OSS_PLUGINS=y

CONFIG_SND_SUPPORT_OLD_API=y

CONFIG_SND_SOC_FSL_SAI=y

CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=y

CONFIG_SND_SIMPLE_CARD=y

CONFIG_SND_SOC_SGTL5000=y

CONFIG_FSL_EMDA=y

On ls1028ardb board, please do the following operations.

a. Set the switch SW5[8] = ON.
b. To configure BRDCFG3[2] = 1, run the following command at U-Boot prompt.
i2c mw 0x66 0x53 0x4
c. The lineout interface is J34.

If your problem remains, please capture the console log including u-boot, Linux Kernel booting up and all your operations under Linux.

Thanks,

Yiping

0 Kudos
23 Views
Contributor III

En, I guess I might forget to update rcw, I'll take a look tomorrow, then feed back to you, thanks~

BTW, could you please give me a link to a documentation file how to update RCW if convenience.

Cheers,

Zumeng

0 Kudos
24 Views
NXP TechSupport
NXP TechSupport

Please refer to the following.

=> tftp a0000000  rcw_1300_audio.bin
=> sf probe 0:0
=> sf erase 0 +$filesize && sf write 0xa0000000 0 $filesize
=> reset

Thanks,

Yiping

View solution in original post