Home
last modified time | relevance | path

Searched refs:gain (Results 1 – 25 of 108) sorted by relevance

12345

/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.cpp71 void HidlUtils::audioGainFromHal(const struct audio_gain& halGain, AudioGain* gain) { in audioGainFromHal() argument
72 gain->mode = EnumBitfield<AudioGainMode>(halGain.mode); in audioGainFromHal()
73 gain->channelMask = EnumBitfield<AudioChannelMask>(halGain.channel_mask); in audioGainFromHal()
74 gain->minValue = halGain.min_value; in audioGainFromHal()
75 gain->maxValue = halGain.max_value; in audioGainFromHal()
76 gain->defaultValue = halGain.default_value; in audioGainFromHal()
77 gain->stepValue = halGain.step_value; in audioGainFromHal()
78 gain->minRampMs = halGain.min_ramp_ms; in audioGainFromHal()
79 gain->maxRampMs = halGain.max_ramp_ms; in audioGainFromHal()
82 void HidlUtils::audioGainToHal(const AudioGain& gain, struct audio_gain* halGain) { in audioGainToHal() argument
[all …]
DHidlUtils.h45 static void audioGainFromHal(const struct audio_gain& halGain, AudioGain* gain);
46 static void audioGainToHal(const AudioGain& gain, struct audio_gain* halGain);
/hardware/interfaces/audio/core/all-versions/default/include/core/default/
DUtil.h37 constexpr bool isGainNormalized(float gain) { in isGainNormalized() argument
38 return gain >= 0.0 && gain <= 1.0; in isGainNormalized()
/hardware/interfaces/audio/effect/5.0/
DILoudnessEnhancerEffect.hal24 * Sets target gain expressed in millibels.
29 * Gets target gain expressed in millibels.
DIAutomaticGainControlEffect.hal34 * Sets gain in the compression range in millibels.
39 * Gets gain in the compression range.
DIEqualizerEffect.hal35 * Sets the gain for the given equalizer band.
40 * Gets the gain for the given equalizer band.
/hardware/interfaces/audio/effect/4.0/
DILoudnessEnhancerEffect.hal24 * Sets target gain expressed in millibels.
29 * Gets target gain expressed in millibels.
DIAutomaticGainControlEffect.hal34 * Sets gain in the compression range in millibels.
39 * Gets gain in the compression range.
DIEqualizerEffect.hal35 * Sets the gain for the given equalizer band.
40 * Gets the gain for the given equalizer band.
/hardware/interfaces/audio/effect/6.0/
DILoudnessEnhancerEffect.hal24 * Sets target gain expressed in millibels.
29 * Gets target gain expressed in millibels.
DIAutomaticGainControlEffect.hal34 * Sets gain in the compression range in millibels.
39 * Gets gain in the compression range.
DIEqualizerEffect.hal35 * Sets the gain for the given equalizer band.
40 * Gets the gain for the given equalizer band.
/hardware/interfaces/audio/effect/2.0/
DILoudnessEnhancerEffect.hal24 * Sets target gain expressed in millibels.
29 * Gets target gain expressed in millibels.
DIAutomaticGainControlEffect.hal34 * Sets gain in the compression range in millibels.
39 * Gets gain in the compression range.
DIEqualizerEffect.hal35 * Sets the gain for the given equalizer band.
40 * Gets the gain for the given equalizer band.
/hardware/interfaces/audio/common/6.0/
Dtypes.hal808 * Positive linear gain applied to the track samples. 0 being muted and 1 is no attenuation,
812 float gain;
824 * Positive linear gain applied to the track samples. 0 being muted and 1 is no attenuation,
828 float gain;
852 * Type of gain control exposed by an audio port.
856 JOINT = 0x1, // supports joint channel gain control
857 CHANNELS = 0x2, // supports separate channel gain control
858 RAMP = 0x4 // supports gain ramps
862 * An audio_gain struct is a representation of a gain stage.
863 * A gain stage is always attached to an audio port.
[all …]
/hardware/interfaces/audio/common/5.0/
Dtypes.hal802 * Positive linear gain applied to the track samples. 0 being muted and 1 is no attenuation,
806 float gain;
818 * Positive linear gain applied to the track samples. 0 being muted and 1 is no attenuation,
822 float gain;
846 * Type of gain control exposed by an audio port.
850 JOINT = 0x1, // supports joint channel gain control
851 CHANNELS = 0x2, // supports separate channel gain control
852 RAMP = 0x4 // supports gain ramps
856 * An audio_gain struct is a representation of a gain stage.
857 * A gain stage is always attached to an audio port.
[all …]
/hardware/interfaces/audio/core/all-versions/default/
DStreamIn.cpp332 Return<Result> StreamIn::setGain(float gain) { in setGain() argument
333 if (!isGainNormalized(gain)) { in setGain()
334 ALOGW("Can not set a stream input gain (%f) outside [0,1]", gain); in setGain()
337 return Stream::analyzeStatus("set_gain", mStream->set_gain(mStream, gain)); in setGain()
463 .source = static_cast<audio_source_t>(metadata.source), .gain = metadata.gain}; in updateSinkMetadata()
/hardware/interfaces/audio/common/4.0/
Dtypes.hal717 * Type of gain control exposed by an audio port.
721 JOINT = 0x1, // supports joint channel gain control
722 CHANNELS = 0x2, // supports separate channel gain control
723 RAMP = 0x4 // supports gain ramps
727 * An audio_gain struct is a representation of a gain stage.
728 * A gain stage is always attached to an audio port.
732 bitfield<AudioChannelMask> channelMask; // channels which gain an be controlled
733 int32_t minValue; // minimum gain value in millibels
734 int32_t maxValue; // maximum gain value in millibels
735 int32_t defaultValue; // default gain value in millibels
[all …]
/hardware/interfaces/audio/common/2.0/
Dtypes.hal756 * Type of gain control exposed by an audio port.
760 JOINT = 0x1, // supports joint channel gain control
761 CHANNELS = 0x2, // supports separate channel gain control
762 RAMP = 0x4 // supports gain ramps
766 * An audio_gain struct is a representation of a gain stage.
767 * A gain stage is always attached to an audio port.
771 AudioChannelMask channelMask; // channels which gain an be controlled
772 int32_t minValue; // minimum gain value in millibels
773 int32_t maxValue; // maximum gain value in millibels
774 int32_t defaultValue; // default gain value in millibels
[all …]
/hardware/qcom/audio/hal/audio_extn/
Dutils.c420 int *gain) in audio_extn_utils_send_app_type_gain() argument
433 gain_cfg[2] = gain[0]; in audio_extn_utils_send_app_type_gain()
434 gain_cfg[3] = gain[1]; in audio_extn_utils_send_app_type_gain()
435 ALOGV("%s app_type %d l(%d) r(%d)", __func__, app_type, gain[0], gain[1]); in audio_extn_utils_send_app_type_gain()
/hardware/qcom/audio/legacy/alsa_sound/
DALSAMixer.cpp286 status_t ALSAMixer::setMasterGain(float gain) in setMasterGain() argument
295 long vol = minVol + gain * (maxVol - minVol); in setMasterGain()
328 status_t ALSAMixer::setGain(uint32_t device, float gain) in setGain() argument
340 long vol = minVol + gain * (maxVol - minVol); in setGain()
/hardware/interfaces/audio/4.0/
Dtypes.hal130 * Positive linear gain applied to the track samples. 0 being muted and 1 is no attenuation,
134 float gain;
146 * Positive linear gain applied to the track samples. 0 being muted and 1 is no attenuation,
150 float gain;
184 * Simple processing as constant gain adjustment must be DIRECT.
/hardware/qcom/msm8x26/kernel-headers/sound/
Dlsm_params.h66 __u16 gain; member
/hardware/qcom/msm8x26/original-kernel-headers/sound/
Dlsm_params.h63 __u16 gain; member

12345