Shopping Cart | 中文网站
 
 
Overview
Online Support
FAQ
  Atmel Boards  (37) TOP10
  MYD-SAM9X5 (9)
  MYS-SAM9X5 (2)
  MYS-SAM9G45 (1)
  MYD-SAMA5D3X (14)
  MYD-SAM9X5-V2 (2)
  MYC-SAM9X5 (4)
  MYC-SAM9X5-V2 (1)
  MYC-SAMA5D3X (1)
  MYD-JA5D4X (3)
  NXP Boards  (6) TOP10
  MYD-LPC435X (2)
  MYD-LPC185X (1)
  MYD-LPC1788 (0)
  MYS-6ULX (3)
  Samsung Boards  (0) TOP10
  TI Boards  (21) TOP10
  MYD-AM335X (9)
  MYC-AM335X (1)
  Rico Board (6)
  MYD-C437X-PRU (5)
  Other  (3) TOP10
  MY-WF003U (1)
  Freescale Boards  (2) TOP10
  MYD-IMX28X (2)
  Xilinx Boards  (25) TOP10
  Z-turn Board (10)
  MYD-C7Z010/20 (7)
  MYD-C7Z015 (7)
 
  Home >  Support > Freescale Boards > MYD-IMX28X
 
Ltib fsl-alsa-plugins compile errors (L2.6.35_1.1.0_130130_source), Audio
 
Question
Hi All, I am using imx28 platform with BSP L2.6.35_1.1.0_130130, when I used mplay to play an mp3 file, I can't hear any voice from headphone, and got the following message:
Playing Halo.mp3.
Audio file file format detected.
====================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
======================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Opening /dev/dvb/adapter0/audio0
DVB AUDIO DEVICE: No such file or directory
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
I checked 'OSS PCM (digital audio) API' and 'OSS Mixer API' in kernel configure and recompiled the kernel, the 'dsp' appears in /dev, but It couldn't solve this problem, I can't hear any voice from headphone.
I try to add "Freescale Multimedia Plugins/Codecs", such as libfslvpuwrap,fsl-alsa-plugins,gst-fsl-plugins, etc...
But when I checked these plugins/codecs (used command './ltib --preconfig config/platform/imx/defconfig.dev' then checked in ‘Package list ---> Freescale Multimedia Plugins/Codecs --->’), I cound't compile successful, met the error message as following shown:
asrc_pair.c: In function 'asrc_pair_create':
asrc_pair.c:143: error: 'struct asrc_config' has no member named 'input_word_width'
asrc_pair.c:143: error: 'ASRC_WIDTH_16_BIT' undeclared (first use in this function)
asrc_pair.c:143: error: (Each undeclared identifier is reported only once
asrc_pair.c:143: error: for each function it appears in.)
asrc_pair.c:144: error: 'struct asrc_config' has no member named 'output_word_width'
asrc_pair.c: In function 'asrc_pair_set_rate':
asrc_pair.c:223: error: 'struct asrc_config' has no member named 'input_word_width'
asrc_pair.c:223: error: 'ASRC_WIDTH_16_BIT' undeclared (first use in this function)
asrc_pair.c:224: error: 'struct asrc_config' has no member named 'output_word_width'
asrc_pair.c: In function 'asrc_pair_convert_s16':
asrc_pair.c:292: error: storage size of 'buf_info' isn't known
asrc_pair.c:314: error: 'ASRC_CONVERT' undeclared (first use in this function)
asrc_pair.c:292: warning: unused variable 'buf_info'
make[2]: *** [asrc_pair.lo] Error 1
make[2]: Leaving directory `/media/data/myir/MX28x/L2.6.35_1.1.0_130130_source/ltib/rpm/BUILD/fsl-alsa-plugins-1.0.25/asrc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/data/myir/MX28x/L2.6.35_1.1.0_130130_source/ltib/rpm/BUILD/fsl-alsa-plugins-1.0.25'
make: *** [all] Error 2
error: Bad exit status from /media/data/myir/MX28x/L2.6.35_1.1.0_130130_source/ltib/tmp/rpm-tmp.9498 (%build)
How do I fix it?
I missed some patches?
The asrc_config was defined in include/linux/mxc_asrc.h, and it has no member named input_word_width, output_word_width.
Answer

I build the gstreamer codec on the L2.6.35_1.1.0_130130 bsp, the result is ok, refer to the linux multimedia user guide. libfslvpuwrap, gst-plugins-gl, fsl-alsa-plugins only available for MX6 platform. you can refer to the user guide to build the gstreamer, if you couldn't find it, pls let me know it.

 

Room 04, 6th Floor, Building No.2, Fada Road, Yunli Smart Park, Bantian, Longgang District, Shenzhen, Guangdong, China 518129
E-mail: sales@myirtech.com or myirtech@yahoo.com  Phone: +86-755-22984836  Fax: +86-755-25532724
Copyright © MYIR Tech Limited 2011-2017 all rights reserved.