/third_party/ffmpeg/libavfilter/ |
H A D | af_volume.c | 24 * audio volume filter 58 "volume", ///< last set value 68 { "volume", "set volume adjustment expression", 76 { "once", "eval volume expression once", 0, AV_OPT_TYPE_CONST, {.i64=EVAL_MODE_ONCE}, .flags = A|F, .unit = "eval" }, 77 { "frame", "eval volume expression per-frame", 0, AV_OPT_TYPE_CONST, {.i64=EVAL_MODE_FRAME}, .flags = A|F, .unit = "eval" }, 91 AVFILTER_DEFINE_CLASS(volume); variable 104 "Error when evaluating the volume expression '%s'\n", expr); in set_expr() 168 int nb_samples, int volume) in scale_samples_u8() 172 dst[i] = av_clip_uint8(((((int64_t)src[i] - 128) * volume in scale_samples_u8() 167 scale_samples_u8(uint8_t *dst, const uint8_t *src, int nb_samples, int volume) scale_samples_u8() argument 175 scale_samples_u8_small(uint8_t *dst, const uint8_t *src, int nb_samples, int volume) scale_samples_u8_small() argument 183 scale_samples_s16(uint8_t *dst, const uint8_t *src, int nb_samples, int volume) scale_samples_s16() argument 193 scale_samples_s16_small(uint8_t *dst, const uint8_t *src, int nb_samples, int volume) scale_samples_s16_small() argument 203 scale_samples_s32(uint8_t *dst, const uint8_t *src, int nb_samples, int volume) scale_samples_s32() argument [all...] |
/third_party/rust/crates/libc/ci/ |
H A D | run-docker.sh | 34 kvm="--volume /dev/kvm:/dev/kvm" 46 --volume "$CARGO_HOME":/cargo \ 47 --volume "$(rustc --print sysroot)":/rust:ro \ 48 --volume "$(pwd)":/checkout:ro \ 49 --volume "$(pwd)"/target:/checkout/target \ 64 kvm="--volume /dev/kvm:/dev/kvm" 77 --volume "$CARGO_HOME":/cargo \ 78 --volume "$(rustc --print sysroot)":/rust:ro \ 79 --volume "$(pwd)":/checkout:ro \ 80 --volume " [all...] |
/third_party/pulseaudio/src/pulsecore/ |
H A D | stream-util.c | 31 int pa_stream_get_volume_channel_map(const pa_cvolume *volume, const pa_channel_map *original_map, const pa_format_info *format, in pa_stream_get_volume_channel_map() argument 36 pa_assert(volume); in pa_stream_get_volume_channel_map() 41 if (volume->channels == original_map->channels) { in pa_stream_get_volume_channel_map() 46 if (volume->channels == 1) { in pa_stream_get_volume_channel_map() 51 pa_log_info("Invalid stream parameters: the volume is incompatible with the channel map."); in pa_stream_get_volume_channel_map() 57 if (volume->channels == 1) { in pa_stream_get_volume_channel_map() 62 pa_log_info("Invalid stream parameters: multi-channel volume is set, but channel map is not."); in pa_stream_get_volume_channel_map() 71 if (volume->channels == volume_map_local.channels) { in pa_stream_get_volume_channel_map() 76 if (volume->channels == 1) { in pa_stream_get_volume_channel_map() 81 pa_log_info("Invalid stream parameters: the volume i in pa_stream_get_volume_channel_map() [all...] |
H A D | mix.c | 38 static void calc_linear_integer_volume(int32_t linear[], const pa_cvolume *volume) { in calc_linear_integer_volume() argument 42 pa_assert(volume); in calc_linear_integer_volume() 44 nchannels = volume->channels; in calc_linear_integer_volume() 47 linear[channel] = (int32_t) lrint(pa_sw_volume_to_linear(volume->values[channel]) * 0x10000); in calc_linear_integer_volume() 53 static void calc_linear_float_volume(float linear[], const pa_cvolume *volume) { in calc_linear_float_volume() argument 57 pa_assert(volume); in calc_linear_float_volume() 59 nchannels = volume->channels; in calc_linear_float_volume() 62 linear[channel] = (float) pa_sw_volume_to_linear(volume->values[channel]); in calc_linear_float_volume() 68 static void calc_linear_integer_stream_volumes(pa_mix_info streams[], unsigned nstreams, const pa_cvolume *volume, const pa_sample_spec *spec) { in calc_linear_integer_stream_volumes() argument 74 pa_assert(volume); in calc_linear_integer_stream_volumes() 87 calc_linear_float_stream_volumes(pa_mix_info streams[], unsigned nstreams, const pa_cvolume *volume, const pa_sample_spec *spec) calc_linear_float_stream_volumes() argument 615 pa_mix( pa_mix_info streams[], unsigned nstreams, void *data, size_t length, const pa_sample_spec *spec, const pa_cvolume *volume, bool mute) pa_mix() argument 690 pa_volume_memchunk( pa_memchunk*c, const pa_sample_spec *spec, const pa_cvolume *volume) pa_volume_memchunk() argument [all...] |
H A D | core-scache.c | 46 #include <pulse/volume.h> 136 pa_cvolume_init(&e->volume); in scache_add_item() 176 pa_cvolume_init(&e->volume); in pa_scache_add_item() 181 pa_cvolume_reset(&e->volume, ss->channels); in pa_scache_add_item() 305 int pa_scache_play_item(pa_core *c, const char *name, pa_sink *sink, pa_volume_t volume, pa_proplist *p, uint32_t *sink_input_idx) { in pa_scache_play_item() argument 333 if (pa_cvolume_valid(&e->volume)) in pa_scache_play_item() 334 pa_cvolume_remap(&e->volume, &old_channel_map, &e->channel_map); in pa_scache_play_item() 336 pa_cvolume_reset(&e->volume, e->sample_spec.channels); in pa_scache_play_item() 347 if (e->volume_is_set && PA_VOLUME_IS_VALID(volume)) { in pa_scache_play_item() 348 pa_cvolume_set(&r, e->sample_spec.channels, volume); in pa_scache_play_item() 382 pa_scache_play_item_by_name(pa_core *c, const char *name, const char*sink_name, pa_volume_t volume, pa_proplist *p, uint32_t *sink_input_idx) pa_scache_play_item_by_name() argument [all...] |
H A D | sink-input.c | 54 pa_cvolume volume; member 117 static struct volume_factor_entry *volume_factor_entry_new(const char *key, const pa_cvolume *volume) { in volume_factor_entry_new() argument 121 pa_assert(volume); in volume_factor_entry_new() 126 entry->volume = *volume; in volume_factor_entry_new() 144 pa_sw_cvolume_multiply(v, v, &entry->volume); in volume_factor_from_hashmap() 207 void pa_sink_input_new_data_set_volume(pa_sink_input_new_data *data, const pa_cvolume *volume) { in pa_sink_input_new_data_set_volume() argument 211 if ((data->volume_is_set = !!volume)) in pa_sink_input_new_data_set_volume() 212 data->volume = *volume; in pa_sink_input_new_data_set_volume() 959 pa_sink_input_peek(pa_sink_input *i, size_t slength , pa_memchunk *chunk, pa_cvolume *volume) pa_sink_input_peek() argument 1417 pa_sink_input_set_volume(pa_sink_input *i, const pa_cvolume *volume, bool save, bool absolute) pa_sink_input_set_volume() argument 1571 pa_sink_input_get_volume(pa_sink_input *i, pa_cvolume *volume, bool absolute) pa_sink_input_get_volume() argument 2675 pa_sink_input_set_volume_direct(pa_sink_input *i, const pa_cvolume *volume) pa_sink_input_set_volume_direct() argument [all...] |
H A D | mix.h | 26 #include <pulse/volume.h> 31 pa_cvolume volume; member 49 const pa_cvolume *volume, 60 const pa_cvolume *volume);
|
H A D | source-output.c | 88 void pa_source_output_new_data_set_volume(pa_source_output_new_data *data, const pa_cvolume *volume) { in pa_source_output_new_data_set_volume() argument 92 if ((data->volume_is_set = !!volume)) in pa_source_output_new_data_set_volume() 93 data->volume = *volume; in pa_source_output_new_data_set_volume() 321 /* If volume is set, we need to save the original data->channel_map, in pa_source_output_new() 322 * so that we can remap the volume from the original channel map to the in pa_source_output_new() 325 r = pa_stream_get_volume_channel_map(&data->volume, data->channel_map_is_set ? &data->channel_map : NULL, data->format, &volume_map); in pa_source_output_new() 330 * determine if volume remapping is needed. */ in pa_source_output_new() 341 /* Don't restore (or save) stream volume for passthrough streams and in pa_source_output_new() 345 pa_cvolume_reset(&data->volume, dat in pa_source_output_new() 997 pa_source_output_set_volume(pa_source_output *o, const pa_cvolume *volume, bool save, bool absolute) pa_source_output_set_volume() argument 1097 pa_source_output_get_volume(pa_source_output *o, pa_cvolume *volume, bool absolute) pa_source_output_get_volume() argument 1912 pa_source_output_set_volume_direct(pa_source_output *o, const pa_cvolume *volume) pa_source_output_set_volume_direct() argument [all...] |
H A D | source.c | 114 void pa_source_new_data_set_volume(pa_source_new_data *data, const pa_cvolume *volume) { in pa_source_new_data_set_volume() argument 117 if ((data->volume_is_set = !!volume)) in pa_source_new_data_set_volume() 118 data->volume = *volume; in pa_source_new_data_set_volume() 210 * the source volume is allowed to be set, like there is for source outputs. */ in pa_source_new() 214 pa_cvolume_reset(&data->volume, data->sample_spec.channels); in pa_source_new() 218 pa_return_null_if_fail(pa_cvolume_valid(&data->volume)); in pa_source_new() 219 pa_return_null_if_fail(pa_cvolume_compatible(&data->volume, &data->sample_spec)); in pa_source_new() 278 s->reference_volume = s->real_volume = data->volume; in pa_source_new() 496 /* The source implementor is responsible for setting decibel volume suppor in pa_source_set_set_volume_callback() 1265 pa_cvolume volume; pa_source_enter_passthrough() local 1604 pa_cvolume volume; update_reference_volume() local 1648 pa_source_set_volume( pa_source *s, const pa_cvolume *volume, bool send_msg, bool save) pa_source_set_volume() argument 1754 pa_source_set_soft_volume(pa_source *s, const pa_cvolume *volume) pa_source_set_soft_volume() argument 2989 pa_source_set_reference_volume_direct(pa_source *s, const pa_cvolume *volume) pa_source_set_reference_volume_direct() argument [all...] |
H A D | sink.c | 124 void pa_sink_new_data_set_volume(pa_sink_new_data *data, const pa_cvolume *volume) { in pa_sink_new_data_set_volume() argument 127 if ((data->volume_is_set = !!volume)) in pa_sink_new_data_set_volume() 128 data->volume = *volume; in pa_sink_new_data_set_volume() 224 * the sink volume is allowed to be set, like there is for sink inputs. */ in pa_sink_new() 228 pa_cvolume_reset(&data->volume, data->sample_spec.channels); in pa_sink_new() 232 pa_return_null_if_fail(pa_cvolume_valid(&data->volume)); in pa_sink_new() 233 pa_return_null_if_fail(pa_cvolume_compatible(&data->volume, &data->sample_spec)); in pa_sink_new() 291 s->reference_volume = s->real_volume = data->volume; in pa_sink_new() 548 /* The sink implementor is responsible for setting decibel volume suppor in pa_sink_set_set_volume_callback() 1283 pa_cvolume volume; pa_sink_render() local 1363 pa_cvolume volume; pa_sink_render_into() local 1736 pa_cvolume volume; pa_sink_enter_passthrough() local 2094 pa_cvolume volume; update_reference_volume() local 2138 pa_sink_set_volume( pa_sink *s, const pa_cvolume *volume, bool send_msg, bool save) pa_sink_set_volume() argument 2234 pa_sink_set_soft_volume(pa_sink *s, const pa_cvolume *volume) pa_sink_set_soft_volume() argument 4023 pa_sink_set_reference_volume_direct(pa_sink *s, const pa_cvolume *volume) pa_sink_set_reference_volume_direct() argument [all...] |
/third_party/alsa-utils/amixer/ |
H A D | volume_mapping.c | 22 * to the volume as a human ear would perceive it (i.e., the position is the 26 * information, a linear mapping of the hardware volume register values is used 29 * When setting the volume, 'dir' is the rounding direction: 122 double volume, in set_normalized_volume() 136 value = lrint_dir(volume * (max - min), dir) + min; in set_normalized_volume() 141 value = lrint_dir(volume * (max - min), dir) + min; in set_normalized_volume() 147 volume = volume * (1 - min_norm) + min_norm; in set_normalized_volume() 149 value = lrint_dir(6000.0 * log10(volume), dir) + max; in set_normalized_volume() 167 double volume, in set_normalized_playback_volume() 120 set_normalized_volume(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, double volume, int dir, enum ctl_dir ctl_dir) set_normalized_volume() argument 165 set_normalized_playback_volume(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, double volume, int dir) set_normalized_playback_volume() argument 173 set_normalized_capture_volume(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, double volume, int dir) set_normalized_capture_volume() argument [all...] |
/third_party/alsa-utils/alsamixer/ |
H A D | volume_mapping.c | 22 * to the volume as a human ear would perceive it (i.e., the position is the 26 * information, a linear mapping of the hardware volume register values is used 29 * When setting the volume, 'dir' is the rounding direction: 122 double volume, in set_normalized_volume() 136 value = lrint_dir(volume * (max - min), dir) + min; in set_normalized_volume() 141 value = lrint_dir(volume * (max - min), dir) + min; in set_normalized_volume() 147 volume = volume * (1 - min_norm) + min_norm; in set_normalized_volume() 149 value = lrint_dir(6000.0 * log10(volume), dir) + max; in set_normalized_volume() 167 double volume, in set_normalized_playback_volume() 120 set_normalized_volume(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, double volume, int dir, enum ctl_dir ctl_dir) set_normalized_volume() argument 165 set_normalized_playback_volume(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, double volume, int dir) set_normalized_playback_volume() argument 173 set_normalized_capture_volume(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, double volume, int dir) set_normalized_capture_volume() argument [all...] |
/third_party/pulseaudio/src/modules/oss/ |
H A D | oss-util.c | 259 int pa_oss_get_volume(int fd, unsigned long mixer, const pa_sample_spec *ss, pa_cvolume *volume) { in pa_oss_get_volume() argument 265 pa_assert(volume); in pa_oss_get_volume() 270 pa_cvolume_reset(volume, ss->channels); in pa_oss_get_volume() 272 volume->values[0] = PA_CLAMP_VOLUME(((vol & 0xFF) * PA_VOLUME_NORM) / 100); in pa_oss_get_volume() 274 if (volume->channels >= 2) in pa_oss_get_volume() 275 volume->values[1] = PA_CLAMP_VOLUME((((vol >> 8) & 0xFF) * PA_VOLUME_NORM) / 100); in pa_oss_get_volume() 277 pa_log_debug("Read mixer settings: %s", pa_cvolume_snprint_verbose(cv, sizeof(cv), volume, NULL, false)); in pa_oss_get_volume() 281 int pa_oss_set_volume(int fd, unsigned long mixer, const pa_sample_spec *ss, const pa_cvolume *volume) { in pa_oss_set_volume() argument 286 l = volume->values[0] > PA_VOLUME_NORM ? PA_VOLUME_NORM : volume in pa_oss_set_volume() [all...] |
H A D | oss-util.h | 25 #include <pulse/volume.h> 32 int pa_oss_set_volume(int fd, unsigned long mixer, const pa_sample_spec *ss, const pa_cvolume *volume); 33 int pa_oss_get_volume(int fd, unsigned long mixer, const pa_sample_spec *ss, pa_cvolume *volume);
|
/third_party/pulseaudio/sonic/ |
H A D | main.c | 6 pitch, and scale volume. */ 23 float volume, in runSonic() 36 sonicSetVolume(stream, volume); in runSonic() 67 " -v volume -- Scale volume by a constant factor.\n"); in usage() 80 float volume = 1.0f; in main() local 114 volume = atof(argv[xArg]); in main() 115 printf("Setting volume to %0.2f\n", volume); in main() 134 runSonic(inFile, outFile, speed, pitch, rate, volume, emulateChordPitc in main() 17 runSonic( waveFile inFile, waveFile outFile, float speed, float pitch, float rate, float volume, int emulateChordPitch, int quality, int sampleRate, int numChannels) runSonic() argument [all...] |
H A D | Sonic.java | 23 private float volume; field in Sonic 79 float volume) in scaleSamples() 81 int fixedPointVolume = (int)(volume*4096.0f); in scaleSamples() 166 return volume; in getVolume() 171 float volume) in setVolume() 173 this.volume = volume; in setVolume() 206 volume = 1.0f; in Sonic() 628 // Overlap two sound segments, ramp the volume of one down, while ramping the 653 // Overlap two sound segments, ramp the volume o 75 scaleSamples( short samples[], int position, int numSamples, float volume) scaleSamples() argument 170 setVolume( float volume) setVolume() argument 946 changeFloatSpeed( float samples[], int numSamples, float speed, float pitch, float rate, float volume, boolean useChordPitch, int sampleRate, int numChannels) changeFloatSpeed() argument 972 sonicChangeShortSpeed( short samples[], int numSamples, float speed, float pitch, float rate, float volume, boolean useChordPitch, int sampleRate, int numChannels) sonicChangeShortSpeed() argument [all...] |
/third_party/alsa-lib/src/control/ |
H A D | tlv.c | 123 * \param rangemin the minimum value of the raw volume 124 * \param rangemax the maximum value of the raw volume 193 * \brief Convert the given raw volume value to a dB gain 195 * \param rangemin the minimum value of the raw volume 196 * \param rangemax the maximum value of the raw volume 197 * \param volume the raw volume value to convert 202 long volume, long *db_gain) in snd_tlv_convert_to_dB() 216 if (volume >= rangemin && volume < in snd_tlv_convert_to_dB() 201 snd_tlv_convert_to_dB(unsigned int *tlv, long rangemin, long rangemax, long volume, long *db_gain) snd_tlv_convert_to_dB() argument 476 snd_ctl_convert_to_dB(snd_ctl_t *ctl, const snd_ctl_elem_id_t *id, long volume, long *db_gain) snd_ctl_convert_to_dB() argument [all...] |
/third_party/ffmpeg/libavfilter/x86/ |
H A D | af_volume_init.c | 27 int volume); 30 int volume); 32 int volume); 34 int volume);
|
H A D | af_volume.asm | 2 ;* x86-optimized functions for volume filter 36 ; int volume) 40 cglobal scale_samples_s16, 4,4,4, dst, src, len, volume 47 ; dst[i] = av_clip_int16((src[i] * volume + 128) >> 8); 63 ; int volume) 67 cglobal scale_samples_s32, 4,4,4, dst, src, len, volume 113 cglobal scale_samples_s32, 4,4,8, dst, src, len, volume 120 ; src[i] = av_clipl_int32((src[i] * volume + 128) >> 8);
|
/third_party/pulseaudio/src/modules/dbus/ |
H A D | iface-stream.c | 53 pa_cvolume volume; member 158 static pa_dbus_arg_info volume_updated_args[] = { { "volume", "au", NULL } }; 337 dbus_uint32_t volume[PA_CHANNELS_MAX]; in handle_get_volume() local 347 pa_dbus_send_error(conn, msg, PA_DBUS_ERROR_NO_SUCH_PROPERTY, "%s doesn't have volume.", str); in handle_get_volume() 353 for (i = 0; i < s->volume.channels; ++i) in handle_get_volume() 354 volume[i] = s->volume.values[i]; in handle_get_volume() 356 pa_dbus_send_basic_array_variant_reply(conn, msg, DBUS_TYPE_UINT32, volume, s->volume.channels); in handle_get_volume() 364 dbus_uint32_t *volume in handle_set_volume() local 527 dbus_uint32_t volume[PA_CHANNELS_MAX]; handle_get_all() local 752 dbus_uint32_t volume[PA_CHANNELS_MAX]; volume_changed_cb() local [all...] |
H A D | iface-sample.c | 93 static pa_dbus_arg_info play_args[] = { { "volume", "u", "in" }, { "property_list", "a{say}", "in" } }; 95 { "volume", "u", "in" }, 231 "Sample %s doesn't have default volume stored.", s->sample->name); in handle_get_default_volume() 235 for (i = 0; i < s->sample->volume.channels; ++i) in handle_get_default_volume() 236 default_volume[i] = s->sample->volume.values[i]; in handle_get_default_volume() 238 pa_dbus_send_basic_array_variant_reply(conn, msg, DBUS_TYPE_UINT32, default_volume, s->sample->volume.channels); in handle_get_default_volume() 317 for (i = 0; i < s->sample->volume.channels; ++i) in handle_get_all() 318 default_volume[i] = s->sample->volume.values[i]; in handle_get_all() 336 pa_dbus_append_basic_array_variant_dict_entry(&dict_iter, property_handlers[PROPERTY_HANDLER_DEFAULT_VOLUME].property_name, DBUS_TYPE_UINT32, default_volume, s->sample->volume.channels); in handle_get_all() 353 dbus_uint32_t volume in handle_play() local 399 dbus_uint32_t volume = 0; handle_play_to_sink() local [all...] |
/third_party/pulseaudio/src/pulse/ |
H A D | introspect.h | 31 #include <pulse/volume.h> 146 * modify the volume of the audio. Identically to how sinks and sources can 163 * If an application desires to modify the volume of just a single stream 164 * (commonly one of its own streams), this can be done by setting the volume 174 * It is strongly recommended that all volume changes are done as a direct 177 * volume at an inappropriate moment and restore it later. Besides, such 181 * application leaves the task of saving and restoring the volume of its 184 * plugging that would make the volume stored by the application inapplicable 187 * Another important case where setting a sink input volume may be a bad idea 190 * as repeatedly setting the volume t 274 pa_cvolume volume; /**< Volume of the sink */ global() member 379 pa_cvolume volume; /**< Volume of the source */ global() member 654 pa_cvolume volume; /**< The volume of this sink input. */ global() member 712 pa_cvolume volume; /**< The volume of this source output \\since 1.0 */ global() member 774 pa_cvolume volume; /**< Default volume of this entry */ global() member [all...] |
H A D | scache.c | 168 pa_operation *pa_context_play_sample(pa_context *c, const char *name, const char *dev, pa_volume_t volume, pa_context_success_cb_t cb, void *userdata) { in pa_context_play_sample() argument 190 if (!PA_VOLUME_IS_VALID(volume) && c->version < 15) in pa_context_play_sample() 191 volume = PA_VOLUME_NORM; in pa_context_play_sample() 193 pa_tagstruct_putu32(t, volume); in pa_context_play_sample() 208 pa_operation *pa_context_play_sample_with_proplist(pa_context *c, const char *name, const char *dev, pa_volume_t volume, const pa_proplist *p, pa_context_play_sample_cb_t cb, void *userdata) { in pa_context_play_sample_with_proplist() argument 231 if (!PA_VOLUME_IS_VALID(volume) && c->version < 15) in pa_context_play_sample_with_proplist() 232 volume = PA_VOLUME_NORM; in pa_context_play_sample_with_proplist() 234 pa_tagstruct_putu32(t, volume); in pa_context_play_sample_with_proplist()
|
/third_party/pulseaudio/src/modules/ |
H A D | module-device-restore.c | 34 #include <pulse/volume.h> 56 PA_MODULE_DESCRIPTION("Automatically restore the volume/mute state of devices"); 116 pa_cvolume volume; member 367 pa_tagstruct_put_cvolume(t, &e->volume); in perportentry_write() 416 pa_tagstruct_get_cvolume(t, &e->volume) < 0 || in perportentry_read() 441 if (e->volume_valid && (!pa_cvolume_valid(&e->volume) || !pa_cvolume_compatible_with_channel_map(&e->volume, &e->channel_map))) { in perportentry_read() 488 r->volume = e->volume; in perportentry_copy() 505 t = b->volume; in perportentries_equal() 527 pa_cvolume volume; legacy_entry_read() member 532 pa_cvolume volume; legacy_entry_read() local [all...] |
/third_party/pulseaudio/src/modules/bluetooth/ |
H A D | backend-native.c | 139 pa_volume_t volume = (pa_volume_t) (( in hsp_gain_to_volume() local 145 if (volume > PA_VOLUME_NORM) in hsp_gain_to_volume() 146 volume = PA_VOLUME_NORM; in hsp_gain_to_volume() 148 return volume; in hsp_gain_to_volume() 151 static uint16_t volume_to_hsp_gain(pa_volume_t volume) { in volume_to_hsp_gain() argument 152 uint16_t gain = volume * HSP_MAX_GAIN / PA_VOLUME_NORM; in volume_to_hsp_gain() 586 static pa_volume_t set_sink_volume(pa_bluetooth_transport *t, pa_volume_t volume); 587 static pa_volume_t set_source_volume(pa_bluetooth_transport *t, pa_volume_t volume); 883 static pa_volume_t set_sink_volume(pa_bluetooth_transport *t, pa_volume_t volume) { in set_sink_volume() argument 885 uint16_t gain = volume_to_hsp_gain(volume); in set_sink_volume() 908 set_source_volume(pa_bluetooth_transport *t, pa_volume_t volume) set_source_volume() argument [all...] |