i.MX53 QSB, Linux 3.7 and alsa

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX53 QSB, Linux 3.7 and alsa

ソリューションへジャンプ
2,860件の閲覧回数
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

ラベル(3)
1 解決策
1,600件の閲覧回数
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 件の賞賛
返信
2 返答(返信)
1,601件の閲覧回数
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 件の賞賛
返信
1,600件の閲覧回数
nodan
Contributor II

Thanks, I'll try that.

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

Regards,

Kai

0 件の賞賛
返信