Home
last modified time | relevance | path

Searched refs:max_dB (Results 1 – 9 of 9) sorted by relevance

/third_party/alsa-lib/include/sound/uapi/
Dtlv.h73 #define SNDRV_CTL_TLVD_DB_MINMAX_ITEM(min_dB, max_dB) \ argument
74 SNDRV_CTL_TLVD_ITEM(SNDRV_CTL_TLVT_DB_MINMAX, (min_dB), (max_dB))
75 #define SNDRV_CTL_TLVD_DB_MINMAX_MUTE_ITEM(min_dB, max_dB) \ argument
76 SNDRV_CTL_TLVD_ITEM(SNDRV_CTL_TLVT_DB_MINMAX_MUTE, (min_dB), (max_dB))
77 #define SNDRV_CTL_TLVD_DECLARE_DB_MINMAX(name, min_dB, max_dB) \ argument
79 SNDRV_CTL_TLVD_DB_MINMAX_ITEM(min_dB, max_dB) \
81 #define SNDRV_CTL_TLVD_DECLARE_DB_MINMAX_MUTE(name, min_dB, max_dB) \ argument
83 SNDRV_CTL_TLVD_DB_MINMAX_MUTE_ITEM(min_dB, max_dB) \
91 #define SNDRV_CTL_TLVD_DB_LINEAR_ITEM(min_dB, max_dB) \ argument
92 SNDRV_CTL_TLVD_ITEM(SNDRV_CTL_TLVT_DB_LINEAR, (min_dB), (max_dB))
[all …]
/third_party/alsa-lib/src/pcm/
Dpcm_softvol.c54 double max_dB; member
699 snd_output_printf(out, "max_dB: %g\n", svol->max_dB); in snd_pcm_softvol_dump()
718 (int)((svol->max_dB - svol->min_dB) * 100 / svol->max_val); in add_tlv_info()
761 int cchannels, double min_dB, double max_dB, in softvol_load_control() argument
790 svol->max_dB = max_dB; in softvol_load_control()
791 if (svol->max_val == 1 || svol->max_dB == ZERO_DB) in softvol_load_control()
793 else if (svol->max_dB < 0) in softvol_load_control()
796 svol->zero_dB_val = (min_dB / (min_dB - max_dB)) * in softvol_load_control()
849 if (min_dB == PRESET_MIN_DB && max_dB == ZERO_DB && in softvol_load_control()
860 svol->max_dB = max_dB; in softvol_load_control()
[all …]
/third_party/alsa-lib/src/conf/cards/
DPC-Speaker.conf22 max_dB 20.0
41 max_dB 20.0
DLoopback.conf57 max_dB 30.0
DHDA-Intel.conf65 max_dB 30.0
/third_party/pulseaudio/src/modules/alsa/
Dalsa-mixer.c1206 if (e->volume_limit >= 0 && value > (e->max_dB * 100)) in element_set_volume()
1207 value = e->max_dB * 100; in element_set_volume()
1644 long min_dB = 0, max_dB = 0; in element_probe_volume() local
1708 max_dB = e->db_fix->db_values[e->db_fix->max_step - e->db_fix->min_step]; in element_probe_volume()
1710 e->has_dB = snd_mixer_selem_get_playback_dB_range(me, &min_dB, &max_dB) >= 0; in element_probe_volume()
1712 e->has_dB = snd_mixer_selem_get_capture_dB_range(me, &min_dB, &max_dB) >= 0; in element_probe_volume()
1715 if (e->has_dB && max_dB < 0 && !e->db_fix) { in element_probe_volume()
1718 "Disabling the decibel range.", buf, min_dB, max_dB); in element_probe_volume()
1740 if (min_dB != min_dB_checked || max_dB != max_dB_checked) { in element_probe_volume()
1744 "%0.2f dB at level %li.", buf, min_dB / 100.0, max_dB / 100.0, in element_probe_volume()
[all …]
Dalsa-mixer.h165 double min_dB, max_dB; member
237 double min_dB, max_dB; member
Dalsa-source.c1553 …"Hardware volume ranges from %0.2f dB to %0.2f dB.", u->mixer_path->min_dB, u->mixer_path->max_dB); in mixer_volume_init()
1555 u->source->base_volume = pa_sw_volume_from_dB(-u->mixer_path->max_dB); in mixer_volume_init()
Dalsa-sink.c1679 …"Hardware volume ranges from %0.2f dB to %0.2f dB.", u->mixer_path->min_dB, u->mixer_path->max_dB); in mixer_volume_init()
1681 u->sink->base_volume = pa_sw_volume_from_dB(-u->mixer_path->max_dB); in mixer_volume_init()