diff options
author | Glenn Kasten <gkasten@google.com> | 2015-03-02 15:51:38 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2015-03-03 08:52:56 -0800 |
commit | d702a568cb62e5aebe048147350bb3c76f9386ba (patch) | |
tree | 507e18b27556b74262a527a7378515fbdcf9b573 /services/audioflinger/FastMixerState.cpp | |
parent | fbdb2aceab7317aa44bc8f301a93eb49e17b2bce (diff) | |
download | frameworks_av-d702a568cb62e5aebe048147350bb3c76f9386ba.zip frameworks_av-d702a568cb62e5aebe048147350bb3c76f9386ba.tar.gz frameworks_av-d702a568cb62e5aebe048147350bb3c76f9386ba.tar.bz2 |
Pull out commandToString() from FastMixerDumpState.cpp
to FastThreadState.cpp, FastMixerState.cpp, and FastCaptureState.cpp
Change-Id: I872efb211e8a0335c42906367859d3674340e374
Diffstat (limited to 'services/audioflinger/FastMixerState.cpp')
-rw-r--r-- | services/audioflinger/FastMixerState.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/services/audioflinger/FastMixerState.cpp b/services/audioflinger/FastMixerState.cpp index 3aa8dad..a8c2634 100644 --- a/services/audioflinger/FastMixerState.cpp +++ b/services/audioflinger/FastMixerState.cpp @@ -39,4 +39,19 @@ FastMixerState::~FastMixerState() { } +// static +const char *FastMixerState::commandToString(Command command) +{ + const char *str = FastThreadState::commandToString(command); + if (str != NULL) { + return str; + } + switch (command) { + case FastMixerState::MIX: return "MIX"; + case FastMixerState::WRITE: return "WRITE"; + case FastMixerState::MIX_WRITE: return "MIX_WRITE"; + } + LOG_ALWAYS_FATAL("%s", __func__); +} + } // namespace android |