FP2-1121:The music volume gets lower than normal volume after connect with a BT headset.
The music volume is really lower than normally volume.
(the volume is back to normal after click volume -1 via DUT)
Change-Id: I3c98dd6122a8fe620759b36c3f8c79178e79bbe5
diff --git a/audio_a2dp_hw/audio_a2dp_hw.c b/audio_a2dp_hw/audio_a2dp_hw.c
index c8d31a0..ffeeb05 100644
--- a/audio_a2dp_hw/audio_a2dp_hw.c
+++ b/audio_a2dp_hw/audio_a2dp_hw.c
@@ -816,7 +816,8 @@
struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream;
struct str_parms *parms;
char keyval[16];
- int retval = 0;
+ int retval;
+ int status = 0;
INFO("state %d", out->common.state);
@@ -853,7 +854,7 @@
{
if (out->common.state == AUDIO_A2DP_STATE_STARTED)
{
- retval = suspend_audio_datapath(&out->common, false);
+ status = suspend_audio_datapath(&out->common, false);
}
else
{
@@ -861,7 +862,7 @@
/*Btif and A2dp HAL state can be out of sync
*check state of btif and suspend audio.
*Happens when remote initiates start.*/
- retval = suspend_audio_datapath(&out->common, false);
+ status = suspend_audio_datapath(&out->common, false);
else
out->common.state = AUDIO_A2DP_STATE_SUSPENDED;
}
@@ -880,7 +881,7 @@
str_parms_destroy(parms);
- return retval;
+ return status;
}
static char * out_get_parameters(const struct audio_stream *stream, const char *keys)