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

Commit 172abfe2 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Add log at entry to set() in AudioTrack and AudioRecord"

parents 68d074fe 86f04663
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -133,6 +133,11 @@ status_t AudioRecord::set(
        transfer_type transferType,
        audio_input_flags_t flags)
{
    ALOGV("set(): inputSource %d, sampleRate %u, format %#x, channelMask %#x, frameCount %d, "
          "notificationFrames %d, sessionId %d, transferType %d, flags %#x",
          inputSource, sampleRate, format, channelMask, frameCountInt, notificationFrames,
          sessionId, transferType, flags);

    switch (transferType) {
    case TRANSFER_DEFAULT:
        if (cbf == NULL || threadCanCallJava) {
@@ -163,9 +168,6 @@ status_t AudioRecord::set(
    }
    size_t frameCount = frameCountInt;

    ALOGV("set(): sampleRate %u, channelMask %#x, frameCount %u", sampleRate, channelMask,
            frameCount);

    AutoMutex lock(mLock);

    if (mAudioRecord != 0) {
+5 −0
Original line number Diff line number Diff line
@@ -195,6 +195,11 @@ status_t AudioTrack::set(
        int uid,
        pid_t pid)
{
    ALOGV("set(): streamType %d, sampleRate %u, format %#x, channelMask %#x, frameCount %d, "
          "flags #%x, notificationFrames %d, sessionId %d, transferType %d",
          streamType, sampleRate, format, channelMask, frameCountInt, flags, notificationFrames,
          sessionId, transferType);

    switch (transferType) {
    case TRANSFER_DEFAULT:
        if (sharedBuffer != 0) {