Overview
Online Support
FAQ
  Atmel Series  (29) TOP10
  MYS-SAM9X5 (3)
  MYS-SAM9G45 (1)
  MYD-SAM9X5 (7)
  MYD-SAM9X5-V2 (2)
  MYD-JA5D2X (0)
  MYD-SAMA5D3X (11)
  MYD-SAMA5D3X-C (0)
  MYD-JA5D4X (0)
  MYC-SAM9X5 (4)
  MYC-SAM9X5-V2 (1)
  MYC-JA5D2X (0)
  MYC-SAMA5D3X (0)
  MCC-SAMA5D3X-C (0)
  MYC-JA5D4X (0)
  NXP Series  (23) TOP10
  MYS-6ULX (4)
  MYD-Y6ULX (3)
  MYD-Y6ULX-HMI (1)
  MYD-IMX28X (2)
  MYD-LPC435X (2)
  MYD-LPC185X (1)
  MYD-LPC1788 (0)
  MYC-Y6ULX (4)
  MYC-IMX28X (0)
  i.MX 6UL/6ULL (6)
  TI Series  (24) TOP10
  MYD-AM335X (12)
  MYD-AM335X-Y (0)
  MYD-AM335X-J (0)
  MYD-C437X (0)
  MYD-C437X-PRU (5)
  Rico Board (6)
  MYC-AM335X (1)
  MCC-AM335X-Y (0)
  MCC-AM335X-J (0)
  MYC-C437X (0)
  Xilinx Series  (20) TOP10
  Z-turn Board (9)
  Z-turn Lite (2)
  MYD-C7Z010/20 (0)
  MYD-C7Z015 (7)
  MYD-Y7Z010/007S (0)
  MYC-C7Z010/20 (0)
  MYC-C7Z015 (0)
  MYC-Y7Z010/007S (0)
  HMI Solutions  (0) TOP10
  MYD-Y6ULX-CHMI (0)
  MY-EVC5100S-HMI (0)
  Others  (1) TOP10
  MY-WF003U (1)
 
  Home >  Support > NXP Series > 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.