Searched defs:volume (Results 1 - 23 of 23) sorted by relevance

/hardware/msm7k/libaudio-qdsp5v2/
H A DAudioPolicyManager.cpp26 // Max volume for streams when playing over bluetooth SCO device while in call: -18dB
28 // Min music volume for 3.5mm jack in car dock: -10dB
238 // force volume on A2DP output to maximum if playing through car dock speakers
239 // as volume is applied on the car dock and controlled via car dock keys.
247 float volume = AudioPolicyManagerBase::computeVolume(stream, index, output, device); local
249 // limit stream volume when in call and playing over bluetooth SCO device to
252 if (volume > IN_CALL_SCO_VOLUME_MAX) {
253 ALOGV("computeVolume limiting SYSTEM volume %f to %f",volume, IN_CALL_SCO_VOLUME_MAX);
254 volume
[all...]
H A Dmsm_audio.h85 uint32_t volume; member in struct:msm_snd_volume_config
/hardware/msm7k/libaudio-qsd8k/
H A DAudioPolicyManager.cpp26 // Max volume for streams when playing over bluetooth SCO device while in call: -18dB
28 // Min music volume for 3.5mm jack in car dock: -10dB
238 // if requested volume index is the minimum possible value, we must honor this value as this
239 // means the stream is muted. This overrides condition-specific modifications to the volume
245 // force volume on A2DP output to maximum if playing through car dock speakers
246 // as volume is applied on the car dock and controlled via car dock keys.
254 float volume = AudioPolicyManagerBase::computeVolume(stream, index, output, device); local
256 // limit stream volume when in call and playing over bluetooth SCO device to
259 if (volume > IN_CALL_SCO_VOLUME_MAX) {
260 ALOGV("computeVolume limiting SYSTEM volume
[all...]
H A Dmsm_audio.h85 uint32_t volume; member in struct:msm_snd_volume_config
H A DAudioHardware.cpp595 static status_t set_volume_rpc(uint32_t volume) argument
603 volume *= 20; //percentage
604 ALOGD("Setting in-call volume to %d\n", volume);
605 if (ioctl(fd, AUDIO_SET_VOLUME, &volume)) {
606 ALOGW("Cannot set volume on current device\n");
626 ALOGD("HAC enable: Setting in-call volume to maximum.\n");
629 ALOGI("voice volume %d (range is 0 to %d)", vol, VOICE_VOLUME_MAX);
638 ALOGI("Set master volume to %f", v);
640 // volume o
[all...]
/hardware/libhardware_legacy/audio/
H A DAudioDumpInterface.h133 virtual status_t setVoiceVolume(float volume) argument
134 {return mFinalInterface->setVoiceVolume(volume);}
135 virtual status_t setMasterVolume(float volume) argument
136 {return mFinalInterface->setMasterVolume(volume);}
H A DAudioHardwareInterface.cpp132 status_t AudioHardwareBase::getMasterVolume(float *volume) argument
H A DAudioHardwareStub.cpp89 status_t AudioHardwareStub::setVoiceVolume(float volume) argument
94 status_t AudioHardwareStub::setMasterVolume(float volume) argument
H A DAudioPolicyCompatClient.cpp122 float volume,
127 volume, output, delayMs);
143 status_t AudioPolicyCompatClient::setVoiceVolume(float volume, int delayMs) argument
145 return mServiceOps->set_voice_volume(mService, volume, delayMs);
120 setStreamVolume( AudioSystem::stream_type stream, float volume, audio_io_handle_t output, int delayMs) argument
H A Daudio_hw_hal.cpp425 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) argument
428 return ladev->hwif->setVoiceVolume(volume);
431 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) argument
434 return ladev->hwif->setMasterVolume(volume);
437 static int adev_get_master_volume(struct audio_hw_device *dev, float* volume) argument
440 return ladev->hwif->getMasterVolume(volume);
H A DAudioPolicyManagerBase.cpp377 // Flag that ringtone volume must be limited to music volume until we exit MODE_RINGTONE
714 // apply volume rules for current stream and device if necessary
993 // Force max volume if stream cannot be muted
1006 // compute and apply stream volume on all outputs according to connected device
1031 // if device is AUDIO_DEVICE_OUT_DEFAULT, return volume for device corresponding to
1683 // set initial stream volume for device
2293 // temporary mute output if device selection changes to avoid volume bursts due to
2336 // FIXME: should not need to double latency if volume could be applied immediately by the
2546 // the volume inde
2700 float volume = 1.0; local
2782 float volume = computeVolume(stream, index, output, device); local
[all...]
/hardware/qcom/audio/alsa_sound/
H A DAudioStreamOutALSA.cpp74 float volume; local
77 volume = (left + right) / 2;
78 if (volume < 0.0) {
79 ALOGW("AudioSessionOutALSA::setVolume(%f) under 0.0, assuming 0.0\n", volume);
80 volume = 0.0;
81 } else if (volume > 1.0) {
82 ALOGW("AudioSessionOutALSA::setVolume(%f) over 1.0, assuming 1.0\n", volume);
83 volume = 1.0;
85 vol = lrint((volume * 0x2000)+0.5);
89 ALOGV("setLpaVolume(%f)\n", volume);
[all...]
H A DALSAMixer.cpp93 long volume; member in struct:android::mixer_info_t
189 // Find PCM playback volume control element.
198 info->volume = info->max;
199 setVol[i] (elem, info->volume);
226 // Find PCM playback volume control element.
235 info->volume = info->max;
236 setVol[i] (elem, info->volume);
267 status_t ALSAMixer::setMasterVolume(float volume) argument
275 // Make sure volume is between bounds.
276 long vol = minVol + volume * (maxVo
[all...]
H A DAudioHardwareALSA.cpp253 // Voice volume levels from android are mapped to driver volume levels as follows.
255 // So adjust the volume to get the correct volume index in driver
289 ALOGV("Setting FM volume to %d (available range is 0 to 0x2000)\n", vol);
297 status_t AudioHardwareALSA::setMasterVolume(float volume) argument
H A Daudio_hw_hal.cpp446 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) argument
449 return qadev->hwif->setVoiceVolume(volume);
452 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) argument
455 return qadev->hwif->setMasterVolume(volume);
458 static int adev_get_master_volume(struct audio_hw_device *dev, float *volume) { argument
461 return qadev->hwif->getMasterVolume(volume);
465 static int adev_set_fm_volume(struct audio_hw_device *dev, float volume) argument
468 return qadev->hwif->setFmVolume(volume);
/hardware/libhardware/modules/usbaudio/
H A Daudio_hw.c324 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) argument
329 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) argument
/hardware/qcom/audio/libalsa-intf/
H A Dalsa_mixer.c404 ALOGV("capability: volume\n");
477 * This is useful for volume controls which take two parameters as input value.
529 int volume = 0; local
538 ALOGV("capability: volume\n");
553 volume = 1;
558 volume = 1;
574 if (!volume)
584 if (!volume)
607 * the value of volume in any one of the following format
608 * <volume><
[all...]
/hardware/libhardware/modules/audio/
H A Daudio_hw.c280 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) argument
285 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) argument
290 static int adev_get_master_volume(struct audio_hw_device *dev, float *volume) argument
/hardware/msm7k/libaudio/
H A DAudioHardware.cpp362 uint32_t volume)
366 ALOGD("rpc_snd_set_volume(%d, %d, %d)\n", device, method, volume);
380 * volume, # integer volume level, in range [0,5].
383 * rpc_snd_set_volume only works for in-call sound volume.
388 args.volume = volume;
411 ALOGI("Setting in-call volume to %d (available range is 0 to 5)\n", vol);
422 ALOGI("Set master volume to %d.\n", vol);
430 // volume o
360 set_volume_rpc(uint32_t device, uint32_t method, uint32_t volume) argument
[all...]
/hardware/libhardware/modules/audio_remote_submix/
H A Daudio_hw.cpp631 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) argument
636 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) argument
641 static int adev_get_master_volume(struct audio_hw_device *dev, float *volume) argument
/hardware/ti/wpan/tools/FM/FmRadioIf/src/java/com/ti/fm/
H A DFmRadio.java807 public boolean rxSetVolume(int volume) { argument
812 return mService.rxSetVolume(volume);
/hardware/ti/wpan/tools/FM/FmRxApp/src/com/ti/fmrxapp/
H A DFmRxApp.java76 After this sFmRadio.rxSetVolume() with default volume will be called.
93 To increase decrease the volume sFmRadio.rxSetVolume() will be called and the callback for
159 // variable to make sure that the next volume change happens after the
160 // current volume request has been completed.
628 * FM main screen. Set the default volume.
741 * volume change will be completed here. So set the state to
742 * idle, so that user can set other volume.
746 * Setting the default band after the volume change when FM app
1330 Log.d(TAG, " Load default band " + sBand + "default volume" + mVolume + "last fre"
1360 Log.d(TAG, " save default band " + sBand + "default volume"
2546 getNewGain(int volume) argument
[all...]
/hardware/ti/wpan/tools/FM/service/src/java/com/ti/server/
H A DStubFmService.java126 * variable to make sure that the next volume change happens after the
127 * current volume request has been completed.
154 * Variable to store the volume , so that when the value is changed intimate
182 * accordingly(band,volume,freq)
1769 public boolean rxSetVolume(int volume) { argument
1770 Log.i(TAG, "StubFmService:rxSetVolume " + volume);
1779 JFmRx.JFmRxVolume lVolume = new JFmRx.JFmRxVolume(volume);
5448 * volume change will be completed here. So set the state to idle, so
5449 * that user can set other volume.
6808 // Convert the stream volume t
[all...]

Completed in 182 milliseconds