hal: fix unused param warnings
Fix unused param warnings.
Take care of coding style issues.
Remove unwanted code to set acdb_settings.
Fix compilation issues on 8960 platform.
Change-Id: Ifc72472b487abee83ff85e21fd324cee938973e9
diff --git a/hal/audio_extn/hfp.c b/hal/audio_extn/hfp.c
index 3c25c14..5a68016 100644
--- a/hal/audio_extn/hfp.c
+++ b/hal/audio_extn/hfp.c
@@ -127,7 +127,7 @@
}
static int32_t start_hfp(struct audio_device *adev,
- struct str_parms *parms)
+ struct str_parms *parms __unused)
{
int32_t i, ret = 0;
struct audio_usecase *uc_info;
@@ -311,7 +311,7 @@
ret = str_parms_get_str(parms, AUDIO_PARAMETER_HFP_ENABLE, value,
sizeof(value));
if (ret >= 0) {
- if(!strncmp(value,"true",sizeof(value)))
+ if (!strncmp(value,"true",sizeof(value)))
ret = start_hfp(adev,parms);
else
stop_hfp(adev);
@@ -324,22 +324,20 @@
if (rate == 8000){
hfpmod.ucid = USECASE_AUDIO_HFP_SCO;
pcm_config_hfp.rate = rate;
- }
- else if (rate == 16000){
+ } else if (rate == 16000){
hfpmod.ucid = USECASE_AUDIO_HFP_SCO_WB;
pcm_config_hfp.rate = rate;
- }
- else
+ } else
ALOGE("Unsupported rate..");
}
- if(hfpmod.is_hfp_running) {
+ if (hfpmod.is_hfp_running) {
memset(value, 0, sizeof(value));
ret = str_parms_get_str(parms, AUDIO_PARAMETER_STREAM_ROUTING,
value, sizeof(value));
if (ret >= 0) {
val = atoi(value);
- if(val > 0)
+ if (val > 0)
select_devices(adev, hfpmod.ucid);
}
}