Lines Matching refs:volume
129 static int set_voice_volume_l(struct audio_device *adev, float volume);
1067 /* set cached volume */
1386 int volume[2];
1393 const char *mixer_ctl_name = "Compress Playback Volume";
1403 volume[0] = (int)(left * COMPRESS_PLAYBACK_VOLUME_MAX);
1404 volume[1] = (int)(right * COMPRESS_PLAYBACK_VOLUME_MAX);
1405 mixer_ctl_set_array(ctl, volume, sizeof(volume)/sizeof(volume[0]));
2134 static int set_voice_volume_l(struct audio_device *adev, float volume)
2139 if (volume < 0.0) {
2140 volume = 0.0;
2141 } else if (volume > 1.0) {
2142 volume = 1.0;
2145 vol = lrint(volume * 100.0);
2147 // Voice volume levels from android are mapped to driver volume levels as follows.
2149 // So adjust the volume to get the correct volume index in driver
2157 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume)
2162 /* cache volume */
2163 adev->voice_volume = volume;
2169 static int adev_set_master_volume(struct audio_hw_device *dev, float volume)
2175 float *volume)