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

Commit 35cdf35f authored by Ajender Reddy's avatar Ajender Reddy
Browse files

audioflinger: RecordTrack: add debug log

Add a debug log about RecordTrack's silenced status

Test: m

Bug: 375589059

Change-Id: I28e35bbb363cbddbcabae4e4393a13da0b73e781
parent fba7b31f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -73,7 +73,7 @@ public:
    bool isDirect() const final
    bool isDirect() const final
                                { return (mFlags & AUDIO_INPUT_FLAG_DIRECT) != 0; }
                                { return (mFlags & AUDIO_INPUT_FLAG_DIRECT) != 0; }


    void setSilenced(bool silenced) final { if (!isPatchTrack()) mSilenced = silenced; }
    void setSilenced(bool silenced) final;
    bool isSilenced() const final { return mSilenced; }
    bool isSilenced() const final { return mSilenced; }


    status_t getActiveMicrophones(
    status_t getActiveMicrophones(
+8 −0
Original line number Original line Diff line number Diff line
@@ -3136,6 +3136,14 @@ void RecordTrack::copyMetadataTo(MetadataInserter& backInserter) const
    *backInserter++ = metadata;
    *backInserter++ = metadata;
}
}


void RecordTrack::setSilenced(bool silenced) {
    if (!isPatchTrack() && mSilenced != silenced) {
        mSilenced = silenced;
        ALOGD("%s: track with port id: %d, (%s)", __func__, mPortId,
              mSilenced ? "silenced" : "unsilenced");
    }
}

// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
#undef LOG_TAG
#undef LOG_TAG
#define LOG_TAG "AF::PatchRecord"
#define LOG_TAG "AF::PatchRecord"