Lines Matching refs:volume
155 voice_set_volume(adev, adev->voice.volume);
301 int voice_set_volume(struct audio_device *adev, float volume)
305 adev->voice.volume = volume;
307 if (volume < 0.0) {
308 volume = 0.0;
309 } else if (volume > 1.0) {
310 volume = 1.0;
313 vol = lrint(volume * 100.0);
315 // Voice volume levels from android are mapped to driver volume levels as follows.
317 // So adjust the volume to get the correct volume index in driver
441 adev->voice.volume = 1.0f;