i.MX53 QSB, Linux 3.7 and alsa

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

i.MX53 QSB, Linux 3.7 and alsa

Jump to solution
2,186 Views
nodan
Contributor II

Hi,

i'm trying to play audio on an i.MX53 QSB running Linux 3.7. using "aplay". It looks like the audio device is there, but not correctly setup.

Any ideas anybody what's going on?

Thanks,

Kai

# aplay -l                                                
**** List of PLAYBACK Hardware Devices ****                                           
card 0: imx53qsbsgtl500 [imx53-qsb-sgtl5000], device 0: HiFi sgtl5000-0 []            
  Subdevices: 1/1                                                                     

  Subdevice #0: subdevice #0 

aplay track01.wav                                       

Playing WAVE 'track01.wav' : Signed 16 bit Little Endian, imx-pcm-audio imx-pcm-audio: i2

Rate 44100 Hz, Stereo                                                                    
aplay: set_params:1123: Unable to install hw params:                                  
ACCESS:  RW_INTERLEAVED                                                               
FORMAT:  S16_LE                                                                       
SUBFORMAT:  STD                                                                       
SAMPLE_BITS: 16                                                                       
FRAME_BITS: 32                                                                        
CHANNELS: 2                                                                           
RATE: 44100                                                                           
PERIOD_TIME: (92879 92880)                                                            
PERIOD_SIZE: 4096                                                                     
PERIOD_BYTES: 16384                                                                   
PERIODS: 4                                                                            
BUFFER_TIME: (371519 371520)                                                          
BUFFER_SIZE: 16384                                                                    
BUFFER_BYTES: 65536                                                                   

TICK_TIME: 0

Labels (3)
1 Solution
926 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Kai,

Here are the instructions to get audio working with kernel mainline:

- Download the sdma tools from here:

git.pengutronix.de Git - imx/sdma-firmware.git/summary

Build it (just a simple 'make') and you will get a 'sdma-imx53.bin' binary.

- Copy this binary into your kernel source into: linux/firmware/imx/sdma/

- Edit your .config file so that the firmware can be built:

CONFIG_PREVENT_FIRMWARE_BUILD=y

CONFIG_FW_LOADER=y

CONFIG_FIRMWARE_IN_KERNEL=y

CONFIG_EXTRA_FIRMWARE="imx/sdma/sdma-imx53.bin"

CONFIG_EXTRA_FIRMWARE_DIR="firmware"


- Re-build the kernel

- Enjoy your favorite band song on your mx53qsb ;-)

Regards,

Fabio Estevam

View solution in original post

0 Kudos
Reply
2 Replies
927 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Kai,

Here are the instructions to get audio working with kernel mainline:

- Download the sdma tools from here:

git.pengutronix.de Git - imx/sdma-firmware.git/summary

Build it (just a simple 'make') and you will get a 'sdma-imx53.bin' binary.

- Copy this binary into your kernel source into: linux/firmware/imx/sdma/

- Edit your .config file so that the firmware can be built:

CONFIG_PREVENT_FIRMWARE_BUILD=y

CONFIG_FW_LOADER=y

CONFIG_FIRMWARE_IN_KERNEL=y

CONFIG_EXTRA_FIRMWARE="imx/sdma/sdma-imx53.bin"

CONFIG_EXTRA_FIRMWARE_DIR="firmware"


- Re-build the kernel

- Enjoy your favorite band song on your mx53qsb ;-)

Regards,

Fabio Estevam

0 Kudos
Reply
926 Views
nodan
Contributor II

Thanks, I'll try that.

EDIT: I tried it and it worked as described. Great.

Regards,

Kai

0 Kudos
Reply