diff --git a/hal/audio_extn/adsp_hdlr.h b/hal/audio_extn/adsp_hdlr.h index b265e428..1c257fc7 100644 --- a/hal/audio_extn/adsp_hdlr.h +++ b/hal/audio_extn/adsp_hdlr.h @@ -66,7 +66,7 @@ int audio_extn_adsp_hdlr_stream_deregister_event(void *handle, void *param); #define audio_extn_adsp_hdlr_stream_close(handle) (0) #define audio_extn_adsp_hdlr_stream_set_callback(handle, callback, cookie) (0) #define audio_extn_adsp_hdlr_stream_set_param(handle, cmd, param) (0) -#define audio_extn_adsp_hdlr_stream_register_event(stream_data, param, cb) (0) +#define audio_extn_adsp_hdlr_stream_register_event(handle, param, cb, cookie) (0) #define audio_extn_adsp_hdlr_stream_deregister_event(handle, param) (0) #endif diff --git a/hal/audio_extn/ip_hdlr_intf.c b/hal/audio_extn/ip_hdlr_intf.c old mode 100644 new mode 100755 index 1f5103cd..00f2f412 --- a/hal/audio_extn/ip_hdlr_intf.c +++ b/hal/audio_extn/ip_hdlr_intf.c @@ -53,6 +53,9 @@ #include "audio_hw.h" #include "audio_defs.h" #include "platform.h" +#include "audio_extn.h" +#include "platform_api.h" +#include "adsp_hdlr.h" /* These values defined by ADSP */ #define ADSP_DEC_SERVICE_ID 1 @@ -482,7 +485,7 @@ int audio_extn_ip_hdlr_intf_init(void **handle, char *lib_path, void **lib_handl ret = snprintf(mixer_ctl_name, sizeof(mixer_ctl_name), "Playback ION LIB FD %d", pcm_device_id); if (ret < 0) { - ALOGE("%s:[%d] snprintf failed",__func__, ip_hdlr->ref_cnt, ret); + ALOGE("%s:[%d] snprintf failed %d", __func__, ip_hdlr->ref_cnt, ret); goto dlclose; } ALOGV("%s: fd = %d pcm_id = %d", __func__, lib_fd, pcm_device_id); diff --git a/hal/audio_extn/keep_alive.c b/hal/audio_extn/keep_alive.c index dad49461..199eeae8 100644 --- a/hal/audio_extn/keep_alive.c +++ b/hal/audio_extn/keep_alive.c @@ -30,6 +30,7 @@ #define LOG_TAG "keep_alive" /*#define LOG_NDEBUG 0*/ +#include #include #include #include "audio_hw.h" @@ -374,7 +375,7 @@ int audio_extn_keep_alive_set_parameters(struct audio_device *adev __unused, int ret; if (ka.state == STATE_DISABLED) - return; + return 0; ret = str_parms_get_str(parms, AUDIO_PARAMETER_DEVICE_CONNECT, value, sizeof(value)); if (ret >= 0) { diff --git a/hal/audio_extn/qaf.c b/hal/audio_extn/qaf.c index 81c99db4..5aa1504b 100644 --- a/hal/audio_extn/qaf.c +++ b/hal/audio_extn/qaf.c @@ -807,7 +807,7 @@ exit: / audio_stream_out_frame_size(stream) / out->stream.common.get_sample_rate(&out->stream.common)); } - } else if (ret < bytes) { + } else if (ret < (ssize_t)bytes) { //partial buffer copied to the module. DEBUG_MSG_VV("Not enough space available in mm module, post msg to cb thread"); (void)qaf_send_offload_cmd_l(out, OFFLOAD_CMD_WAIT_FOR_BUFFER); @@ -1864,7 +1864,7 @@ static int audio_extn_qaf_session_open(mm_module_type mod_type, struct stream_ou { ALOGV("%s %d", __func__, __LINE__); unsigned char* license_data = NULL; - device_license_config_t lic_config = {0}; + device_license_config_t lic_config = {NULL, 0, 0}; int ret = -ENOSYS; struct qaf_module *qaf_mod = NULL;