AnsweredAssumed Answered

Tinyalsa compilation error for Android JB4.3 for i.mx6sl evk

Question asked by Vincent Chou on Apr 9, 2014
Latest reply on Apr 17, 2014 by Dave Swihart

Hi!  friends,

 

I tried to build my Android image in my ubuntu 10.04 environment and come across the following error.

======================

target thumb C: audio.primary.imx6 <= hardware/imx/alsa/tinyalsa_hal.c
hardware/imx/alsa/tinyalsa_hal.c: In function 'pcm_read_wrapper':
hardware/imx/alsa/tinyalsa_hal.c:1105:10: warning: implicit declaration of function 'pcm_state' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:1108:20: warning: implicit declaration of function 'pcm_prepare' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c: In function 'in_get_input_frames_lost':
hardware/imx/alsa/tinyalsa_hal.c:2111:5: warning: implicit declaration of function 'pcm_get_time_of_xrun' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c: In function 'scan_available_device':
hardware/imx/alsa/tinyalsa_hal.c:3037:9: warning: implicit declaration of function 'control_open' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:3037:21: warning: assignment makes pointer from integer without a cast [enabled by default]
hardware/imx/alsa/tinyalsa_hal.c:3040:9: warning: implicit declaration of function 'control_card_info_get_id' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:3040:9: warning: implicit declaration of function 'control_card_info_get_driver' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:3040:9: warning: implicit declaration of function 'control_card_info_get_name' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:3040:9: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat]
hardware/imx/alsa/tinyalsa_hal.c:3040:9: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Wformat]
hardware/imx/alsa/tinyalsa_hal.c:3040:9: warning: format '%s' expects argument of type 'char *', but argument 7 has type 'int' [-Wformat]
hardware/imx/alsa/tinyalsa_hal.c:3044:13: warning: passing argument 1 of 'strstr' makes pointer from integer without a cast [enabled by default]
In file included from bionic/libc/include/signal.h:34:0,
                 from bionic/libc/include/pthread.h:32,
                 from hardware/imx/alsa/tinyalsa_hal.c:22:
bionic/libc/include/string.h:60:15: note: expected 'const char *' but argument is of type 'int'
hardware/imx/alsa/tinyalsa_hal.c:3053:30: warning: passing argument 1 of 'strcmp' makes pointer from integer without a cast [enabled by default]
In file included from bionic/libc/include/signal.h:34:0,
                 from bionic/libc/include/pthread.h:32,
                 from hardware/imx/alsa/tinyalsa_hal.c:22:
bionic/libc/include/string.h:52:15: note: expected 'const char *' but argument is of type 'int'
hardware/imx/alsa/tinyalsa_hal.c:3055:33: warning: passing argument 2 of 'strcpy' makes pointer from integer without a cast [enabled by default]
In file included from bionic/libc/include/signal.h:34:0,
                 from bionic/libc/include/pthread.h:32,
                 from hardware/imx/alsa/tinyalsa_hal.c:22:
bionic/libc/include/string.h:118:7: note: expected 'const char *' but argument is of type 'int'
hardware/imx/alsa/tinyalsa_hal.c:3083:17: warning: implicit declaration of function 'pcm_get_near_param' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:3083:55: error: 'PCM_HW_PARAM_RATE' undeclared (first use in this function)
hardware/imx/alsa/tinyalsa_hal.c:3083:55: note: each undeclared identifier is reported only once for each function it appears in
hardware/imx/alsa/tinyalsa_hal.c:3095:54: error: 'PCM_HW_PARAM_CHANNELS' undeclared (first use in this function)
hardware/imx/alsa/tinyalsa_hal.c:3099:17: warning: implicit declaration of function 'pcm_check_param_mask' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:3099:56: error: 'PCM_HW_PARAM_FORMAT' undeclared (first use in this function)
hardware/imx/alsa/tinyalsa_hal.c:3117:9: warning: implicit declaration of function 'control_close' [-Wimplicit-function-declaration]
make: *** [out/target/product/evk_6sl/obj/SHARED_LIBRARIES/audio.primary.imx6_intermediates/tinyalsa_hal.o] Error 1

 

 

======================

I am building the image for i.MX6SL EVK. Could anyone share his/her experience on fixing this problem?

 

Vincent

Outcomes