Revert "audio: Remove unused screen_state parameter"

We want that to avoid an error message in the log, so revert the
revomal.

This reverts commit cdad20da45.

Change-Id: Ic90cd6b02e5b3e8aae73d824153c3084643a8acc
tirimbino
Andreas Schneider 8 years ago committed by Christopher N. Hesse
parent 9c195610df
commit ecd17ce8ba
  1. 8
      audio/audio_hw.c
  2. 1
      audio/audio_hw.h

@ -3874,6 +3874,14 @@ static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs)
adev->voice.bluetooth_nrec = false;
}
ret = str_parms_get_str(parms, "screen_state", value, sizeof(value));
if (ret >= 0) {
if (strcmp(value, AUDIO_PARAMETER_VALUE_ON) == 0)
adev->screen_off = false;
else
adev->screen_off = true;
}
#if SWAP_SPEAKER_ON_SCREEN_ROTATION
ret = str_parms_get_int(parms, "rotation", &val);
if (ret >= 0) {

@ -384,6 +384,7 @@ struct audio_device {
struct stream_in* active_input;
struct stream_out* primary_output;
bool mic_mute;
bool screen_off;
struct voice_data voice;

Loading…
Cancel
Save