Lines Matching refs:value
70 static int32_t hfp_set_volume(struct audio_device *adev, float value) in hfp_set_volume() argument
77 ALOGD("%s: (%f)\n", __func__, value); in hfp_set_volume()
79 if (value < 0.0) { in hfp_set_volume()
80 ALOGW("%s: (%f) Under 0.0, assuming 0.0\n", __func__, value); in hfp_set_volume()
81 value = 0.0; in hfp_set_volume()
83 value = ((value > 15.000000) ? 1.0 : (value / 15)); in hfp_set_volume()
84 ALOGW("%s: Volume brought with in range (%f)\n", __func__, value); in hfp_set_volume()
86 vol = lrint((value * 0x2000) + 0.5); in hfp_set_volume()
87 hfpmod.hfp_volume = value; in hfp_set_volume()
270 char value[32]={0}; in audio_extn_hfp_set_parameters() local
272 ret = str_parms_get_str(parms, AUDIO_PARAMETER_HFP_ENABLE, value, in audio_extn_hfp_set_parameters()
273 sizeof(value)); in audio_extn_hfp_set_parameters()
275 if (!strncmp(value,"true",sizeof(value))) in audio_extn_hfp_set_parameters()
280 memset(value, 0, sizeof(value)); in audio_extn_hfp_set_parameters()
281 ret = str_parms_get_str(parms,AUDIO_PARAMETER_HFP_SET_SAMPLING_RATE, value, in audio_extn_hfp_set_parameters()
282 sizeof(value)); in audio_extn_hfp_set_parameters()
284 rate = atoi(value); in audio_extn_hfp_set_parameters()
296 memset(value, 0, sizeof(value)); in audio_extn_hfp_set_parameters()
298 value, sizeof(value)); in audio_extn_hfp_set_parameters()
300 val = atoi(value); in audio_extn_hfp_set_parameters()
306 memset(value, 0, sizeof(value)); in audio_extn_hfp_set_parameters()
308 value, sizeof(value)); in audio_extn_hfp_set_parameters()
310 if (sscanf(value, "%f", &vol) != 1){ in audio_extn_hfp_set_parameters()