OSDN Git Service

audioflinger: Enable TEE_SINK compilation
authorLeena Winterrowd <lenhardw@codeaurora.org>
Wed, 23 Dec 2015 20:22:18 +0000 (12:22 -0800)
committerSteve Kondik <steve@cyngn.com>
Tue, 2 Feb 2016 01:23:51 +0000 (17:23 -0800)
Change CHECK to ALOG_ASSERT to allow compilation of the TEE_SINK
dump feature.

Change-Id: I1114a9d185cfd24cdbdda51c526f48be7fd009f9

services/audioflinger/AudioFlinger.cpp

index fdedabb..23215dd 100644 (file)
@@ -3029,7 +3029,7 @@ void AudioFlinger::dumpTee(int fd, const sp<NBAIO_Source>& source, audio_io_hand
             bool firstRead = true;
 #define TEE_SINK_READ 1024                      // frames per I/O operation
             void *buffer = malloc(TEE_SINK_READ * frameSize);
-            CHECK (buffer != NULL);
+            ALOG_ASSERT(buffer != NULL);
             for (;;) {
                 size_t count = TEE_SINK_READ;
                 ssize_t actual = teeSource->read(buffer, count,