Home
last modified time | relevance | path

Searched refs:real_volume (Results 1 – 20 of 20) sorted by relevance

/third_party/pulseaudio/src/modules/
Dmodule-waveout.c430 if (s->real_volume.channels > 2) in sink_get_volume_cb()
431 pa_cvolume_set(&s->real_volume, s->real_volume.channels, (left + right)/2); in sink_get_volume_cb()
433 s->real_volume.values[0] = left; in sink_get_volume_cb()
434 if (s->real_volume.channels > 1) in sink_get_volume_cb()
435 s->real_volume.values[1] = right; in sink_get_volume_cb()
448 if (s->real_volume.channels == 2 && caps.dwSupport & WAVECAPS_LRVOLUME) { in sink_set_volume_cb()
449 vol = (s->real_volume.values[0] * WAVEOUT_MAX_VOLUME / PA_VOLUME_NORM) in sink_set_volume_cb()
450 | (s->real_volume.values[1] * WAVEOUT_MAX_VOLUME / PA_VOLUME_NORM) << 16; in sink_set_volume_cb()
452 vol = (pa_cvolume_avg(&(s->real_volume)) * WAVEOUT_MAX_VOLUME / PA_VOLUME_NORM) in sink_set_volume_cb()
453 | (pa_cvolume_avg(&(s->real_volume)) * WAVEOUT_MAX_VOLUME / PA_VOLUME_NORM) << 16; in sink_set_volume_cb()
Dmodule-solaris.c520 info.play.gain = pa_cvolume_max(&s->real_volume) * AUDIO_MAX_GAIN / PA_VOLUME_NORM; in sink_set_volume()
542 …pa_cvolume_set(&s->real_volume, s->sample_spec.channels, info.play.gain * PA_VOLUME_NORM / AUDIO_M… in sink_get_volume()
555 info.play.gain = pa_cvolume_max(&s->real_volume) * AUDIO_MAX_GAIN / PA_VOLUME_NORM; in source_set_volume()
577 …pa_cvolume_set(&s->real_volume, s->sample_spec.channels, info.play.gain * PA_VOLUME_NORM / AUDIO_M… in source_get_volume()
Dmodule-virtual-sink.c191 pa_sink_input_set_volume(u->sink_input, &s->real_volume, s->save_volume, true); in sink_set_volume_cb()
Dmodule-virtual-source.c229 pa_source_output_set_volume(u->source_output, &s->real_volume, s->save_volume, true); in source_set_volume_cb()
Dmodule-virtual-surround-sink.c219 pa_sink_input_set_volume(u->sink_input, &s->real_volume, s->save_volume, true); in sink_set_volume_cb()
Dmodule-tunnel.c1267 pa_cvolume_equal(&volume, &u->sink->real_volume)) in sink_input_info_cb()
1901 pa_tagstruct_put_cvolume(t, &sink->real_volume); in sink_set_volume()
Dmodule-equalizer-sink.c350 pa_sink_input_set_volume(u->sink_input, &s->real_volume, s->save_volume, true); in sink_set_volume_cb()
/third_party/pulseaudio/src/pulsecore/
Dsource.c278 s->reference_volume = s->real_volume = data->volume; in pa_source_new()
337 pa_sw_cvolume_divide(&s->thread_info.current_hw_volume, &s->real_volume, &s->soft_volume); in pa_source_new()
653 s->real_volume = root_source->real_volume; in pa_source_put()
654 pa_cvolume_remap(&s->real_volume, &root_source->channel_map, &s->channel_map); in pa_source_put()
659 s->reference_volume = s->real_volume; in pa_source_put()
663 pa_sw_cvolume_divide(&s->thread_info.current_hw_volume, &s->real_volume, &s->soft_volume); in pa_source_put()
1380 remapped = s->real_volume; in compute_real_ratios()
1509 s->real_volume = *new_volume; in update_real_volume()
1510 pa_cvolume_remap(&s->real_volume, channel_map, &s->channel_map); in update_real_volume()
1549 pa_cvolume_mute(&s->real_volume, s->channel_map.channels); in compute_real_volume()
[all …]
Dsink.c290 s->reference_volume = s->real_volume = data->volume; in pa_sink_new()
352 pa_sw_cvolume_divide(&s->thread_info.current_hw_volume, &s->real_volume, &s->soft_volume); in pa_sink_new()
703 s->real_volume = root_sink->real_volume; in pa_sink_put()
704 pa_cvolume_remap(&s->real_volume, &root_sink->channel_map, &s->channel_map); in pa_sink_put()
709 s->reference_volume = s->real_volume; in pa_sink_put()
713 pa_sw_cvolume_divide(&s->thread_info.current_hw_volume, &s->real_volume, &s->soft_volume); in pa_sink_put()
1817 remapped = s->real_volume; in compute_real_ratios()
1946 s->real_volume = *new_volume; in update_real_volume()
1947 pa_cvolume_remap(&s->real_volume, channel_map, &s->channel_map); in update_real_volume()
1986 pa_cvolume_mute(&s->real_volume, s->channel_map.channels); in compute_real_volume()
[all …]
Dsource.h99 pa_cvolume real_volume; /* The volume that the hardware is configured to */ member
Dsink.h98 pa_cvolume real_volume; /* The volume that the hardware is configured to */ member
Dsource-output.c1470 o->destination_source->real_volume = root_source->real_volume; in update_volume_due_to_moving()
1471 …pa_cvolume_remap(&o->destination_source->real_volume, &root_source->channel_map, &o->destination_s… in update_volume_due_to_moving()
Dsink-input.c1837 i->origin_sink->real_volume = root_sink->real_volume; in update_volume_due_to_moving()
1838 …pa_cvolume_remap(&i->origin_sink->real_volume, &root_sink->channel_map, &i->origin_sink->channel_m… in update_volume_due_to_moving()
Dcli-command.c1909 &s->real_volume, in pa_cli_command_dump_volumes()
1961 &so->real_volume, in pa_cli_command_dump_volumes()
/third_party/pulseaudio/src/modules/oss/
Dmodule-oss.c828 …if (pa_oss_get_volume(u->mixer_fd, SOUND_MIXER_READ_VOLUME, &s->sample_spec, &s->real_volume) >= 0) in sink_get_volume()
832 … if (pa_oss_get_volume(u->mixer_fd, SOUND_MIXER_READ_PCM, &s->sample_spec, &s->real_volume) >= 0) in sink_get_volume()
846 …f (pa_oss_set_volume(u->mixer_fd, SOUND_MIXER_WRITE_VOLUME, &s->sample_spec, &s->real_volume) >= 0) in sink_set_volume()
850 … if (pa_oss_get_volume(u->mixer_fd, SOUND_MIXER_WRITE_PCM, &s->sample_spec, &s->real_volume) >= 0) in sink_set_volume()
864 … if (pa_oss_get_volume(u->mixer_fd, SOUND_MIXER_READ_IGAIN, &s->sample_spec, &s->real_volume) >= 0) in source_get_volume()
868 …if (pa_oss_get_volume(u->mixer_fd, SOUND_MIXER_READ_RECLEV, &s->sample_spec, &s->real_volume) >= 0) in source_get_volume()
882 …if (pa_oss_set_volume(u->mixer_fd, SOUND_MIXER_WRITE_IGAIN, &s->sample_spec, &s->real_volume) >= 0) in source_set_volume()
886 …f (pa_oss_get_volume(u->mixer_fd, SOUND_MIXER_WRITE_RECLEV, &s->sample_spec, &s->real_volume) >= 0) in source_set_volume()
/third_party/pulseaudio/src/modules/raop/
Draop-sink.c364 v = pa_cvolume_max(&s->real_volume); in sink_set_volume_cb()
375 pa_sw_cvolume_divide(&s->soft_volume, &s->real_volume, &hw); in sink_set_volume_cb()
377 …pa_log_debug("Requested volume: %s", pa_cvolume_snprint_verbose(t, sizeof(t), &s->real_volume, &s-… in sink_set_volume_cb()
/third_party/pulseaudio/src/modules/alsa/
Dalsa-source.c1356 s->real_volume = u->hardware_volume = r; in source_get_volume_cb()
1374 pa_sw_cvolume_divide_scalar(&r, &s->real_volume, s->base_volume); in source_set_volume_cb()
1389 pa_sw_cvolume_divide(&new_soft_volume, &s->real_volume, &u->hardware_volume); in source_set_volume_cb()
1399 …pa_cvolume_snprint_verbose(volume_buf, sizeof(volume_buf), &s->real_volume, &s->channel_map, true)… in source_set_volume_cb()
1416 s->real_volume = r; in source_set_volume_cb()
Dalsa-sink.c1485 s->real_volume = u->hardware_volume = r; in sink_get_volume_cb()
1503 pa_sw_cvolume_divide_scalar(&r, &s->real_volume, s->base_volume); in sink_set_volume_cb()
1518 pa_sw_cvolume_divide(&new_soft_volume, &s->real_volume, &u->hardware_volume); in sink_set_volume_cb()
1528 …pa_cvolume_snprint_verbose(volume_buf, sizeof(volume_buf), &s->real_volume, &s->channel_map, true)… in sink_set_volume_cb()
1545 s->real_volume = r; in sink_set_volume_cb()
/third_party/pulseaudio/src/modules/bluetooth/
Dmodule-bluez5-device.c973 gain = (pa_cvolume_max(&s->real_volume) * HSP_MAX_GAIN) / PA_VOLUME_NORM; in source_set_volume_cb()
984 pa_cvolume_set(&s->real_volume, u->decoder_sample_spec.channels, volume); in source_set_volume_cb()
1157 gain = (pa_cvolume_max(&s->real_volume) * HSP_MAX_GAIN) / PA_VOLUME_NORM; in sink_set_volume_cb()
1168 pa_cvolume_set(&s->real_volume, u->encoder_sample_spec.channels, volume); in sink_set_volume_cb()
/third_party/pulseaudio/src/modules/echo-cancel/
Dmodule-echo-cancel.c604 pa_source_output_set_volume(u->source_output, &s->real_volume, s->save_volume, true); in source_set_volume_cb()
618 pa_sink_input_set_volume(u->sink_input, &s->real_volume, s->save_volume, true); in sink_set_volume_cb()
635 if (pa_cvolume_equal(&s->real_volume, &v)) in source_get_volume_cb()
639 s->real_volume = v; in source_get_volume_cb()