@@ -261,8 +261,7 @@ status_t AudioTrack::set(
261261 frameCount,
262262 flags,
263263 sharedBuffer,
264- output,
265- true );
264+ output);
266265
267266 if (status != NO_ERROR) {
268267 return status;
@@ -741,8 +740,7 @@ status_t AudioTrack::createTrack_l(
741740 int frameCount,
742741 audio_policy_output_flags_t flags,
743742 const sp<IMemory>& sharedBuffer,
744- audio_io_handle_t output,
745- bool enforceFrameCount)
743+ audio_io_handle_t output)
746744{
747745 status_t status;
748746 const sp<IAudioFlinger>& audioFlinger = AudioSystem::get_audio_flinger ();
@@ -789,7 +787,8 @@ status_t AudioTrack::createTrack_l(
789787 mNotificationFramesAct = frameCount/2 ;
790788 }
791789 if (frameCount < minFrameCount) {
792- ALOGW_IF (enforceFrameCount, " Minimum buffer size corrected from %d to %d" ,
790+ // not ALOGW because it happens all the time when playing key clicks over A2DP
791+ ALOGV (" Minimum buffer size corrected from %d to %d" ,
793792 frameCount, minFrameCount);
794793 frameCount = minFrameCount;
795794 }
@@ -1249,8 +1248,7 @@ status_t AudioTrack::restoreTrack_l(audio_track_cblk_t*& cblk, bool fromStart)
12491248 mFrameCount ,
12501249 mFlags ,
12511250 mSharedBuffer ,
1252- getOutput_l (),
1253- false );
1251+ getOutput_l ());
12541252
12551253 if (result == NO_ERROR) {
12561254 uint32_t user = cblk->user ;
0 commit comments