• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/libaudio


コミットメタ情報

リビジョン5ead7ae2b30990fbcca1672ec7d77c2117720190 (tree)
日時2015-01-20 12:45:11
作者Chih-Wei Huang <cwhuang@linu...>
コミッターChih-Wei Huang

ログメッセージ

improve the log

変更サマリ

差分

--- a/audio_hw.c
+++ b/audio_hw.c
@@ -729,7 +729,7 @@ static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
729729 break;
730730 total_sleep_time_us += sleep_time_us;
731731 if (total_sleep_time_us > MAX_WRITE_SLEEP_US) {
732- ALOGW("out_write() limiting sleep time %d to %d",
732+ ALOGV("out_write() limiting sleep time %d to %d",
733733 total_sleep_time_us, MAX_WRITE_SLEEP_US);
734734 sleep_time_us = MAX_WRITE_SLEEP_US -
735735 (total_sleep_time_us - sleep_time_us);
@@ -769,6 +769,7 @@ static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
769769 if (ret == -EPIPE) {
770770 /* In case of underrun, don't sleep since we want to catch up asap */
771771 pthread_mutex_unlock(&out->lock);
772+ ALOGW("out_write underrun: %d", ret);
772773 return ret;
773774 }
774775
@@ -776,6 +777,7 @@ exit:
776777 pthread_mutex_unlock(&out->lock);
777778
778779 if (ret != 0) {
780+ ALOGW("out_write error: %d, sleeping...", ret);
779781 usleep(bytes * 1000000 / audio_stream_frame_size(&stream->common) /
780782 out_get_sample_rate(&stream->common));
781783 }