# Build only when BOARD_USES_ALSA_AUDIO is set
ifeq ($(BOARD_USES_ALSA_AUDIO), true)
-ifeq ($(BOARD_USES_TINY_ALSA_AUDIO), true)
include $(CLEAR_VARS)
-
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_CFLAGS := -D_POSIX_C_SOURCE=200809
LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa
-LOCAL_MODULE := audio.hdmi.$(TARGET_BOARD_PLATFORM)
+LOCAL_MODULE := audio.primary.hdmi
LOCAL_MODULE_TAGS := optional
LOCAL_CFLAGS += -Werror
include $(BUILD_SHARED_LIBRARY)
-endif #BOARD_USES_TINY_ALSA_AUDIO
endif #BOARD_USES_ALSA_AUDIO
out->pcm_config.silence_threshold = 0;
if(activePcm){
- ALOGV("Closing already open tiny alsa stream running state %d",(int)(activePcm));
+ ALOGV("Closing already open tiny alsa stream running state %p", activePcm);
pcm_close(activePcm);
activePcm = NULL;
}
activePcm = out->pcm;
activeChannel = out->pcm_config.channels;
- ALOGV("Initialized PCM device for channels %d handle = %d",out->pcm_config.channels, (int)activePcm);
+ ALOGI("Initialized PCM device for channels %d handle = %p", out->pcm_config.channels, activePcm);
ALOGV("%s exit",__func__);
return 0;
}
buf_size/=LATENCY_TO_BUFFER_SIZE_RATIO;
}
- ALOGV("%s : %d, period_size : %d, frame_size : %d",
+ ALOGV("%s : %zu, period_size : %u, frame_size : %zu",
__func__,
buf_size,
out->pcm_config.period_size,
int32_t* dstbuff = NULL;
int outbytes = 0;
- ALOGV("%s enter for bytes = %d channels = %d",__func__,bytes, out->pcm_config.channels);
+ ALOGV("%s enter for bytes = %zu channels = %u", __func__, bytes, out->pcm_config.channels);
pthread_mutex_lock(&out->dev->lock);
pthread_mutex_lock(&out->lock);
else
ret = pcm_write(out->pcm, (void *)buffer, bytes);
- ALOGV("pcm_write: %s done for %d input bytes, output bytes = %d ", pcm_get_error(out->pcm),bytes,outbytes);
+ ALOGV("pcm_write: %s done for %zu input bytes, output bytes = %d ", pcm_get_error(out->pcm), bytes, outbytes);
free(dstbuff);
pthread_mutex_lock(&out->lock);
if(activePcm){
- ALOGV("Closing already open tiny alsa stream %d",(int)out->pcm);
+ ALOGV("Closing already open tiny alsa stream %p", out->pcm);
pcm_close(activePcm);
activePcm = NULL;
}