Created
March 3, 2016 10:02
-
-
Save bkrepo/ad5a08429f773106c875 to your computer and use it in GitHub Desktop.
C2 Amlogic Library build log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| odroid@odroid64:~/c2_aml_libs$ make | |
| make -C amavutils | |
| make[1]: Entering directory '/home/odroid/c2_aml_libs/amavutils' | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| amdisplayutils.c: In function 'get_display_mode': | |
| amdisplayutils.c:45:14: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {ak] | |
| LOGI("[get_display_mode]mode=%s strlen=%d\n", mode, strlen(mode)); | |
| ^ | |
| amdisplayutils.c: In function 'amdisplay_utils_get_size': | |
| amdisplayutils.c:61:11: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-d] | |
| ret = amsysfs_get_sysfs_str(FB_DEVICE_PATH, buf, SYSCMD_BUFSIZE); | |
| ^ | |
| amdisplayutils.c: In function 'amdisplay_utils_set_scale_mode': | |
| amdisplayutils.c:108:14: warning: too many arguments for format [-Wformat-extra-args] | |
| LOGI("unsupport scaling mode,x1,x2 only\n", scale_wx, scale_hx); | |
| ^ | |
| amdisplayutils.c:113:15: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-] | |
| ret = amsysfs_set_sysfs_str(SCALE_REQUEST, "1"); | |
| ^ | |
| amdisplayutils.c: In function 'get_display_mode': | |
| amdisplayutils.c:44:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wu] | |
| read(fd, mode, 15); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| ammodule.c: In function 'ammodule_simple_load_module': | |
| ammodule.c:215:35: warning: passing argument 2 of 'ammodule_load_module' from incompatible pointer type [-Wincom] | |
| ret=ammodule_load_module(name,&module); | |
| ^ | |
| ammodule.c:115:5: note: expected 'const struct ammodule_t **' but argument is of type 'struct ammodule_t **' | |
| int ammodule_load_module(const char *modulename, const struct ammodule_t **modu | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_str': | |
| amsysfsutils.c:46:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunu] | |
| read(fd, valstr, size - 1); | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_int': | |
| amsysfsutils.c:82:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunu] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_int16': | |
| amsysfsutils.c:116:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_ulong': | |
| amsysfsutils.c:131:6: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| Amvideoutils.c: In function 'is_video_on_vpp2': | |
| Amvideoutils.c:89:9: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| if (property_get("ro.vout.dualdisplay4", val, "false") | |
| ^ | |
| Amvideoutils.c: In function 'amvideo_utils_set_virtual_position': | |
| Amvideoutils.c:360:21: warning: implicit declaration of function 'amdisplay_utils_get_osd_rotation' [-Wimplicit-] | |
| int osd_rotation = amdisplay_utils_get_osd_rotation(); | |
| ^ | |
| Amvideoutils.c: In function 'get_axis': | |
| Amvideoutils.c:331:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, buf, SYSCMD_BUFSIZE); | |
| ^ | |
| Amvideoutils.c: In function 'amvideo_utils_set_virtual_position': | |
| Amvideoutils.c:432:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(dev_fd, buf, SYSCMD_BUFSIZE); | |
| ^ | |
| Amvideoutils.c: In function 'amvideo_utils_get_hdmi_authenticate': | |
| Amvideoutils.c:815:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroid | |
| amdisplayutils.c: In function 'get_display_mode': | |
| amdisplayutils.c:45:14: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {ak] | |
| LOGI("[get_display_mode]mode=%s strlen=%d\n", mode, strlen(mode)); | |
| ^ | |
| amdisplayutils.c: In function 'amdisplay_utils_get_size': | |
| amdisplayutils.c:61:11: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-d] | |
| ret = amsysfs_get_sysfs_str(FB_DEVICE_PATH, buf, SYSCMD_BUFSIZE); | |
| ^ | |
| amdisplayutils.c: In function 'amdisplay_utils_set_scale_mode': | |
| amdisplayutils.c:108:14: warning: too many arguments for format [-Wformat-extra-args] | |
| LOGI("unsupport scaling mode,x1,x2 only\n", scale_wx, scale_hx); | |
| ^ | |
| amdisplayutils.c:113:15: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-] | |
| ret = amsysfs_set_sysfs_str(SCALE_REQUEST, "1"); | |
| ^ | |
| amdisplayutils.c: In function 'get_display_mode': | |
| amdisplayutils.c:44:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wu] | |
| read(fd, mode, 15); | |
| ^ | |
| ammodule.c: In function 'ammodule_simple_load_module': | |
| ammodule.c:215:35: warning: passing argument 2 of 'ammodule_load_module' from incompatible pointer type [-Wincom] | |
| ret=ammodule_load_module(name,&module); | |
| ^ | |
| ammodule.c:115:5: note: expected 'const struct ammodule_t **' but argument is of type 'struct ammodule_t **' | |
| int ammodule_load_module(const char *modulename, const struct ammodule_t **modu | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_str': | |
| amsysfsutils.c:46:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunu] | |
| read(fd, valstr, size - 1); | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_int': | |
| amsysfsutils.c:82:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunu] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_int16': | |
| amsysfsutils.c:116:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_ulong': | |
| amsysfsutils.c:131:6: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| Amvideoutils.c: In function 'is_video_on_vpp2': | |
| Amvideoutils.c:89:9: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| if (property_get("ro.vout.dualdisplay4", val, "false") | |
| ^ | |
| Amvideoutils.c: In function 'amvideo_utils_set_virtual_position': | |
| Amvideoutils.c:360:21: warning: implicit declaration of function 'amdisplay_utils_get_osd_rotation' [-Wimplicit-] | |
| int osd_rotation = amdisplay_utils_get_osd_rotation(); | |
| ^ | |
| Amvideoutils.c: In function 'get_axis': | |
| Amvideoutils.c:331:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, buf, SYSCMD_BUFSIZE); | |
| ^ | |
| Amvideoutils.c: In function 'amvideo_utils_set_virtual_position': | |
| Amvideoutils.c:432:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(dev_fd, buf, SYSCMD_BUFSIZE); | |
| ^ | |
| Amvideoutils.c: In function 'amvideo_utils_get_hdmi_authenticate': | |
| Amvideoutils.c:815:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| make[1]: Leaving directory '/home/odroid/c2_aml_libs/amavutils' | |
| make -C amadec | |
| make[1]: Entering directory '/home/odroid/c2_aml_libs/amadec' | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| adec-external-ctrl.c: In function 'dummy_decode_set_mute': | |
| adec-external-ctrl.c:253:9: warning: implicit declaration of function 'dummy_alsa_control' [-Wimplicit-function-] | |
| dummy_alsa_control(mute_ctl.ctlname, 0, 1, NULL);//mute | |
| ^ | |
| adec-external-ctrl.c: In function 'audio_get_pcm_level': | |
| adec-external-ctrl.c:650:10: warning: implicit declaration of function 'audiodsp_get_pcm_level' [-Wimplicit-func] | |
| return audiodsp_get_pcm_level(&audec->adsp_ops); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| adec-internal-mgt.c: In function 'start_adec': | |
| adec-internal-mgt.c:135:13: warning: 'return' with a value, in function returning void | |
| return -1; | |
| ^ | |
| adec-internal-mgt.c: In function 'adec_message_loop': | |
| adec-internal-mgt.c:345:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-dec] | |
| adec_reset_track(audec); | |
| ^ | |
| adec-internal-mgt.c: In function 'set_audio_decoder': | |
| adec-internal-mgt.c:509:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declara] | |
| ret = property_get("media.arm.audio.decoder",value,NULL); | |
| ^ | |
| adec-internal-mgt.c: In function 'audiodec_init': | |
| adec-internal-mgt.c:640:5: warning: implicit declaration of function 'get_output_func' [-Wimplicit-function-decl] | |
| get_output_func(audec); | |
| ^ | |
| adec-internal-mgt.c:658:13: warning: implicit declaration of function 'RegisterDecode' [-Wimplicit-function-decl] | |
| res=RegisterDecode(audec,codec_type); | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from adec-internal-mgt.c:19: | |
| adec-internal-mgt.c:674:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'pthrea] | |
| adec_print("Create adec main thread success! tid = %d\n", tid); | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| adec-ffmpeg-mgt.c:56:5: warning: initialization makes integer from pointer without a cast [-Wint-conversion] | |
| NULL | |
| ^ | |
| adec-ffmpeg-mgt.c:56:5: note: (near initialization for 'audio_lib_list[16].codec_id') | |
| adec-ffmpeg-mgt.c: In function 'find_audio_lib': | |
| adec-ffmpeg-mgt.c:76:16: warning: assignment makes integer from pointer without a cast [-Wint-conversion] | |
| fd = dlopen(audio_lib_list[i].name,RTLD_NOW); | |
| ^ | |
| adec-ffmpeg-mgt.c:79:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->init = dlsym(fd, "audio_dec_init"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:80:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->decode = dlsym(fd, "audio_dec_decode"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:81:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->release = dlsym(fd, "audio_dec_release"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:82:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->getinfo = dlsym(fd, "audio_dec_getinfo"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'armdec_get_pts': | |
| adec-ffmpeg-mgt.c:248:8: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-decl] | |
| if(am_getconfig_bool("media.arm.audio.apts_add")) | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'InBufferInit': | |
| adec-ffmpeg-mgt.c:345:15: warning: implicit declaration of function 'uio_init' [-Wimplicit-function-declaration] | |
| int ret = uio_init(audec); | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'audio_codec_init': | |
| adec-ffmpeg-mgt.c:548:39: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
| audec->adsp_ops.set_cur_apts = armdec_set_pts; | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from /home/odroid/c2_aml_libs/amadec/adec-pts-mgt.h:14, | |
| from adec-ffmpeg-mgt.c:10: | |
| adec-ffmpeg-mgt.c: In function 'start_decode_thread': | |
| adec-ffmpeg-mgt.c:818:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'pthread_] | |
| adec_print("[%s]Create get package thread success! tid = %d\n",__FUNCTION__ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c:827:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'pthread_] | |
| adec_print("[%s]Create ffmpeg decode thread success! tid = %d\n",__FUNCTION | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'adec_armdec_loop': | |
| adec-ffmpeg-mgt.c:1214:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-decl] | |
| adec_reset_track(audec); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| adec-pts-mgt.c: In function 'set_tsync_enable': | |
| adec-pts-mgt.c:30:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-dec] | |
| return amsysfs_set_sysfs_int(path, enable); | |
| ^ | |
| adec-pts-mgt.c: In function 'adec_pts_start': | |
| adec-pts-mgt.c:86:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declara] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| adec-pts-mgt.c:97:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| if(property_get("sys.amplayer.drop_pcm",value,NULL) > 0) | |
| ^ | |
| adec-pts-mgt.c:101:8: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-dec] | |
| if(amsysfs_set_sysfs_str(TSYNC_EVENT, "AUDIO_PRE_START") == -1) | |
| ^ | |
| adec-pts-mgt.c:109:7: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-dec] | |
| if (amsysfs_get_sysfs_str(TSYNC_APTS, buf, sizeof(buf)) == -1) { | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from /home/odroid/c2_aml_libs/amadec/adec-pts-mgt.h:14, | |
| from adec-pts-mgt.c:18: | |
| adec-pts-mgt.c: In function 'adec_pts_droppcm': | |
| adec-pts-mgt.c:170:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'lo] | |
| adec_print("before drop --apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts,vp | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:170:16: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'lo] | |
| adec_print("before drop --apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts,vp | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:228:16: warning: format '%d' expects argument of type 'int', but argument 3 has type '__time_t {a] | |
| adec_print("==old time sec :%d usec:%d \n", old_time.tv_sec ,old_time.tv_ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:228:16: warning: format '%d' expects argument of type 'int', but argument 4 has type '__suseconds] | |
| adec_print("==old time sec :%d usec:%d \n", old_time.tv_sec ,old_time.tv_ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:229:16: warning: format '%d' expects argument of type 'int', but argument 3 has type '__time_t {a] | |
| adec_print("==new time sec:%d usec:%d \n", new_time.tv_sec ,new_time.tv_u | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:229:16: warning: format '%d' expects argument of type 'int', but argument 4 has type '__suseconds] | |
| adec_print("==new time sec:%d usec:%d \n", new_time.tv_sec ,new_time.tv_u | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:243:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'lo] | |
| adec_print("after drop pcm:--apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:243:16: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'lo] | |
| adec_print("after drop pcm:--apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| feeder.c: In function 'get_audio_format': | |
| feeder.c:30:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaratio] | |
| amsysfs_get_sysfs_str(FORMAT_PATH, format, 21); | |
| ^ | |
| feeder.c: In function 'feeder_init': | |
| feeder.c:169:11: warning: implicit declaration of function 'audiodsp_init' [-Wimplicit-function-declaration] | |
| ret = audiodsp_init(dsp_ops); | |
| ^ | |
| feeder.c:175:11: warning: implicit declaration of function 'audiodsp_start' [-Wimplicit-function-declaration] | |
| ret = audiodsp_start(audec); | |
| ^ | |
| feeder.c:183:9: warning: implicit declaration of function 'audiodsp_release' [-Wimplicit-function-declaration] | |
| audiodsp_release(dsp_ops); | |
| ^ | |
| feeder.c: In function 'feeder_release': | |
| feeder.c:207:11: warning: implicit declaration of function 'audiodsp_stop' [-Wimplicit-function-declaration] | |
| ret = audiodsp_stop(dsp_ops); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| adec_read.c: In function 'get_num_infile': | |
| adec_read.c:46:9: warning: implicit declaration of function 'amsysfs_get_sysfs_ulong' [-Wimplicit-function-decla] | |
| return amsysfs_get_sysfs_ulong(file); | |
| ^ | |
| adec_read.c: In function 'uio_init': | |
| adec_read.c:70:9: warning: assignment makes integer from pointer without a cast [-Wint-conversion] | |
| memmap = mmap(NULL, phys_size, PROT_READ|PROT_WRITE, MAP_SHARED, audec->fd_uio | |
| ^ | |
| adec_read.c:73:12: warning: comparison between pointer and integer | |
| if(memmap == MAP_FAILED){ | |
| ^ | |
| adec_read.c:78:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion] | |
| reg_base = memmap + phys_offset; | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| audiodsp_update_format.c: In function 'get_sysfs_int': | |
| audiodsp_update_format.c:35:12: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-fu] | |
| return amsysfs_get_sysfs_int(path); | |
| ^ | |
| audiodsp_update_format.c: In function 'set_sysfs_int': | |
| audiodsp_update_format.c:40:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-fu] | |
| return amsysfs_set_sysfs_int(path, val); | |
| ^ | |
| audiodsp_update_format.c: In function 'audiodsp_format_update': | |
| audiodsp_update_format.c:115:37: warning: implicit declaration of function 'get_audio_decoder' [-Wimplicit-funct] | |
| if (dsp_ops->dsp_file_fd < 0 || get_audio_decoder()!=AUDIO_ARC_DECODER) { | |
| ^ | |
| audiodsp_update_format.c:150:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-funct] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| spdif_api.c:42:24: warning: initialization makes pointer from integer without a cast [-Wint-conversion] | |
| static char *map_buf = 0xffffffff; | |
| ^ | |
| spdif_api.c: In function 'iec958_init': | |
| spdif_api.c:69:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf == 0xffffffff){ | |
| ^ | |
| spdif_api.c:78:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf != 0xffffffff) | |
| ^ | |
| spdif_api.c: In function 'iec958_packed_frame_write_958buf': | |
| spdif_api.c:221:64: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync0 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_b | |
| ^ | |
| spdif_api.c:232:60: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync1 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_buf)) | |
| ^ | |
| spdif_api.c:248:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync2 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_bu | |
| ^ | |
| spdif_api.c: In function 'iec958_deinit': | |
| spdif_api.c:295:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf != 0xffffffff) | |
| ^ | |
| spdif_api.c: In function 'iec958_packed_frame_write_958buf': | |
| spdif_api.c:224:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf,tail); | |
| ^ | |
| spdif_api.c:235:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf+tail,frame_size-tail); | |
| ^ | |
| spdif_api.c:251:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf,frame_size); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| pcmenc_api.c: In function 'pcmenc_init': | |
| pcmenc_api.c:44:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion] | |
| map_buf = 0xffffffff; | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| dts_transenc_api.c: In function 'dts_transenc_init': | |
| dts_transenc_api.c:52:18: warning: initialization makes integer from pointer without a cast [-Wint-conversion] | |
| int fd_dtsenc = dlopen("libdtsenc.so",RTLD_NOW); | |
| ^ | |
| dts_transenc_api.c:55:34: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Win] | |
| enc_ops.enc_init = dlsym(fd_dtsenc, "init"); | |
| ^ | |
| In file included from dts_transenc_api.c:7:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| dts_transenc_api.c:56:30: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Win] | |
| enc_ops.enc_encode = dlsym(fd_dtsenc, "encode_frame"); | |
| ^ | |
| In file included from dts_transenc_api.c:7:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| dts_transenc_api.c:57:31: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Win] | |
| enc_ops.enc_release = dlsym(fd_dtsenc, "release"); | |
| ^ | |
| In file included from dts_transenc_api.c:7:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| dts_transenc_api.c:87:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] | |
| close(fd_dtsenc); | |
| ^ | |
| dts_transenc_api.c: In function 'dts_transenc_process_frame': | |
| dts_transenc_api.c:106:22: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] | |
| usleep(1000); | |
| ^ | |
| dts_transenc_api.c:116:69: warning: passing argument 4 of 'enc_ops.enc_encode' makes integer from pointer withou] | |
| rv = enc_ops.enc_encode(dts_transenc_info, stream, output, &output_siz | |
| ^ | |
| dts_transenc_api.c:116:69: note: expected 'unsigned int' but argument is of type 'unsigned int *' | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| dts_enc.c: In function 'get_dts_mode': | |
| dts_enc.c:39:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declarati] | |
| amsysfs_get_sysfs_str(DIGITAL_RAW_PATH, bcmd, 28); | |
| ^ | |
| dts_enc.c: In function 'get_cpu_type': | |
| dts_enc.c:66:15: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| int ret = property_get("ro.board.platform",value,NULL); | |
| ^ | |
| dts_enc.c:68:18: warning: implicit declaration of function 'match_types' [-Wimplicit-function-declaration] | |
| if (ret>0 && match_types("meson6",value)) | |
| ^ | |
| dts_enc.c: In function 'dtsenc_init': | |
| dts_enc.c:103:2: warning: implicit declaration of function 'pthread_setname_np' [-Wimplicit-function-declaration] | |
| pthread_setname_np(tid,"AmadecDtsEncLP"); | |
| ^ | |
| dts_enc.c: In function 'dts_enc_loop': | |
| dts_enc.c:172:5: warning: implicit declaration of function 'iec958buf_fill_zero' [-Wimplicit-function-declaratio] | |
| iec958buf_fill_zero(); | |
| ^ | |
| dts_enc.c:192:12: warning: return makes pointer from integer without a cast [-Wint-conversion] | |
| return -1; | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_am | |
| adec-external-ctrl.c: In function 'dummy_decode_set_mute': | |
| adec-external-ctrl.c:253:9: warning: implicit declaration of function 'dummy_alsa_control' [-Wimplicit-function-] | |
| dummy_alsa_control(mute_ctl.ctlname, 0, 1, NULL);//mute | |
| ^ | |
| adec-external-ctrl.c: In function 'audio_get_pcm_level': | |
| adec-external-ctrl.c:650:10: warning: implicit declaration of function 'audiodsp_get_pcm_level' [-Wimplicit-func] | |
| return audiodsp_get_pcm_level(&audec->adsp_ops); | |
| ^ | |
| adec-internal-mgt.c: In function 'start_adec': | |
| adec-internal-mgt.c:135:13: warning: 'return' with a value, in function returning void | |
| return -1; | |
| ^ | |
| adec-internal-mgt.c: In function 'adec_message_loop': | |
| adec-internal-mgt.c:345:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-dec] | |
| adec_reset_track(audec); | |
| ^ | |
| adec-internal-mgt.c: In function 'set_audio_decoder': | |
| adec-internal-mgt.c:509:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declara] | |
| ret = property_get("media.arm.audio.decoder",value,NULL); | |
| ^ | |
| adec-internal-mgt.c: In function 'audiodec_init': | |
| adec-internal-mgt.c:640:5: warning: implicit declaration of function 'get_output_func' [-Wimplicit-function-decl] | |
| get_output_func(audec); | |
| ^ | |
| adec-internal-mgt.c:658:13: warning: implicit declaration of function 'RegisterDecode' [-Wimplicit-function-decl] | |
| res=RegisterDecode(audec,codec_type); | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from adec-internal-mgt.c:19: | |
| adec-internal-mgt.c:674:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'pthrea] | |
| adec_print("Create adec main thread success! tid = %d\n", tid); | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c:56:5: warning: initialization makes integer from pointer without a cast [-Wint-conversion] | |
| NULL | |
| ^ | |
| adec-ffmpeg-mgt.c:56:5: note: (near initialization for 'audio_lib_list[16].codec_id') | |
| adec-ffmpeg-mgt.c: In function 'find_audio_lib': | |
| adec-ffmpeg-mgt.c:76:16: warning: assignment makes integer from pointer without a cast [-Wint-conversion] | |
| fd = dlopen(audio_lib_list[i].name,RTLD_NOW); | |
| ^ | |
| adec-ffmpeg-mgt.c:79:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->init = dlsym(fd, "audio_dec_init"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:80:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->decode = dlsym(fd, "audio_dec_decode"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:81:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->release = dlsym(fd, "audio_dec_release"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:82:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->getinfo = dlsym(fd, "audio_dec_getinfo"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'armdec_get_pts': | |
| adec-ffmpeg-mgt.c:248:8: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-decl] | |
| if(am_getconfig_bool("media.arm.audio.apts_add")) | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'InBufferInit': | |
| adec-ffmpeg-mgt.c:345:15: warning: implicit declaration of function 'uio_init' [-Wimplicit-function-declaration] | |
| int ret = uio_init(audec); | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'audio_codec_init': | |
| adec-ffmpeg-mgt.c:548:39: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
| audec->adsp_ops.set_cur_apts = armdec_set_pts; | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from /home/odroid/c2_aml_libs/amadec/adec-pts-mgt.h:14, | |
| from adec-ffmpeg-mgt.c:10: | |
| adec-ffmpeg-mgt.c: In function 'start_decode_thread': | |
| adec-ffmpeg-mgt.c:818:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'pthread_] | |
| adec_print("[%s]Create get package thread success! tid = %d\n",__FUNCTION__ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c:827:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'pthread_] | |
| adec_print("[%s]Create ffmpeg decode thread success! tid = %d\n",__FUNCTION | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'adec_armdec_loop': | |
| adec-ffmpeg-mgt.c:1214:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-decl] | |
| adec_reset_track(audec); | |
| ^ | |
| adec-pts-mgt.c: In function 'set_tsync_enable': | |
| adec-pts-mgt.c:30:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-dec] | |
| return amsysfs_set_sysfs_int(path, enable); | |
| ^ | |
| adec-pts-mgt.c: In function 'adec_pts_start': | |
| adec-pts-mgt.c:86:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declara] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| adec-pts-mgt.c:97:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| if(property_get("sys.amplayer.drop_pcm",value,NULL) > 0) | |
| ^ | |
| adec-pts-mgt.c:101:8: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-dec] | |
| if(amsysfs_set_sysfs_str(TSYNC_EVENT, "AUDIO_PRE_START") == -1) | |
| ^ | |
| adec-pts-mgt.c:109:7: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-dec] | |
| if (amsysfs_get_sysfs_str(TSYNC_APTS, buf, sizeof(buf)) == -1) { | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from /home/odroid/c2_aml_libs/amadec/adec-pts-mgt.h:14, | |
| from adec-pts-mgt.c:18: | |
| adec-pts-mgt.c: In function 'adec_pts_droppcm': | |
| adec-pts-mgt.c:170:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'lo] | |
| adec_print("before drop --apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts,vp | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:170:16: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'lo] | |
| adec_print("before drop --apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts,vp | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:228:16: warning: format '%d' expects argument of type 'int', but argument 3 has type '__time_t {a] | |
| adec_print("==old time sec :%d usec:%d \n", old_time.tv_sec ,old_time.tv_ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:228:16: warning: format '%d' expects argument of type 'int', but argument 4 has type '__suseconds] | |
| adec_print("==old time sec :%d usec:%d \n", old_time.tv_sec ,old_time.tv_ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:229:16: warning: format '%d' expects argument of type 'int', but argument 3 has type '__time_t {a] | |
| adec_print("==new time sec:%d usec:%d \n", new_time.tv_sec ,new_time.tv_u | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:229:16: warning: format '%d' expects argument of type 'int', but argument 4 has type '__suseconds] | |
| adec_print("==new time sec:%d usec:%d \n", new_time.tv_sec ,new_time.tv_u | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:243:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'lo] | |
| adec_print("after drop pcm:--apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:243:16: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'lo] | |
| adec_print("after drop pcm:--apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| feeder.c: In function 'get_audio_format': | |
| feeder.c:30:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaratio] | |
| amsysfs_get_sysfs_str(FORMAT_PATH, format, 21); | |
| ^ | |
| feeder.c: In function 'feeder_init': | |
| feeder.c:169:11: warning: implicit declaration of function 'audiodsp_init' [-Wimplicit-function-declaration] | |
| ret = audiodsp_init(dsp_ops); | |
| ^ | |
| feeder.c:175:11: warning: implicit declaration of function 'audiodsp_start' [-Wimplicit-function-declaration] | |
| ret = audiodsp_start(audec); | |
| ^ | |
| feeder.c:183:9: warning: implicit declaration of function 'audiodsp_release' [-Wimplicit-function-declaration] | |
| audiodsp_release(dsp_ops); | |
| ^ | |
| feeder.c: In function 'feeder_release': | |
| feeder.c:207:11: warning: implicit declaration of function 'audiodsp_stop' [-Wimplicit-function-declaration] | |
| ret = audiodsp_stop(dsp_ops); | |
| ^ | |
| adec_read.c: In function 'get_num_infile': | |
| adec_read.c:46:9: warning: implicit declaration of function 'amsysfs_get_sysfs_ulong' [-Wimplicit-function-decla] | |
| return amsysfs_get_sysfs_ulong(file); | |
| ^ | |
| adec_read.c: In function 'uio_init': | |
| adec_read.c:70:9: warning: assignment makes integer from pointer without a cast [-Wint-conversion] | |
| memmap = mmap(NULL, phys_size, PROT_READ|PROT_WRITE, MAP_SHARED, audec->fd_uio | |
| ^ | |
| adec_read.c:73:12: warning: comparison between pointer and integer | |
| if(memmap == MAP_FAILED){ | |
| ^ | |
| adec_read.c:78:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion] | |
| reg_base = memmap + phys_offset; | |
| ^ | |
| dsp/audiodsp-ctl.c:203:9: warning: type defaults to 'int' in declaration of 'err_count' [-Wimplicit-int] | |
| static err_count = 0; | |
| ^ | |
| dsp/audiodsp-ctl.c: In function 'audiodsp_start': | |
| dsp/audiodsp-ctl.c:217:9: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-dec] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| audio_out/alsa-out.c:18:28: fatal error: alsa/asoundlib.h: No such file or directory | |
| compilation terminated. | |
| audio_out/aml_resample.c: In function 'get_sysfs_str': | |
| audio_out/aml_resample.c:48:12: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-fu] | |
| return amsysfs_get_sysfs_str(path, valstr, size); | |
| ^ | |
| audio_out/aml_resample.c: In function 'af_resample_set_SampsNumRatio': | |
| audio_out/aml_resample.c:125:6: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-functi] | |
| if (am_getconfig_bool("media.libplayer.wfd")) | |
| ^ | |
| audio_out/aml_resample.c: In function 'af_resample_api': | |
| audio_out/aml_resample.c:383:39: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-] | |
| sample_read = dsp_pcm_read(audec, pbuf, *size); // return mono sample numbe | |
| ^ | |
| audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *' | |
| static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len) | |
| ^ | |
| audio_out/aml_resample.c:398:43: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-] | |
| sample_read = dsp_pcm_read(audec, pbuf, *size-num_sample); | |
| ^ | |
| audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *' | |
| static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len) | |
| ^ | |
| audio_out/aml_resample.c:415:39: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-] | |
| sample_read = dsp_pcm_read(audec, pbuf, *size*(128+resample_delta)/128 ); | |
| ^ | |
| audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *' | |
| static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len) | |
| ^ | |
| audio_out/aml_resample.c:436:43: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-] | |
| sample_read = dsp_pcm_read(audec, pbuf, *size-num_sample); | |
| ^ | |
| audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *' | |
| static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len) | |
| ^ | |
| audio_out/aml_resample.c: In function 'get_sysfs_int': | |
| audio_out/aml_resample.c:26:9: warning: ignoring return value of 'read', declared with attribute warn_unused_res] | |
| read(fd, bcmd, 16); | |
| ^ | |
| In file included from /usr/include/unistd.h:1148:0, | |
| from audio_out/aml_resample.c:4: | |
| In function 'read', | |
| inlined from 'get_sysfs_int' at audio_out/aml_resample.c:26:9: | |
| /usr/include/aarch64-linux-gnu/bits/unistd.h:42:9: warning: call to '__read_chk_warn' declared with attribute war | |
| return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf)); | |
| ^ | |
| audiodsp_update_format.c: In function 'get_sysfs_int': | |
| audiodsp_update_format.c:35:12: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-fu] | |
| return amsysfs_get_sysfs_int(path); | |
| ^ | |
| audiodsp_update_format.c: In function 'set_sysfs_int': | |
| audiodsp_update_format.c:40:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-fu] | |
| return amsysfs_set_sysfs_int(path, val); | |
| ^ | |
| audiodsp_update_format.c: In function 'audiodsp_format_update': | |
| audiodsp_update_format.c:115:37: warning: implicit declaration of function 'get_audio_decoder' [-Wimplicit-funct] | |
| if (dsp_ops->dsp_file_fd < 0 || get_audio_decoder()!=AUDIO_ARC_DECODER) { | |
| ^ | |
| audiodsp_update_format.c:150:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-funct] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| spdif_api.c:42:24: warning: initialization makes pointer from integer without a cast [-Wint-conversion] | |
| static char *map_buf = 0xffffffff; | |
| ^ | |
| spdif_api.c: In function 'iec958_init': | |
| spdif_api.c:69:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf == 0xffffffff){ | |
| ^ | |
| spdif_api.c:78:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf != 0xffffffff) | |
| ^ | |
| spdif_api.c: In function 'iec958_packed_frame_write_958buf': | |
| spdif_api.c:221:64: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync0 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_b | |
| ^ | |
| spdif_api.c:232:60: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync1 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_buf)) | |
| ^ | |
| spdif_api.c:248:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync2 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_bu | |
| ^ | |
| spdif_api.c: In function 'iec958_deinit': | |
| spdif_api.c:295:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf != 0xffffffff) | |
| ^ | |
| spdif_api.c: In function 'iec958_packed_frame_write_958buf': | |
| spdif_api.c:224:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf,tail); | |
| ^ | |
| spdif_api.c:235:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf+tail,frame_size-tail); | |
| ^ | |
| spdif_api.c:251:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf,frame_size); | |
| ^ | |
| pcmenc_api.c: In function 'pcmenc_init': | |
| pcmenc_api.c:44:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion] | |
| map_buf = 0xffffffff; | |
| ^ | |
| dts_transenc_api.c: In function 'dts_transenc_init': | |
| odroid@odroid64:~/c2_aml_libs$ l | |
| Makefile amadec/ amcodec/ description-pak postinstall-pak | |
| README.md amavutils/ aml.conf ld.so.conf | |
| odroid@odroid64:~/c2_aml_libs$ | |
| odroid@odroid64:~/c2_aml_libs$ l | |
| Makefile amadec/ amcodec/ description-pak postinstall-pak | |
| README.md amavutils/ aml.conf ld.so.conf | |
| odroid@odroid64:~/c2_aml_libs$ cd .. | |
| odroid@odroid64:~$ gcc | |
| gcc: fatal error: no input files | |
| compilation terminated. | |
| odroid@odroid64:~$ gcc -v | |
| Using built-in specs. | |
| COLLECT_GCC=gcc | |
| COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/5/lto-wrapper | |
| Target: aarch64-linux-gnu | |
| Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 5.3.1-10ubuntu1' --with-bugurl=file:///usru | |
| Thread model: posix | |
| gcc version 5.3.1 20160224 (Ubuntu/Linaro 5.3.1-10ubuntu1) | |
| odroid@odroid64:~$ uname -a | |
| Linux odroid64 3.14.29+ #1 SMP PREEMPT Fri Feb 26 14:49:50 KST 2016 aarch64 aarch64 aarch64 GNU/Linux | |
| odroid@odroid64:~$ cd c2_aml_libs/ | |
| odroid@odroid64:~/c2_aml_libs$ make | |
| make -C amavutils | |
| make[1]: Entering directory '/home/odroid/c2_aml_libs/amavutils' | |
| make[1]: Nothing to be done for 'all'. | |
| make[1]: Leaving directory '/home/odroid/c2_aml_libs/amavutils' | |
| make -C amadec | |
| make[1]: Entering directory '/home/odroid/c2_aml_libs/amadec' | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_am | |
| adec-external-ctrl.c: In function 'dummy_decode_set_mute': | |
| adec-external-ctrl.c:253:9: warning: implicit declaration of function 'dummy_alsa_control' [-Wimplicit-function-] | |
| dummy_alsa_control(mute_ctl.ctlname, 0, 1, NULL);//mute | |
| ^ | |
| adec-external-ctrl.c: In function 'audio_get_pcm_level': | |
| adec-external-ctrl.c:650:10: warning: implicit declaration of function 'audiodsp_get_pcm_level' [-Wimplicit-func] | |
| return audiodsp_get_pcm_level(&audec->adsp_ops); | |
| ^ | |
| adec-internal-mgt.c: In function 'start_adec': | |
| adec-internal-mgt.c:135:13: warning: 'return' with a value, in function returning void | |
| return -1; | |
| ^ | |
| adec-internal-mgt.c: In function 'adec_message_loop': | |
| adec-internal-mgt.c:345:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-dec] | |
| adec_reset_track(audec); | |
| ^ | |
| adec-internal-mgt.c: In function 'set_audio_decoder': | |
| adec-internal-mgt.c:509:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declara] | |
| ret = property_get("media.arm.audio.decoder",value,NULL); | |
| ^ | |
| adec-internal-mgt.c: In function 'audiodec_init': | |
| adec-internal-mgt.c:640:5: warning: implicit declaration of function 'get_output_func' [-Wimplicit-function-decl] | |
| get_output_func(audec); | |
| ^ | |
| adec-internal-mgt.c:658:13: warning: implicit declaration of function 'RegisterDecode' [-Wimplicit-function-decl] | |
| res=RegisterDecode(audec,codec_type); | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from adec-internal-mgt.c:19: | |
| adec-internal-mgt.c:674:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'pthrea] | |
| adec_print("Create adec main thread success! tid = %d\n", tid); | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c:56:5: warning: initialization makes integer from pointer without a cast [-Wint-conversion] | |
| NULL | |
| ^ | |
| adec-ffmpeg-mgt.c:56:5: note: (near initialization for 'audio_lib_list[16].codec_id') | |
| adec-ffmpeg-mgt.c: In function 'find_audio_lib': | |
| adec-ffmpeg-mgt.c:76:16: warning: assignment makes integer from pointer without a cast [-Wint-conversion] | |
| fd = dlopen(audio_lib_list[i].name,RTLD_NOW); | |
| ^ | |
| adec-ffmpeg-mgt.c:79:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->init = dlsym(fd, "audio_dec_init"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:80:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->decode = dlsym(fd, "audio_dec_decode"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:81:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->release = dlsym(fd, "audio_dec_release"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:82:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->getinfo = dlsym(fd, "audio_dec_getinfo"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'armdec_get_pts': | |
| adec-ffmpeg-mgt.c:248:8: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-decl] | |
| if(am_getconfig_bool("media.arm.audio.apts_add")) | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'InBufferInit': | |
| adec-ffmpeg-mgt.c:345:15: warning: implicit declaration of function 'uio_init' [-Wimplicit-function-declaration] | |
| int ret = uio_init(audec); | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'audio_codec_init': | |
| adec-ffmpeg-mgt.c:548:39: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
| audec->adsp_ops.set_cur_apts = armdec_set_pts; | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from /home/odroid/c2_aml_libs/amadec/adec-pts-mgt.h:14, | |
| from adec-ffmpeg-mgt.c:10: | |
| adec-ffmpeg-mgt.c: In function 'start_decode_thread': | |
| adec-ffmpeg-mgt.c:818:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'pthread_] | |
| adec_print("[%s]Create get package thread success! tid = %d\n",__FUNCTION__ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c:827:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'pthread_] | |
| adec_print("[%s]Create ffmpeg decode thread success! tid = %d\n",__FUNCTION | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'adec_armdec_loop': | |
| adec-ffmpeg-mgt.c:1214:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-decl] | |
| adec_reset_track(audec); | |
| ^ | |
| adec-pts-mgt.c: In function 'set_tsync_enable': | |
| adec-pts-mgt.c:30:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-dec] | |
| return amsysfs_set_sysfs_int(path, enable); | |
| ^ | |
| adec-pts-mgt.c: In function 'adec_pts_start': | |
| adec-pts-mgt.c:86:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declara] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| adec-pts-mgt.c:97:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| if(property_get("sys.amplayer.drop_pcm",value,NULL) > 0) | |
| ^ | |
| adec-pts-mgt.c:101:8: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-dec] | |
| if(amsysfs_set_sysfs_str(TSYNC_EVENT, "AUDIO_PRE_START") == -1) | |
| ^ | |
| adec-pts-mgt.c:109:7: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-dec] | |
| if (amsysfs_get_sysfs_str(TSYNC_APTS, buf, sizeof(buf)) == -1) { | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from /home/odroid/c2_aml_libs/amadec/adec-pts-mgt.h:14, | |
| from adec-pts-mgt.c:18: | |
| adec-pts-mgt.c: In function 'adec_pts_droppcm': | |
| adec-pts-mgt.c:170:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'lo] | |
| adec_print("before drop --apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts,vp | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:170:16: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'lo] | |
| adec_print("before drop --apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts,vp | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:228:16: warning: format '%d' expects argument of type 'int', but argument 3 has type '__time_t {a] | |
| adec_print("==old time sec :%d usec:%d \n", old_time.tv_sec ,old_time.tv_ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:228:16: warning: format '%d' expects argument of type 'int', but argument 4 has type '__suseconds] | |
| adec_print("==old time sec :%d usec:%d \n", old_time.tv_sec ,old_time.tv_ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:229:16: warning: format '%d' expects argument of type 'int', but argument 3 has type '__time_t {a] | |
| adec_print("==new time sec:%d usec:%d \n", new_time.tv_sec ,new_time.tv_u | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:229:16: warning: format '%d' expects argument of type 'int', but argument 4 has type '__suseconds] | |
| adec_print("==new time sec:%d usec:%d \n", new_time.tv_sec ,new_time.tv_u | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:243:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'lo] | |
| adec_print("after drop pcm:--apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:243:16: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'lo] | |
| adec_print("after drop pcm:--apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| feeder.c: In function 'get_audio_format': | |
| feeder.c:30:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaratio] | |
| amsysfs_get_sysfs_str(FORMAT_PATH, format, 21); | |
| ^ | |
| feeder.c: In function 'feeder_init': | |
| feeder.c:169:11: warning: implicit declaration of function 'audiodsp_init' [-Wimplicit-function-declaration] | |
| ret = audiodsp_init(dsp_ops); | |
| ^ | |
| feeder.c:175:11: warning: implicit declaration of function 'audiodsp_start' [-Wimplicit-function-declaration] | |
| ret = audiodsp_start(audec); | |
| ^ | |
| feeder.c:183:9: warning: implicit declaration of function 'audiodsp_release' [-Wimplicit-function-declaration] | |
| audiodsp_release(dsp_ops); | |
| ^ | |
| feeder.c: In function 'feeder_release': | |
| feeder.c:207:11: warning: implicit declaration of function 'audiodsp_stop' [-Wimplicit-function-declaration] | |
| ret = audiodsp_stop(dsp_ops); | |
| ^ | |
| adec_read.c: In function 'get_num_infile': | |
| adec_read.c:46:9: warning: implicit declaration of function 'amsysfs_get_sysfs_ulong' [-Wimplicit-function-decla] | |
| return amsysfs_get_sysfs_ulong(file); | |
| ^ | |
| adec_read.c: In function 'uio_init': | |
| adec_read.c:70:9: warning: assignment makes integer from pointer without a cast [-Wint-conversion] | |
| memmap = mmap(NULL, phys_size, PROT_READ|PROT_WRITE, MAP_SHARED, audec->fd_uio | |
| ^ | |
| adec_read.c:73:12: warning: comparison between pointer and integer | |
| if(memmap == MAP_FAILED){ | |
| ^ | |
| adec_read.c:78:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion] | |
| reg_base = memmap + phys_offset; | |
| ^ | |
| dsp/audiodsp-ctl.c:203:9: warning: type defaults to 'int' in declaration of 'err_count' [-Wimplicit-int] | |
| static err_count = 0; | |
| ^ | |
| dsp/audiodsp-ctl.c: In function 'audiodsp_start': | |
| dsp/audiodsp-ctl.c:217:9: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-dec] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| audio_out/alsa-out.c:18:28: fatal error: alsa/asoundlib.h: No such file or directory | |
| compilation terminated. | |
| audio_out/aml_resample.c: In function 'get_sysfs_str': | |
| audio_out/aml_resample.c:48:12: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-fu] | |
| return amsysfs_get_sysfs_str(path, valstr, size); | |
| ^ | |
| audio_out/aml_resample.c: In function 'af_resample_set_SampsNumRatio': | |
| audio_out/aml_resample.c:125:6: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-functi] | |
| if (am_getconfig_bool("media.libplayer.wfd")) | |
| ^ | |
| audio_out/aml_resample.c: In function 'af_resample_api': | |
| audio_out/aml_resample.c:383:39: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-] | |
| sample_read = dsp_pcm_read(audec, pbuf, *size); // return mono sample numbe | |
| ^ | |
| audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *' | |
| static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len) | |
| ^ | |
| audio_out/aml_resample.c:398:43: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-] | |
| sample_read = dsp_pcm_read(audec, pbuf, *size-num_sample); | |
| ^ | |
| audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *' | |
| static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len) | |
| ^ | |
| audio_out/aml_resample.c:415:39: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-] | |
| sample_read = dsp_pcm_read(audec, pbuf, *size*(128+resample_delta)/128 ); | |
| ^ | |
| audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *' | |
| static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len) | |
| ^ | |
| audio_out/aml_resample.c:436:43: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-] | |
| sample_read = dsp_pcm_read(audec, pbuf, *size-num_sample); | |
| ^ | |
| audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *' | |
| static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len) | |
| ^ | |
| audio_out/aml_resample.c: In function 'get_sysfs_int': | |
| audio_out/aml_resample.c:26:9: warning: ignoring return value of 'read', declared with attribute warn_unused_res] | |
| read(fd, bcmd, 16); | |
| ^ | |
| In file included from /usr/include/unistd.h:1148:0, | |
| from audio_out/aml_resample.c:4: | |
| In function 'read', | |
| inlined from 'get_sysfs_int' at audio_out/aml_resample.c:26:9: | |
| /usr/include/aarch64-linux-gnu/bits/unistd.h:42:9: warning: call to '__read_chk_warn' declared with attribute war | |
| return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf)); | |
| ^ | |
| audiodsp_update_format.c: In function 'get_sysfs_int': | |
| audiodsp_update_format.c:35:12: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-fu] | |
| return amsysfs_get_sysfs_int(path); | |
| ^ | |
| audiodsp_update_format.c: In function 'set_sysfs_int': | |
| audiodsp_update_format.c:40:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-fu] | |
| return amsysfs_set_sysfs_int(path, val); | |
| ^ | |
| audiodsp_update_format.c: In function 'audiodsp_format_update': | |
| audiodsp_update_format.c:115:37: warning: implicit declaration of function 'get_audio_decoder' [-Wimplicit-funct] | |
| if (dsp_ops->dsp_file_fd < 0 || get_audio_decoder()!=AUDIO_ARC_DECODER) { | |
| ^ | |
| audiodsp_update_format.c:150:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-funct] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| spdif_api.c:42:24: warning: initialization makes pointer from integer without a cast [-Wint-conversion] | |
| static char *map_buf = 0xffffffff; | |
| ^ | |
| spdif_api.c: In function 'iec958_init': | |
| spdif_api.c:69:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf == 0xffffffff){ | |
| ^ | |
| spdif_api.c:78:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf != 0xffffffff) | |
| ^ | |
| spdif_api.c: In function 'iec958_packed_frame_write_958buf': | |
| spdif_api.c:221:64: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync0 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_b | |
| ^ | |
| spdif_api.c:232:60: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync1 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_buf)) | |
| ^ | |
| spdif_api.c:248:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync2 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_bu | |
| ^ | |
| spdif_api.c: In function 'iec958_deinit': | |
| spdif_api.c:295:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf != 0xffffffff) | |
| ^ | |
| spdif_api.c: In function 'iec958_packed_frame_write_958buf': | |
| spdif_api.c:224:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf,tail); | |
| ^ | |
| spdif_api.c:235:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf+tail,frame_size-tail); | |
| ^ | |
| spdif_api.c:251:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf,frame_size); | |
| ^ | |
| pcmenc_api.c: In function 'pcmenc_init': | |
| pcmenc_api.c:44:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion] | |
| map_buf = 0xffffffff; | |
| ^ | |
| dts_transenc_api.c: In function 'dts_transenc_init': | |
| dts_transenc_api.c:52:18: warning: initialization makes integer from pointer without a cast [-Wint-conversion] | |
| int fd_dtsenc = dlopen("libdtsenc.so",RTLD_NOW); | |
| ^ | |
| dts_transenc_api.c:55:34: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Win] | |
| enc_ops.enc_init = dlsym(fd_dtsenc, "init"); | |
| ^ | |
| In file included from dts_transenc_api.c:7:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| dts_transenc_api.c:56:30: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Win] | |
| enc_ops.enc_encode = dlsym(fd_dtsenc, "encode_frame"); | |
| ^ | |
| In file included from dts_transenc_api.c:7:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| dts_transenc_api.c:57:31: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Win] | |
| enc_ops.enc_release = dlsym(fd_dtsenc, "release"); | |
| ^ | |
| In file included from dts_transenc_api.c:7:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| dts_transenc_api.c:87:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] | |
| close(fd_dtsenc); | |
| ^ | |
| dts_transenc_api.c: In function 'dts_transenc_process_frame': | |
| dts_transenc_api.c:106:22: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] | |
| usleep(1000); | |
| ^ | |
| dts_transenc_api.c:116:69: warning: passing argument 4 of 'enc_ops.enc_encode' makes integer from pointer withou] | |
| rv = enc_ops.enc_encode(dts_transenc_info, stream, output, &output_siz | |
| ^ | |
| dts_transenc_api.c:116:69: note: expected 'unsigned int' but argument is of type 'unsigned int *' | |
| dts_enc.c: In function 'get_dts_mode': | |
| dts_enc.c:39:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declarati] | |
| amsysfs_get_sysfs_str(DIGITAL_RAW_PATH, bcmd, 28); | |
| ^ | |
| dts_enc.c: In function 'get_cpu_type': | |
| dts_enc.c:66:15: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| int ret = property_get("ro.board.platform",value,NULL); | |
| ^ | |
| dts_enc.c:68:18: warning: implicit declaration of function 'match_types' [-Wimplicit-function-declaration] | |
| if (ret>0 && match_types("meson6",value)) | |
| ^ | |
| dts_enc.c: In function 'dtsenc_init': | |
| dts_enc.c:103:2: warning: implicit declaration of function 'pthread_setname_np' [-Wimplicit-function-declaration] | |
| pthread_setname_np(tid,"AmadecDtsEncLP"); | |
| ^ | |
| dts_enc.c: In function 'dts_enc_loop': | |
| dts_enc.c:172:5: warning: implicit declaration of function 'iec958buf_fill_zero' [-Wimplicit-function-declaratio] | |
| iec958buf_fill_zero(); | |
| ^ | |
| dts_enc.c:192:12: warning: return makes pointer from integer without a cast [-Wint-conversion] | |
| return -1; | |
| ^ | |
| audio_out/alsactl_parser.c: In function 'strtrimr': | |
| audio_out/alsactl_parser.c:14:12: warning: implicit declaration of function 'isspace' [-Wimplicit-function-decla] | |
| while (isspace(pstr[i]) && (i >= 0)) | |
| ^ | |
| Makefile:30: recipe for target 'libamadec.so' failed | |
| make[1]: *** [libamadec.so] Error 1 | |
| make[1]: Leaving directory '/home/odroid/c2_aml_libs/amadec' | |
| Makefile:2: recipe for target 'all' failed | |
| make: *** [all] Error 2 | |
| odroid@odroid64:~/c2_aml_libs$ cd .. | |
| odroid@odroid64:~$ l | |
| Desktop/ Downloads/ Pictures/ Templates/ a.out* resize.log test.c | |
| Documents/ Music/ Public/ Videos/ c2_aml_libs/ sysbench/ | |
| odroid@odroid64:~$ rm -rf c2_aml_libs/ | |
| odroid@odroid64:~$ git clone https://github.com/Owersun/c2_aml_libs.git | |
| Cloning into 'c2_aml_libs'... | |
| remote: Counting objects: 278, done. | |
| remote: Total 278 (delta 0), reused 0 (delta 0), pack-reused 278 | |
| Receiving objects: 100% (278/278), 2.17 MiB | 656.00 KiB/s, done. | |
| Resolving deltas: 100% (99/99), done. | |
| Checking connectivity... done. | |
| odroid@odroid64:~$ cd c2_aml_libs/ | |
| odroid@odroid64:~/c2_aml_libs$ l | |
| Makefile amadec/ amcodec/ description-pak postinstall-pak | |
| README.md amavutils/ aml.conf ld.so.conf | |
| odroid@odroid64:~/c2_aml_libs$ make | |
| make -C amavutils | |
| make[1]: Entering directory '/home/odroid/c2_aml_libs/amavutils' | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| amdisplayutils.c: In function 'get_display_mode': | |
| amdisplayutils.c:45:14: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {ak] | |
| LOGI("[get_display_mode]mode=%s strlen=%d\n", mode, strlen(mode)); | |
| ^ | |
| amdisplayutils.c: In function 'amdisplay_utils_get_size': | |
| amdisplayutils.c:61:11: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-d] | |
| ret = amsysfs_get_sysfs_str(FB_DEVICE_PATH, buf, SYSCMD_BUFSIZE); | |
| ^ | |
| amdisplayutils.c: In function 'amdisplay_utils_set_scale_mode': | |
| amdisplayutils.c:108:14: warning: too many arguments for format [-Wformat-extra-args] | |
| LOGI("unsupport scaling mode,x1,x2 only\n", scale_wx, scale_hx); | |
| ^ | |
| amdisplayutils.c:113:15: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-] | |
| ret = amsysfs_set_sysfs_str(SCALE_REQUEST, "1"); | |
| ^ | |
| amdisplayutils.c: In function 'get_display_mode': | |
| amdisplayutils.c:44:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wu] | |
| read(fd, mode, 15); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| ammodule.c: In function 'ammodule_simple_load_module': | |
| ammodule.c:215:35: warning: passing argument 2 of 'ammodule_load_module' from incompatible pointer type [-Wincom] | |
| ret=ammodule_load_module(name,&module); | |
| ^ | |
| ammodule.c:115:5: note: expected 'const struct ammodule_t **' but argument is of type 'struct ammodule_t **' | |
| int ammodule_load_module(const char *modulename, const struct ammodule_t **modu | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_str': | |
| amsysfsutils.c:46:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunu] | |
| read(fd, valstr, size - 1); | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_int': | |
| amsysfsutils.c:82:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunu] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_int16': | |
| amsysfsutils.c:116:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_ulong': | |
| amsysfsutils.c:131:6: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| Amvideoutils.c: In function 'is_video_on_vpp2': | |
| Amvideoutils.c:89:9: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| if (property_get("ro.vout.dualdisplay4", val, "false") | |
| ^ | |
| Amvideoutils.c: In function 'amvideo_utils_set_virtual_position': | |
| Amvideoutils.c:360:21: warning: implicit declaration of function 'amdisplay_utils_get_osd_rotation' [-Wimplicit-] | |
| int osd_rotation = amdisplay_utils_get_osd_rotation(); | |
| ^ | |
| Amvideoutils.c: In function 'get_axis': | |
| Amvideoutils.c:331:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, buf, SYSCMD_BUFSIZE); | |
| ^ | |
| Amvideoutils.c: In function 'amvideo_utils_set_virtual_position': | |
| Amvideoutils.c:432:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(dev_fd, buf, SYSCMD_BUFSIZE); | |
| ^ | |
| Amvideoutils.c: In function 'amvideo_utils_get_hdmi_authenticate': | |
| Amvideoutils.c:815:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroidc | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amavutils -I/home/odroid/c2_aml_libs/amavutils/include -I/home/odroid | |
| amdisplayutils.c: In function 'get_display_mode': | |
| amdisplayutils.c:45:14: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {ak] | |
| LOGI("[get_display_mode]mode=%s strlen=%d\n", mode, strlen(mode)); | |
| ^ | |
| amdisplayutils.c: In function 'amdisplay_utils_get_size': | |
| amdisplayutils.c:61:11: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-d] | |
| ret = amsysfs_get_sysfs_str(FB_DEVICE_PATH, buf, SYSCMD_BUFSIZE); | |
| ^ | |
| amdisplayutils.c: In function 'amdisplay_utils_set_scale_mode': | |
| amdisplayutils.c:108:14: warning: too many arguments for format [-Wformat-extra-args] | |
| LOGI("unsupport scaling mode,x1,x2 only\n", scale_wx, scale_hx); | |
| ^ | |
| amdisplayutils.c:113:15: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-] | |
| ret = amsysfs_set_sysfs_str(SCALE_REQUEST, "1"); | |
| ^ | |
| amdisplayutils.c: In function 'get_display_mode': | |
| amdisplayutils.c:44:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wu] | |
| read(fd, mode, 15); | |
| ^ | |
| ammodule.c: In function 'ammodule_simple_load_module': | |
| ammodule.c:215:35: warning: passing argument 2 of 'ammodule_load_module' from incompatible pointer type [-Wincom] | |
| ret=ammodule_load_module(name,&module); | |
| ^ | |
| ammodule.c:115:5: note: expected 'const struct ammodule_t **' but argument is of type 'struct ammodule_t **' | |
| int ammodule_load_module(const char *modulename, const struct ammodule_t **modu | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_str': | |
| amsysfsutils.c:46:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunu] | |
| read(fd, valstr, size - 1); | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_int': | |
| amsysfsutils.c:82:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunu] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_int16': | |
| amsysfsutils.c:116:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| amsysfsutils.c: In function 'amsysfs_get_sysfs_ulong': | |
| amsysfsutils.c:131:6: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| Amvideoutils.c: In function 'is_video_on_vpp2': | |
| Amvideoutils.c:89:9: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| if (property_get("ro.vout.dualdisplay4", val, "false") | |
| ^ | |
| Amvideoutils.c: In function 'amvideo_utils_set_virtual_position': | |
| Amvideoutils.c:360:21: warning: implicit declaration of function 'amdisplay_utils_get_osd_rotation' [-Wimplicit-] | |
| int osd_rotation = amdisplay_utils_get_osd_rotation(); | |
| ^ | |
| Amvideoutils.c: In function 'get_axis': | |
| Amvideoutils.c:331:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, buf, SYSCMD_BUFSIZE); | |
| ^ | |
| Amvideoutils.c: In function 'amvideo_utils_set_virtual_position': | |
| Amvideoutils.c:432:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(dev_fd, buf, SYSCMD_BUFSIZE); | |
| ^ | |
| Amvideoutils.c: In function 'amvideo_utils_get_hdmi_authenticate': | |
| Amvideoutils.c:815:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wun] | |
| read(fd, bcmd, sizeof(bcmd)); | |
| ^ | |
| make[1]: Leaving directory '/home/odroid/c2_aml_libs/amavutils' | |
| make -C amadec | |
| make[1]: Entering directory '/home/odroid/c2_aml_libs/amadec' | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| adec-external-ctrl.c: In function 'dummy_decode_set_mute': | |
| adec-external-ctrl.c:253:9: warning: implicit declaration of function 'dummy_alsa_control' [-Wimplicit-function-] | |
| dummy_alsa_control(mute_ctl.ctlname, 0, 1, NULL);//mute | |
| ^ | |
| adec-external-ctrl.c: In function 'audio_get_pcm_level': | |
| adec-external-ctrl.c:650:10: warning: implicit declaration of function 'audiodsp_get_pcm_level' [-Wimplicit-func] | |
| return audiodsp_get_pcm_level(&audec->adsp_ops); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| adec-internal-mgt.c: In function 'start_adec': | |
| adec-internal-mgt.c:135:13: warning: 'return' with a value, in function returning void | |
| return -1; | |
| ^ | |
| adec-internal-mgt.c: In function 'adec_message_loop': | |
| adec-internal-mgt.c:345:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-dec] | |
| adec_reset_track(audec); | |
| ^ | |
| adec-internal-mgt.c: In function 'set_audio_decoder': | |
| adec-internal-mgt.c:509:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declara] | |
| ret = property_get("media.arm.audio.decoder",value,NULL); | |
| ^ | |
| adec-internal-mgt.c: In function 'audiodec_init': | |
| adec-internal-mgt.c:640:5: warning: implicit declaration of function 'get_output_func' [-Wimplicit-function-decl] | |
| get_output_func(audec); | |
| ^ | |
| adec-internal-mgt.c:658:13: warning: implicit declaration of function 'RegisterDecode' [-Wimplicit-function-decl] | |
| res=RegisterDecode(audec,codec_type); | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from adec-internal-mgt.c:19: | |
| adec-internal-mgt.c:674:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'pthrea] | |
| adec_print("Create adec main thread success! tid = %d\n", tid); | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| adec-ffmpeg-mgt.c:56:5: warning: initialization makes integer from pointer without a cast [-Wint-conversion] | |
| NULL | |
| ^ | |
| adec-ffmpeg-mgt.c:56:5: note: (near initialization for 'audio_lib_list[16].codec_id') | |
| adec-ffmpeg-mgt.c: In function 'find_audio_lib': | |
| adec-ffmpeg-mgt.c:76:16: warning: assignment makes integer from pointer without a cast [-Wint-conversion] | |
| fd = dlopen(audio_lib_list[i].name,RTLD_NOW); | |
| ^ | |
| adec-ffmpeg-mgt.c:79:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->init = dlsym(fd, "audio_dec_init"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:80:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->decode = dlsym(fd, "audio_dec_decode"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:81:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->release = dlsym(fd, "audio_dec_release"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:82:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->getinfo = dlsym(fd, "audio_dec_getinfo"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'armdec_get_pts': | |
| adec-ffmpeg-mgt.c:248:8: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-decl] | |
| if(am_getconfig_bool("media.arm.audio.apts_add")) | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'InBufferInit': | |
| adec-ffmpeg-mgt.c:345:15: warning: implicit declaration of function 'uio_init' [-Wimplicit-function-declaration] | |
| int ret = uio_init(audec); | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'audio_codec_init': | |
| adec-ffmpeg-mgt.c:548:39: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
| audec->adsp_ops.set_cur_apts = armdec_set_pts; | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from /home/odroid/c2_aml_libs/amadec/adec-pts-mgt.h:14, | |
| from adec-ffmpeg-mgt.c:10: | |
| adec-ffmpeg-mgt.c: In function 'start_decode_thread': | |
| adec-ffmpeg-mgt.c:818:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'pthread_] | |
| adec_print("[%s]Create get package thread success! tid = %d\n",__FUNCTION__ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c:827:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'pthread_] | |
| adec_print("[%s]Create ffmpeg decode thread success! tid = %d\n",__FUNCTION | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'adec_armdec_loop': | |
| adec-ffmpeg-mgt.c:1214:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-decl] | |
| adec_reset_track(audec); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| adec-pts-mgt.c: In function 'set_tsync_enable': | |
| adec-pts-mgt.c:30:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-dec] | |
| return amsysfs_set_sysfs_int(path, enable); | |
| ^ | |
| adec-pts-mgt.c: In function 'adec_pts_start': | |
| adec-pts-mgt.c:86:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declara] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| adec-pts-mgt.c:97:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| if(property_get("sys.amplayer.drop_pcm",value,NULL) > 0) | |
| ^ | |
| adec-pts-mgt.c:101:8: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-dec] | |
| if(amsysfs_set_sysfs_str(TSYNC_EVENT, "AUDIO_PRE_START") == -1) | |
| ^ | |
| adec-pts-mgt.c:109:7: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-dec] | |
| if (amsysfs_get_sysfs_str(TSYNC_APTS, buf, sizeof(buf)) == -1) { | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from /home/odroid/c2_aml_libs/amadec/adec-pts-mgt.h:14, | |
| from adec-pts-mgt.c:18: | |
| adec-pts-mgt.c: In function 'adec_pts_droppcm': | |
| adec-pts-mgt.c:170:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'lo] | |
| adec_print("before drop --apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts,vp | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:170:16: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'lo] | |
| adec_print("before drop --apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts,vp | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:228:16: warning: format '%d' expects argument of type 'int', but argument 3 has type '__time_t {a] | |
| adec_print("==old time sec :%d usec:%d \n", old_time.tv_sec ,old_time.tv_ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:228:16: warning: format '%d' expects argument of type 'int', but argument 4 has type '__suseconds] | |
| adec_print("==old time sec :%d usec:%d \n", old_time.tv_sec ,old_time.tv_ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:229:16: warning: format '%d' expects argument of type 'int', but argument 3 has type '__time_t {a] | |
| adec_print("==new time sec:%d usec:%d \n", new_time.tv_sec ,new_time.tv_u | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:229:16: warning: format '%d' expects argument of type 'int', but argument 4 has type '__suseconds] | |
| adec_print("==new time sec:%d usec:%d \n", new_time.tv_sec ,new_time.tv_u | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:243:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'lo] | |
| adec_print("after drop pcm:--apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:243:16: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'lo] | |
| adec_print("after drop pcm:--apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| feeder.c: In function 'get_audio_format': | |
| feeder.c:30:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaratio] | |
| amsysfs_get_sysfs_str(FORMAT_PATH, format, 21); | |
| ^ | |
| feeder.c: In function 'feeder_init': | |
| feeder.c:169:11: warning: implicit declaration of function 'audiodsp_init' [-Wimplicit-function-declaration] | |
| ret = audiodsp_init(dsp_ops); | |
| ^ | |
| feeder.c:175:11: warning: implicit declaration of function 'audiodsp_start' [-Wimplicit-function-declaration] | |
| ret = audiodsp_start(audec); | |
| ^ | |
| feeder.c:183:9: warning: implicit declaration of function 'audiodsp_release' [-Wimplicit-function-declaration] | |
| audiodsp_release(dsp_ops); | |
| ^ | |
| feeder.c: In function 'feeder_release': | |
| feeder.c:207:11: warning: implicit declaration of function 'audiodsp_stop' [-Wimplicit-function-declaration] | |
| ret = audiodsp_stop(dsp_ops); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| adec_read.c: In function 'get_num_infile': | |
| adec_read.c:46:9: warning: implicit declaration of function 'amsysfs_get_sysfs_ulong' [-Wimplicit-function-decla] | |
| return amsysfs_get_sysfs_ulong(file); | |
| ^ | |
| adec_read.c: In function 'uio_init': | |
| adec_read.c:70:9: warning: assignment makes integer from pointer without a cast [-Wint-conversion] | |
| memmap = mmap(NULL, phys_size, PROT_READ|PROT_WRITE, MAP_SHARED, audec->fd_uio | |
| ^ | |
| adec_read.c:73:12: warning: comparison between pointer and integer | |
| if(memmap == MAP_FAILED){ | |
| ^ | |
| adec_read.c:78:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion] | |
| reg_base = memmap + phys_offset; | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| audiodsp_update_format.c: In function 'get_sysfs_int': | |
| audiodsp_update_format.c:35:12: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-fu] | |
| return amsysfs_get_sysfs_int(path); | |
| ^ | |
| audiodsp_update_format.c: In function 'set_sysfs_int': | |
| audiodsp_update_format.c:40:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-fu] | |
| return amsysfs_set_sysfs_int(path, val); | |
| ^ | |
| audiodsp_update_format.c: In function 'audiodsp_format_update': | |
| audiodsp_update_format.c:115:37: warning: implicit declaration of function 'get_audio_decoder' [-Wimplicit-funct] | |
| if (dsp_ops->dsp_file_fd < 0 || get_audio_decoder()!=AUDIO_ARC_DECODER) { | |
| ^ | |
| audiodsp_update_format.c:150:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-funct] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| spdif_api.c:42:24: warning: initialization makes pointer from integer without a cast [-Wint-conversion] | |
| static char *map_buf = 0xffffffff; | |
| ^ | |
| spdif_api.c: In function 'iec958_init': | |
| spdif_api.c:69:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf == 0xffffffff){ | |
| ^ | |
| spdif_api.c:78:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf != 0xffffffff) | |
| ^ | |
| spdif_api.c: In function 'iec958_packed_frame_write_958buf': | |
| spdif_api.c:221:64: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync0 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_b | |
| ^ | |
| spdif_api.c:232:60: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync1 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_buf)) | |
| ^ | |
| spdif_api.c:248:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync2 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_bu | |
| ^ | |
| spdif_api.c: In function 'iec958_deinit': | |
| spdif_api.c:295:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf != 0xffffffff) | |
| ^ | |
| spdif_api.c: In function 'iec958_packed_frame_write_958buf': | |
| spdif_api.c:224:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf,tail); | |
| ^ | |
| spdif_api.c:235:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf+tail,frame_size-tail); | |
| ^ | |
| spdif_api.c:251:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf,frame_size); | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| pcmenc_api.c: In function 'pcmenc_init': | |
| pcmenc_api.c:44:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion] | |
| map_buf = 0xffffffff; | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| dts_transenc_api.c: In function 'dts_transenc_init': | |
| dts_transenc_api.c:52:18: warning: initialization makes integer from pointer without a cast [-Wint-conversion] | |
| int fd_dtsenc = dlopen("libdtsenc.so",RTLD_NOW); | |
| ^ | |
| dts_transenc_api.c:55:34: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Win] | |
| enc_ops.enc_init = dlsym(fd_dtsenc, "init"); | |
| ^ | |
| In file included from dts_transenc_api.c:7:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| dts_transenc_api.c:56:30: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Win] | |
| enc_ops.enc_encode = dlsym(fd_dtsenc, "encode_frame"); | |
| ^ | |
| In file included from dts_transenc_api.c:7:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| dts_transenc_api.c:57:31: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Win] | |
| enc_ops.enc_release = dlsym(fd_dtsenc, "release"); | |
| ^ | |
| In file included from dts_transenc_api.c:7:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| dts_transenc_api.c:87:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] | |
| close(fd_dtsenc); | |
| ^ | |
| dts_transenc_api.c: In function 'dts_transenc_process_frame': | |
| dts_transenc_api.c:106:22: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] | |
| usleep(1000); | |
| ^ | |
| dts_transenc_api.c:116:69: warning: passing argument 4 of 'enc_ops.enc_encode' makes integer from pointer withou] | |
| rv = enc_ops.enc_encode(dts_transenc_info, stream, output, &output_siz | |
| ^ | |
| dts_transenc_api.c:116:69: note: expected 'unsigned int' but argument is of type 'unsigned int *' | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_amc | |
| dts_enc.c: In function 'get_dts_mode': | |
| dts_enc.c:39:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declarati] | |
| amsysfs_get_sysfs_str(DIGITAL_RAW_PATH, bcmd, 28); | |
| ^ | |
| dts_enc.c: In function 'get_cpu_type': | |
| dts_enc.c:66:15: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| int ret = property_get("ro.board.platform",value,NULL); | |
| ^ | |
| dts_enc.c:68:18: warning: implicit declaration of function 'match_types' [-Wimplicit-function-declaration] | |
| if (ret>0 && match_types("meson6",value)) | |
| ^ | |
| dts_enc.c: In function 'dtsenc_init': | |
| dts_enc.c:103:2: warning: implicit declaration of function 'pthread_setname_np' [-Wimplicit-function-declaration] | |
| pthread_setname_np(tid,"AmadecDtsEncLP"); | |
| ^ | |
| dts_enc.c: In function 'dts_enc_loop': | |
| dts_enc.c:172:5: warning: implicit declaration of function 'iec958buf_fill_zero' [-Wimplicit-function-declaratio] | |
| iec958buf_fill_zero(); | |
| ^ | |
| dts_enc.c:192:12: warning: return makes pointer from integer without a cast [-Wint-conversion] | |
| return -1; | |
| ^ | |
| cc -O2 -fPIC -g -I/home/odroid/c2_aml_libs/amadec -I/home/odroid/c2_aml_libs/amadec/include -I/home/odroid/c2_am | |
| adec-external-ctrl.c: In function 'dummy_decode_set_mute': | |
| adec-external-ctrl.c:253:9: warning: implicit declaration of function 'dummy_alsa_control' [-Wimplicit-function-] | |
| dummy_alsa_control(mute_ctl.ctlname, 0, 1, NULL);//mute | |
| ^ | |
| adec-external-ctrl.c: In function 'audio_get_pcm_level': | |
| adec-external-ctrl.c:650:10: warning: implicit declaration of function 'audiodsp_get_pcm_level' [-Wimplicit-func] | |
| return audiodsp_get_pcm_level(&audec->adsp_ops); | |
| ^ | |
| adec-internal-mgt.c: In function 'start_adec': | |
| adec-internal-mgt.c:135:13: warning: 'return' with a value, in function returning void | |
| return -1; | |
| ^ | |
| adec-internal-mgt.c: In function 'adec_message_loop': | |
| adec-internal-mgt.c:345:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-dec] | |
| adec_reset_track(audec); | |
| ^ | |
| adec-internal-mgt.c: In function 'set_audio_decoder': | |
| adec-internal-mgt.c:509:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declara] | |
| ret = property_get("media.arm.audio.decoder",value,NULL); | |
| ^ | |
| adec-internal-mgt.c: In function 'audiodec_init': | |
| adec-internal-mgt.c:640:5: warning: implicit declaration of function 'get_output_func' [-Wimplicit-function-decl] | |
| get_output_func(audec); | |
| ^ | |
| adec-internal-mgt.c:658:13: warning: implicit declaration of function 'RegisterDecode' [-Wimplicit-function-decl] | |
| res=RegisterDecode(audec,codec_type); | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from adec-internal-mgt.c:19: | |
| adec-internal-mgt.c:674:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'pthrea] | |
| adec_print("Create adec main thread success! tid = %d\n", tid); | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c:56:5: warning: initialization makes integer from pointer without a cast [-Wint-conversion] | |
| NULL | |
| ^ | |
| adec-ffmpeg-mgt.c:56:5: note: (near initialization for 'audio_lib_list[16].codec_id') | |
| adec-ffmpeg-mgt.c: In function 'find_audio_lib': | |
| adec-ffmpeg-mgt.c:76:16: warning: assignment makes integer from pointer without a cast [-Wint-conversion] | |
| fd = dlopen(audio_lib_list[i].name,RTLD_NOW); | |
| ^ | |
| adec-ffmpeg-mgt.c:79:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->init = dlsym(fd, "audio_dec_init"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:80:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->decode = dlsym(fd, "audio_dec_decode"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:81:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->release = dlsym(fd, "audio_dec_release"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c:82:43: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint] | |
| adec_ops->getinfo = dlsym(fd, "audio_dec_getinfo"); | |
| ^ | |
| In file included from adec-ffmpeg-mgt.c:8:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'armdec_get_pts': | |
| adec-ffmpeg-mgt.c:248:8: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-decl] | |
| if(am_getconfig_bool("media.arm.audio.apts_add")) | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'InBufferInit': | |
| adec-ffmpeg-mgt.c:345:15: warning: implicit declaration of function 'uio_init' [-Wimplicit-function-declaration] | |
| int ret = uio_init(audec); | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'audio_codec_init': | |
| adec-ffmpeg-mgt.c:548:39: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
| audec->adsp_ops.set_cur_apts = armdec_set_pts; | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from /home/odroid/c2_aml_libs/amadec/adec-pts-mgt.h:14, | |
| from adec-ffmpeg-mgt.c:10: | |
| adec-ffmpeg-mgt.c: In function 'start_decode_thread': | |
| adec-ffmpeg-mgt.c:818:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'pthread_] | |
| adec_print("[%s]Create get package thread success! tid = %d\n",__FUNCTION__ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c:827:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'pthread_] | |
| adec_print("[%s]Create ffmpeg decode thread success! tid = %d\n",__FUNCTION | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-ffmpeg-mgt.c: In function 'adec_armdec_loop': | |
| adec-ffmpeg-mgt.c:1214:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-decl] | |
| adec_reset_track(audec); | |
| ^ | |
| adec-pts-mgt.c: In function 'set_tsync_enable': | |
| adec-pts-mgt.c:30:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-dec] | |
| return amsysfs_set_sysfs_int(path, enable); | |
| ^ | |
| adec-pts-mgt.c: In function 'adec_pts_start': | |
| adec-pts-mgt.c:86:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declara] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| adec-pts-mgt.c:97:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| if(property_get("sys.amplayer.drop_pcm",value,NULL) > 0) | |
| ^ | |
| adec-pts-mgt.c:101:8: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-dec] | |
| if(amsysfs_set_sysfs_str(TSYNC_EVENT, "AUDIO_PRE_START") == -1) | |
| ^ | |
| adec-pts-mgt.c:109:7: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-dec] | |
| if (amsysfs_get_sysfs_str(TSYNC_APTS, buf, sizeof(buf)) == -1) { | |
| ^ | |
| In file included from /home/odroid/c2_aml_libs/amadec/audio-dec.h:20:0, | |
| from /home/odroid/c2_aml_libs/amadec/adec-pts-mgt.h:14, | |
| from adec-pts-mgt.c:18: | |
| adec-pts-mgt.c: In function 'adec_pts_droppcm': | |
| adec-pts-mgt.c:170:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'lo] | |
| adec_print("before drop --apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts,vp | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:170:16: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'lo] | |
| adec_print("before drop --apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts,vp | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:228:16: warning: format '%d' expects argument of type 'int', but argument 3 has type '__time_t {a] | |
| adec_print("==old time sec :%d usec:%d \n", old_time.tv_sec ,old_time.tv_ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:228:16: warning: format '%d' expects argument of type 'int', but argument 4 has type '__suseconds] | |
| adec_print("==old time sec :%d usec:%d \n", old_time.tv_sec ,old_time.tv_ | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:229:16: warning: format '%d' expects argument of type 'int', but argument 3 has type '__time_t {a] | |
| adec_print("==new time sec:%d usec:%d \n", new_time.tv_sec ,new_time.tv_u | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:229:16: warning: format '%d' expects argument of type 'int', but argument 4 has type '__suseconds] | |
| adec_print("==new time sec:%d usec:%d \n", new_time.tv_sec ,new_time.tv_u | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:230:16: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [] | |
| adec_print("==old time ms is :%d new time ms is:%d diff:%d \n",old_time | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:243:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'lo] | |
| adec_print("after drop pcm:--apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| adec-pts-mgt.c:243:16: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'lo] | |
| adec_print("after drop pcm:--apts 0x%x,vpts 0x%x,apts %s, diff 0x%x\n",apts | |
| ^ | |
| /home/odroid/c2_aml_libs/amadec/include/log-print.h:24:109: note: in definition of macro 'adec_print' | |
| nv("LOG_LEVEL"); if (level&&atoi(level)>LOG_DEFAULT) fprintf(stderr,f,##s); els | |
| ^ | |
| feeder.c: In function 'get_audio_format': | |
| feeder.c:30:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaratio] | |
| amsysfs_get_sysfs_str(FORMAT_PATH, format, 21); | |
| ^ | |
| feeder.c: In function 'feeder_init': | |
| feeder.c:169:11: warning: implicit declaration of function 'audiodsp_init' [-Wimplicit-function-declaration] | |
| ret = audiodsp_init(dsp_ops); | |
| ^ | |
| feeder.c:175:11: warning: implicit declaration of function 'audiodsp_start' [-Wimplicit-function-declaration] | |
| ret = audiodsp_start(audec); | |
| ^ | |
| feeder.c:183:9: warning: implicit declaration of function 'audiodsp_release' [-Wimplicit-function-declaration] | |
| audiodsp_release(dsp_ops); | |
| ^ | |
| feeder.c: In function 'feeder_release': | |
| feeder.c:207:11: warning: implicit declaration of function 'audiodsp_stop' [-Wimplicit-function-declaration] | |
| ret = audiodsp_stop(dsp_ops); | |
| ^ | |
| adec_read.c: In function 'get_num_infile': | |
| adec_read.c:46:9: warning: implicit declaration of function 'amsysfs_get_sysfs_ulong' [-Wimplicit-function-decla] | |
| return amsysfs_get_sysfs_ulong(file); | |
| ^ | |
| adec_read.c: In function 'uio_init': | |
| adec_read.c:70:9: warning: assignment makes integer from pointer without a cast [-Wint-conversion] | |
| memmap = mmap(NULL, phys_size, PROT_READ|PROT_WRITE, MAP_SHARED, audec->fd_uio | |
| ^ | |
| adec_read.c:73:12: warning: comparison between pointer and integer | |
| if(memmap == MAP_FAILED){ | |
| ^ | |
| adec_read.c:78:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion] | |
| reg_base = memmap + phys_offset; | |
| ^ | |
| dsp/audiodsp-ctl.c:203:9: warning: type defaults to 'int' in declaration of 'err_count' [-Wimplicit-int] | |
| static err_count = 0; | |
| ^ | |
| dsp/audiodsp-ctl.c: In function 'audiodsp_start': | |
| dsp/audiodsp-ctl.c:217:9: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-dec] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| audio_out/alsa-out.c:18:28: fatal error: alsa/asoundlib.h: No such file or directory | |
| compilation terminated. | |
| audio_out/aml_resample.c: In function 'get_sysfs_str': | |
| audio_out/aml_resample.c:48:12: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-fu] | |
| return amsysfs_get_sysfs_str(path, valstr, size); | |
| ^ | |
| audio_out/aml_resample.c: In function 'af_resample_set_SampsNumRatio': | |
| audio_out/aml_resample.c:125:6: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-functi] | |
| if (am_getconfig_bool("media.libplayer.wfd")) | |
| ^ | |
| audio_out/aml_resample.c: In function 'af_resample_api': | |
| audio_out/aml_resample.c:383:39: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-] | |
| sample_read = dsp_pcm_read(audec, pbuf, *size); // return mono sample numbe | |
| ^ | |
| audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *' | |
| static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len) | |
| ^ | |
| audio_out/aml_resample.c:398:43: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-] | |
| sample_read = dsp_pcm_read(audec, pbuf, *size-num_sample); | |
| ^ | |
| audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *' | |
| static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len) | |
| ^ | |
| audio_out/aml_resample.c:415:39: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-] | |
| sample_read = dsp_pcm_read(audec, pbuf, *size*(128+resample_delta)/128 ); | |
| ^ | |
| audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *' | |
| static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len) | |
| ^ | |
| audio_out/aml_resample.c:436:43: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-] | |
| sample_read = dsp_pcm_read(audec, pbuf, *size-num_sample); | |
| ^ | |
| audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *' | |
| static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len) | |
| ^ | |
| audio_out/aml_resample.c: In function 'get_sysfs_int': | |
| audio_out/aml_resample.c:26:9: warning: ignoring return value of 'read', declared with attribute warn_unused_res] | |
| read(fd, bcmd, 16); | |
| ^ | |
| In file included from /usr/include/unistd.h:1148:0, | |
| from audio_out/aml_resample.c:4: | |
| In function 'read', | |
| inlined from 'get_sysfs_int' at audio_out/aml_resample.c:26:9: | |
| /usr/include/aarch64-linux-gnu/bits/unistd.h:42:9: warning: call to '__read_chk_warn' declared with attribute war | |
| return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf)); | |
| ^ | |
| audiodsp_update_format.c: In function 'get_sysfs_int': | |
| audiodsp_update_format.c:35:12: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-fu] | |
| return amsysfs_get_sysfs_int(path); | |
| ^ | |
| audiodsp_update_format.c: In function 'set_sysfs_int': | |
| audiodsp_update_format.c:40:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-fu] | |
| return amsysfs_set_sysfs_int(path, val); | |
| ^ | |
| audiodsp_update_format.c: In function 'audiodsp_format_update': | |
| audiodsp_update_format.c:115:37: warning: implicit declaration of function 'get_audio_decoder' [-Wimplicit-funct] | |
| if (dsp_ops->dsp_file_fd < 0 || get_audio_decoder()!=AUDIO_ARC_DECODER) { | |
| ^ | |
| audiodsp_update_format.c:150:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-funct] | |
| if (am_getconfig_bool("media.libplayer.wfd")) { | |
| ^ | |
| spdif_api.c:42:24: warning: initialization makes pointer from integer without a cast [-Wint-conversion] | |
| static char *map_buf = 0xffffffff; | |
| ^ | |
| spdif_api.c: In function 'iec958_init': | |
| spdif_api.c:69:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf == 0xffffffff){ | |
| ^ | |
| spdif_api.c:78:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf != 0xffffffff) | |
| ^ | |
| spdif_api.c: In function 'iec958_packed_frame_write_958buf': | |
| spdif_api.c:221:64: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync0 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_b | |
| ^ | |
| spdif_api.c:232:60: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync1 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_buf)) | |
| ^ | |
| spdif_api.c:248:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| printf("msync2 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_bu | |
| ^ | |
| spdif_api.c: In function 'iec958_deinit': | |
| spdif_api.c:295:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | |
| if((unsigned)map_buf != 0xffffffff) | |
| ^ | |
| spdif_api.c: In function 'iec958_packed_frame_write_958buf': | |
| spdif_api.c:224:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf,tail); | |
| ^ | |
| spdif_api.c:235:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf+tail,frame_size-tail); | |
| ^ | |
| spdif_api.c:251:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunus] | |
| write(dev_fd,buf,frame_size); | |
| ^ | |
| pcmenc_api.c: In function 'pcmenc_init': | |
| pcmenc_api.c:44:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion] | |
| map_buf = 0xffffffff; | |
| ^ | |
| dts_transenc_api.c: In function 'dts_transenc_init': | |
| dts_transenc_api.c:52:18: warning: initialization makes integer from pointer without a cast [-Wint-conversion] | |
| int fd_dtsenc = dlopen("libdtsenc.so",RTLD_NOW); | |
| ^ | |
| dts_transenc_api.c:55:34: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Win] | |
| enc_ops.enc_init = dlsym(fd_dtsenc, "init"); | |
| ^ | |
| In file included from dts_transenc_api.c:7:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| dts_transenc_api.c:56:30: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Win] | |
| enc_ops.enc_encode = dlsym(fd_dtsenc, "encode_frame"); | |
| ^ | |
| In file included from dts_transenc_api.c:7:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| dts_transenc_api.c:57:31: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Win] | |
| enc_ops.enc_release = dlsym(fd_dtsenc, "release"); | |
| ^ | |
| In file included from dts_transenc_api.c:7:0: | |
| /usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int' | |
| extern void *dlsym (void *__restrict __handle, | |
| ^ | |
| dts_transenc_api.c:87:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] | |
| close(fd_dtsenc); | |
| ^ | |
| dts_transenc_api.c: In function 'dts_transenc_process_frame': | |
| dts_transenc_api.c:106:22: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] | |
| usleep(1000); | |
| ^ | |
| dts_transenc_api.c:116:69: warning: passing argument 4 of 'enc_ops.enc_encode' makes integer from pointer withou] | |
| rv = enc_ops.enc_encode(dts_transenc_info, stream, output, &output_siz | |
| ^ | |
| dts_transenc_api.c:116:69: note: expected 'unsigned int' but argument is of type 'unsigned int *' | |
| dts_enc.c: In function 'get_dts_mode': | |
| dts_enc.c:39:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declarati] | |
| amsysfs_get_sysfs_str(DIGITAL_RAW_PATH, bcmd, 28); | |
| ^ | |
| dts_enc.c: In function 'get_cpu_type': | |
| dts_enc.c:66:15: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration] | |
| int ret = property_get("ro.board.platform",value,NULL); | |
| ^ | |
| dts_enc.c:68:18: warning: implicit declaration of function 'match_types' [-Wimplicit-function-declaration] | |
| if (ret>0 && match_types("meson6",value)) | |
| ^ | |
| dts_enc.c: In function 'dtsenc_init': | |
| dts_enc.c:103:2: warning: implicit declaration of function 'pthread_setname_np' [-Wimplicit-function-declaration] | |
| pthread_setname_np(tid,"AmadecDtsEncLP"); | |
| ^ | |
| dts_enc.c: In function 'dts_enc_loop': | |
| dts_enc.c:172:5: warning: implicit declaration of function 'iec958buf_fill_zero' [-Wimplicit-function-declaratio] | |
| iec958buf_fill_zero(); | |
| ^ | |
| dts_enc.c:192:12: warning: return makes pointer from integer without a cast [-Wint-conversion] | |
| return -1; | |
| ^ | |
| audio_out/alsactl_parser.c: In function 'strtrimr': | |
| audio_out/alsactl_parser.c:14:12: warning: implicit declaration of function 'isspace' [-Wimplicit-function-decla] | |
| while (isspace(pstr[i]) && (i >= 0)) | |
| ^ | |
| Makefile:30: recipe for target 'libamadec.so' failed | |
| make[1]: *** [libamadec.so] Error 1 | |
| make[1]: Leaving directory '/home/odroid/c2_aml_libs/amadec' | |
| Makefile:2: recipe for target 'all' failed | |
| make: *** [all] Error 2 | |
| odroid@odroid64:~/c2_aml_libs$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment