diff options
author | jennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-22 04:35:31 +0000 |
---|---|---|
committer | jennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-22 04:35:31 +0000 |
commit | 22a80ae1d50ada14e6b204978169417d2cebcaea (patch) | |
tree | c06ccf0f08f3a2c481b2c1372ddc2e39dcaa9db9 /chromeos | |
parent | f8f524b8c89ac52b137ce9439fdbfff192dff077 (diff) | |
download | chromium_src-22a80ae1d50ada14e6b204978169417d2cebcaea.zip chromium_src-22a80ae1d50ada14e6b204978169417d2cebcaea.tar.gz chromium_src-22a80ae1d50ada14e6b204978169417d2cebcaea.tar.bz2 |
Change audio input mute changing log to VLOG.
BUG=366026
Review URL: https://codereview.chromium.org/292663005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272099 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos')
-rw-r--r-- | chromeos/audio/cras_audio_handler.cc | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/chromeos/audio/cras_audio_handler.cc b/chromeos/audio/cras_audio_handler.cc index aeda0eb..16805d6 100644 --- a/chromeos/audio/cras_audio_handler.cc +++ b/chromeos/audio/cras_audio_handler.cc @@ -251,11 +251,6 @@ void CrasAudioHandler::SetInputMute(bool mute_on) { if (!SetInputMuteInternal(mute_on)) return; - // Audio input mute state is not saved in prefs, see crbug.com/365050. - LOG(WARNING) << "SetInputMute set active input id=" - << "0x" << std::hex << active_input_node_id_ - << " mute=" << mute_on; - FOR_EACH_OBSERVER(AudioObserver, observers_, OnInputMuteChanged()); } @@ -296,8 +291,8 @@ void CrasAudioHandler::SetMuteForDevice(uint64 device_id, bool mute_on) { SetOutputMute(mute_on); return; } else if (device_id == active_input_node_id_) { - LOG(WARNING) << "SetMuteForDevice sets active input device id=" - << "0x" << std::hex << device_id << " mute=" << mute_on; + VLOG(1) << "SetMuteForDevice sets active input device id=" + << "0x" << std::hex << device_id << " mute=" << mute_on; SetInputMute(mute_on); return; } @@ -426,8 +421,8 @@ void CrasAudioHandler::SetupAudioInputState() { return; } input_gain_ = audio_pref_handler_->GetInputGainValue(device); - LOG(WARNING) << "SetupAudioInputState for active device id=" - << "0x" << std::hex << device->id << " mute=" << input_mute_on_; + VLOG(1) << "SetupAudioInputState for active device id=" + << "0x" << std::hex << device->id << " mute=" << input_mute_on_; SetInputMuteInternal(input_mute_on_); // TODO(rkc,jennyz): Set input gain once we decide on how to store // the gain values since the range and step are both device specific. @@ -469,13 +464,12 @@ void CrasAudioHandler::ApplyAudioPolicy() { input_mute_locked_ = false; if (audio_pref_handler_->GetAudioCaptureAllowedValue()) { - LOG(WARNING) << "Audio input allowed by policy, sets input id=" - << "0x" << std::hex << active_input_node_id_ - << " mute=false"; + VLOG(1) << "Audio input allowed by policy, sets input id=" + << "0x" << std::hex << active_input_node_id_ << " mute=false"; SetInputMuteInternal(false); } else { - LOG(WARNING) << "Audio input NOT allowed by policy, sets input id=" - << "0x" << std::hex << active_input_node_id_ << " mute=true"; + VLOG(0) << "Audio input NOT allowed by policy, sets input id=" + << "0x" << std::hex << active_input_node_id_ << " mute=true"; SetInputMuteInternal(true); input_mute_locked_ = true; } @@ -505,9 +499,8 @@ bool CrasAudioHandler::SetInputMuteInternal(bool mute_on) { if (input_mute_locked_) return false; - LOG(WARNING) << "SetInputMuteInternal sets active input device id=" - << "0x" << std::hex << active_input_node_id_ - << " mute=" << mute_on; + VLOG(1) << "SetInputMuteInternal sets active input device id=" + << "0x" << std::hex << active_input_node_id_ << " mute=" << mute_on; input_mute_on_ = mute_on; chromeos::DBusThreadManager::Get()->GetCrasAudioClient()-> SetInputMute(mute_on); |