• Home
  • Raw
  • Download

Lines Matching refs:value

70 static int32_t hfp_set_volume(struct audio_device *adev, float value)  in hfp_set_volume()  argument
81 ALOGD("%s: (%f)\n", __func__, value); in hfp_set_volume()
83 if (value < 0.0) { in hfp_set_volume()
84 ALOGW("%s: (%f) Under 0.0, assuming 0.0\n", __func__, value); in hfp_set_volume()
85 value = 0.0; in hfp_set_volume()
87 value = ((value > 15.000000) ? 1.0 : (value / 15)); in hfp_set_volume()
88 ALOGW("%s: Volume brought with in range (%f)\n", __func__, value); in hfp_set_volume()
90 vol = lrint((value * 0x2000) + 0.5); in hfp_set_volume()
91 hfpmod.hfp_volume = value; in hfp_set_volume()
286 char value[32]={0}; in audio_extn_hfp_set_parameters() local
288 ret = str_parms_get_str(parms, AUDIO_PARAMETER_HFP_ENABLE, value, in audio_extn_hfp_set_parameters()
289 sizeof(value)); in audio_extn_hfp_set_parameters()
291 if (!strncmp(value,"true",sizeof(value))) in audio_extn_hfp_set_parameters()
296 memset(value, 0, sizeof(value)); in audio_extn_hfp_set_parameters()
297 ret = str_parms_get_str(parms,AUDIO_PARAMETER_HFP_SET_SAMPLING_RATE, value, in audio_extn_hfp_set_parameters()
298 sizeof(value)); in audio_extn_hfp_set_parameters()
300 rate = atoi(value); in audio_extn_hfp_set_parameters()
312 memset(value, 0, sizeof(value)); in audio_extn_hfp_set_parameters()
314 value, sizeof(value)); in audio_extn_hfp_set_parameters()
316 val = atoi(value); in audio_extn_hfp_set_parameters()
322 memset(value, 0, sizeof(value)); in audio_extn_hfp_set_parameters()
324 value, sizeof(value)); in audio_extn_hfp_set_parameters()
326 if (sscanf(value, "%f", &vol) != 1){ in audio_extn_hfp_set_parameters()