Ltib fsl-alsa-plugins compile errors (L2.6.35_1.1.0_130130_source), Audio

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

Ltib fsl-alsa-plugins compile errors (L2.6.35_1.1.0_130130_source), Audio

Jump to solution
1,111 Views
___myir
Contributor II

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.

Thanks in advance.

黄昌军

Labels (1)
0 Kudos
1 Solution
683 Views
joanxie
NXP TechSupport
NXP TechSupport

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.

View solution in original post

0 Kudos
2 Replies
684 Views
joanxie
NXP TechSupport
NXP TechSupport

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.

0 Kudos
683 Views
___myir
Contributor II

Hi Guanqiong,

Thanks for the reply, that is most helpful

Jakebo

0 Kudos