audio: Fix compilation errors for LATV
- Fix build errors during LATV porting to 4.0 component. Change-Id: I752785745592657d59cdedddd470ec11c342ee86
This commit is contained in:
parent
f61100e75e
commit
3d387e78ac
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#define LOG_TAG "keep_alive"
|
||||
/*#define LOG_NDEBUG 0*/
|
||||
|
||||
#include <cutils/properties.h>
|
||||
#include <stdlib.h>
|
||||
#include <cutils/log.h>
|
||||
#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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue