Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 2e4cb23d authored by Steve Kondik's avatar Steve Kondik Committed by Michael Bestas
Browse files

hal: Shush some debug logging

hal: Shush some logspam
 * No need to spam the logs every time the offload buffer fills up,
   this is just business as usual.

Change-Id: Ib4543b0db5510af771f02190d36dbad505416225
parent 3c9aa566
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -1375,18 +1375,18 @@ static void *offload_thread_loop(void *context)
        send_callback = false;
        switch(cmd->cmd) {
        case OFFLOAD_CMD_WAIT_FOR_BUFFER:
            ALOGD("copl(%p):calling compress_wait", out);
            ALOGV("copl(%p):calling compress_wait", out);
            compress_wait(out->compr, -1);
            ALOGD("copl(%p):out of compress_wait", out);
            ALOGV("copl(%p):out of compress_wait", out);
            send_callback = true;
            event = STREAM_CBK_EVENT_WRITE_READY;
            break;
        case OFFLOAD_CMD_PARTIAL_DRAIN:
            ret = compress_next_track(out->compr);
            if(ret == 0) {
                ALOGD("copl(%p):calling compress_partial_drain", out);
                ALOGV("copl(%p):calling compress_partial_drain", out);
                ret = compress_partial_drain(out->compr);
                ALOGD("copl(%p):out of compress_partial_drain", out);
                ALOGV("copl(%p):out of compress_partial_drain", out);
                if (ret < 0)
                    ret = -errno;
            }
@@ -1403,9 +1403,9 @@ static void *offload_thread_loop(void *context)
                ALOGE("%s: Block drain ready event during SSR", __func__);
            break;
        case OFFLOAD_CMD_DRAIN:
            ALOGD("copl(%p):calling compress_drain", out);
            ALOGV("copl(%p):calling compress_drain", out);
            compress_drain(out->compr);
            ALOGD("copl(%p):calling compress_drain", out);
            ALOGV("copl(%p):calling compress_drain", out);
            send_callback = true;
            event = STREAM_CBK_EVENT_DRAIN_READY;
            break;
@@ -2183,7 +2183,7 @@ static ssize_t out_write(struct audio_stream_out *stream, const void *buffer,
            ret = -errno;
        ALOGVV("%s: writing buffer (%zd bytes) to compress device returned %zd", __func__, bytes, ret);
        if (ret >= 0 && ret < (ssize_t)bytes) {
            ALOGD("No space available in compress driver, post msg to cb thread");
            ALOGV("No space available in compress driver, post msg to cb thread");
            send_offload_cmd_l(out, OFFLOAD_CMD_WAIT_FOR_BUFFER);
        } else if (-ENETRESET == ret) {
            ALOGE("copl %s: received sound card offline state on compress write", __func__);