Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-audio_media: Commit

hardware/intel/audio_media


Commit MetaInfo

Revision37b609ace5e4985f8fba262f74020c45f896ed09 (tree)
Time2016-07-12 23:24:35
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Fix incorrect formatted output conversion

The 64-bit compiler will warn and treat them as errors.

Change Summary

Incremental Difference

--- a/hdmi/tinyaudio_hw.c
+++ b/hdmi/tinyaudio_hw.c
@@ -247,7 +247,7 @@ static int start_output_stream(struct stream_out *out)
247247 out->pcm_config.silence_threshold = 0;
248248
249249 if(activePcm){
250- ALOGV("Closing already open tiny alsa stream running state %d",(int)(activePcm));
250+ ALOGV("Closing already open tiny alsa stream running state %p", activePcm);
251251 pcm_close(activePcm);
252252 activePcm = NULL;
253253 }
@@ -269,7 +269,7 @@ static int start_output_stream(struct stream_out *out)
269269 activePcm = out->pcm;
270270 activeChannel = out->pcm_config.channels;
271271
272- ALOGV("Initialized PCM device for channels %d handle = %d",out->pcm_config.channels, (int)activePcm);
272+ ALOGI("Initialized PCM device for channels %d handle = %p", out->pcm_config.channels, activePcm);
273273 ALOGV("%s exit",__func__);
274274 return 0;
275275 }
@@ -310,7 +310,7 @@ static size_t out_get_buffer_size(const struct audio_stream *stream)
310310 buf_size/=LATENCY_TO_BUFFER_SIZE_RATIO;
311311 }
312312
313- ALOGV("%s : %d, period_size : %d, frame_size : %d",
313+ ALOGV("%s : %zu, period_size : %u, frame_size : %zu",
314314 __func__,
315315 buf_size,
316316 out->pcm_config.period_size,
@@ -569,7 +569,7 @@ static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
569569 int32_t* dstbuff = NULL;
570570 int outbytes = 0;
571571
572- ALOGV("%s enter for bytes = %d channels = %d",__func__,bytes, out->pcm_config.channels);
572+ ALOGV("%s enter for bytes = %zu channels = %u", __func__, bytes, out->pcm_config.channels);
573573
574574 pthread_mutex_lock(&out->dev->lock);
575575 pthread_mutex_lock(&out->lock);
@@ -615,7 +615,7 @@ static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
615615 else
616616 ret = pcm_write(out->pcm, (void *)buffer, bytes);
617617
618- ALOGV("pcm_write: %s done for %d input bytes, output bytes = %d ", pcm_get_error(out->pcm),bytes,outbytes);
618+ ALOGV("pcm_write: %s done for %zu input bytes, output bytes = %d ", pcm_get_error(out->pcm), bytes, outbytes);
619619
620620 free(dstbuff);
621621
@@ -752,7 +752,7 @@ static int adev_open_output_stream(struct audio_hw_device *dev,
752752 pthread_mutex_lock(&out->lock);
753753
754754 if(activePcm){
755- ALOGV("Closing already open tiny alsa stream %d",(int)out->pcm);
755+ ALOGV("Closing already open tiny alsa stream %p", out->pcm);
756756 pcm_close(activePcm);
757757 activePcm = NULL;
758758 }
Show on old repository browser