diff --git a/audio/audio_hw.cpp b/audio/audio_hw.cpp old mode 100644 new mode 100755 index b9c14e7..2135f14 --- a/audio/audio_hw.cpp +++ b/audio/audio_hw.cpp @@ -886,6 +886,22 @@ static int adev_set_parameters(struct audio_hw_device *dev, ALOGV("%s, line %d, adev->audioStreamIn == NULL", __FUNCTION__, __LINE__); } } + + /* charmk, for test */ + memset(str, 0x0, 32); + ret = ret = str_parms_get_str(parms, "nugu_amp", &str[0], 32); + { + if (!strcmp(str, "off")) + { + ALOGI("[charmk]===============> NUGU AMP OFF"); + AMP_SND_SetMute(AMP_SND_PATH_71, true); + } + else if (!strcmp(str, "on")) + { + ALOGI("[charmk]===============> NUGU AMP ON"); + AMP_SND_SetMute(AMP_SND_PATH_71, false); + } + } #endif ret = str_parms_get_int(parms, AUDIO_PARAMETER_DEVICE_DISCONNECT, &value);