Merge "audio: fix set_parameters return code"
diff --git a/audio/hal/audio_hw.c b/audio/hal/audio_hw.c
index f4427b1..21f68a7 100644
--- a/audio/hal/audio_hw.c
+++ b/audio/hal/audio_hw.c
@@ -2812,6 +2812,9 @@
}
str_parms_destroy(parms);
+
+ if (ret > 0)
+ ret = 0;
ALOGV("%s: exit: code(%d)", __func__, ret);
return ret;
}
@@ -3574,6 +3577,10 @@
pthread_mutex_unlock(&in->lock);
pthread_mutex_unlock(&adev->lock_inputs);
str_parms_destroy(parms);
+
+ if (ret > 0)
+ ret = 0;
+
ALOGV("%s: exit: status(%d)", __func__, ret);
return ret;
}
@@ -4068,6 +4075,10 @@
}
str_parms_destroy(parms);
+
+ if (ret > 0)
+ ret = 0;
+
ALOGV("%s: exit with code(%d)", __func__, ret);
return ret;
}