Home
last modified time | relevance | path

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

/third_party/pulseaudio/src/modules/
H A Dmodule-waveout.c432 if (s->real_volume.channels > 2) in sink_get_volume_cb()
433 pa_cvolume_set(&s->real_volume, s->real_volume.channels, (left + right)/2); in sink_get_volume_cb()
435 s->real_volume.values[0] = left; in sink_get_volume_cb()
436 if (s->real_volume.channels > 1) in sink_get_volume_cb()
437 s->real_volume.values[1] = right; in sink_get_volume_cb()
450 if (s->real_volume.channels == 2 && caps.dwSupport & WAVECAPS_LRVOLUME) { in sink_set_volume_cb()
451 vol = (s->real_volume.values[0] * WAVEOUT_MAX_VOLUME / PA_VOLUME_NORM) in sink_set_volume_cb()
452 | (s->real_volume.values[1] * WAVEOUT_MAX_VOLUME / PA_VOLUME_NORM) << 16; in sink_set_volume_cb()
454 vol = (pa_cvolume_avg(&(s->real_volume)) * WAVEOUT_MAX_VOLUM in sink_set_volume_cb()
[all...]
H A Dmodule-solaris.c541 info.play.gain = pa_cvolume_max(&s->real_volume) * AUDIO_MAX_GAIN / PA_VOLUME_NORM; in sink_set_volume()
563 pa_cvolume_set(&s->real_volume, s->sample_spec.channels, info.play.gain * PA_VOLUME_NORM / AUDIO_MAX_GAIN); in sink_get_volume()
576 info.play.gain = pa_cvolume_max(&s->real_volume) * AUDIO_MAX_GAIN / PA_VOLUME_NORM; in source_set_volume()
598 pa_cvolume_set(&s->real_volume, s->sample_spec.channels, info.play.gain * PA_VOLUME_NORM / AUDIO_MAX_GAIN); in source_get_volume()
H A Dmodule-virtual-source.c232 pa_source_output_set_volume(u->source_output, &s->real_volume, s->save_volume, true); in source_set_volume_cb()
H A Dmodule-virtual-sink.c194 pa_sink_input_set_volume(u->sink_input, &s->real_volume, s->save_volume, true); in sink_set_volume_cb()
H A Dmodule-tunnel.c1421 pa_cvolume_equal(&volume, &u->sink->real_volume)) in sink_input_info_cb()
2083 pa_tagstruct_put_cvolume(t, &sink->real_volume); in sink_set_volume()
H A Dmodule-virtual-surround-sink.c371 pa_sink_input_set_volume(u->sink_input, &s->real_volume, s->save_volume, true); in sink_set_volume_cb()
H A Dmodule-equalizer-sink.c353 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/
H A 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()
657 * volume they did so in real_volume, because that is the usual 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()
1376 * i->real_ratio := i->volume / s->real_volume in compute_real_ratios()
1380 remapped = s->real_volume; in compute_real_ratios()
[all...]
H A Dsink.c291 s->reference_volume = s->real_volume = data->volume; in pa_sink_new()
354 pa_sw_cvolume_divide(&s->thread_info.current_hw_volume, &s->real_volume, &s->soft_volume); in pa_sink_new()
705 s->real_volume = root_sink->real_volume; in pa_sink_put()
706 pa_cvolume_remap(&s->real_volume, &root_sink->channel_map, &s->channel_map); in pa_sink_put()
709 * volume they did so in real_volume, because that is the usual in pa_sink_put()
711 s->reference_volume = s->real_volume; in pa_sink_put()
715 pa_sw_cvolume_divide(&s->thread_info.current_hw_volume, &s->real_volume, &s->soft_volume); in pa_sink_put()
1866 * i->real_ratio := i->volume / s->real_volume in compute_real_ratios()
1870 remapped = s->real_volume; in compute_real_ratios()
[all...]
H A Dsource-output.c1449 * o->volume := o->source->real_volume in update_volume_due_to_moving()
1490 * o->destination_source->real_volume := root_source->real_volume in update_volume_due_to_moving()
1499 o->destination_source->real_volume = root_source->real_volume; in update_volume_due_to_moving()
1500 pa_cvolume_remap(&o->destination_source->real_volume, &root_source->channel_map, &o->destination_source->channel_map); in update_volume_due_to_moving()
1522 * o->real_ratio := o->volume / o->source->real_volume in update_volume_due_to_moving()
1550 vol = o->destination_source->real_volume; in update_volume_due_to_moving()
H A Dsource.h99 pa_cvolume real_volume; /* The volume that the hardware is configured to */ member
H A Dsink.h98 pa_cvolume real_volume; /* The volume that the hardware is configured to */ member
161 * message handler must update s->real_volume and s->soft_volume
187 * volume according to s->real_volume. If the driver can't set the
189 * s->real_volume and/or s->soft_volume so that they together
196 * s->real_volume and/or s->soft_volume so that they together
H A Dsink-input.c1951 * i->volume := i->sink->real_volume in update_volume_due_to_moving()
1992 * i->origin_sink->real_volume := root_sink->real_volume in update_volume_due_to_moving()
2001 i->origin_sink->real_volume = root_sink->real_volume; in update_volume_due_to_moving()
2002 pa_cvolume_remap(&i->origin_sink->real_volume, &root_sink->channel_map, &i->origin_sink->channel_map); in update_volume_due_to_moving()
2024 * i->real_ratio := i->volume / i->sink->real_volume in update_volume_due_to_moving()
H A Dcli-command.c1955 &s->real_volume, in pa_cli_command_dump_volumes()
2007 &so->real_volume, in pa_cli_command_dump_volumes()
/third_party/pulseaudio/src/modules/oss/
H A Dmodule-oss.c830 if (pa_oss_get_volume(u->mixer_fd, SOUND_MIXER_READ_VOLUME, &s->sample_spec, &s->real_volume) >= 0) in sink_get_volume()
834 if (pa_oss_get_volume(u->mixer_fd, SOUND_MIXER_READ_PCM, &s->sample_spec, &s->real_volume) >= 0) in sink_get_volume()
848 (void) pa_oss_set_volume(u->mixer_fd, SOUND_MIXER_WRITE_VOLUME, &s->sample_spec, &s->real_volume); in sink_set_volume()
851 (void) pa_oss_set_volume(u->mixer_fd, SOUND_MIXER_WRITE_PCM, &s->sample_spec, &s->real_volume); in sink_set_volume()
862 if (pa_oss_get_volume(u->mixer_fd, SOUND_MIXER_READ_IGAIN, &s->sample_spec, &s->real_volume) >= 0) in source_get_volume()
866 if (pa_oss_get_volume(u->mixer_fd, SOUND_MIXER_READ_RECLEV, &s->sample_spec, &s->real_volume) >= 0) in source_get_volume()
870 if (pa_oss_get_volume(u->mixer_fd, SOUND_MIXER_READ_MIC, &s->sample_spec, &s->real_volume) >= 0) in source_get_volume()
884 (void) pa_oss_set_volume(u->mixer_fd, SOUND_MIXER_WRITE_IGAIN, &s->sample_spec, &s->real_volume); in source_set_volume()
887 (void) pa_oss_set_volume(u->mixer_fd, SOUND_MIXER_WRITE_RECLEV, &s->sample_spec, &s->real_volume); in source_set_volume()
890 (void) pa_oss_set_volume(u->mixer_fd, SOUND_MIXER_WRITE_MIC, &s->sample_spec, &s->real_volume); in source_set_volume()
[all...]
/third_party/pulseaudio/src/modules/raop/
H A Draop-sink.c387 v = pa_cvolume_max(&s->real_volume); in sink_set_volume_cb()
398 pa_sw_cvolume_divide(&s->soft_volume, &s->real_volume, &hw); in sink_set_volume_cb()
400 pa_log_debug("Requested volume: %s", pa_cvolume_snprint_verbose(t, sizeof(t), &s->real_volume, &s->channel_map, false)); in sink_set_volume_cb()
/third_party/pulseaudio/src/modules/bluetooth/
H A Dmodule-bluez5-device.c944 volume = u->transport->set_source_volume(u->transport, pa_cvolume_max(&s->real_volume)); in source_set_volume_cb()
946 pa_cvolume_set(&s->real_volume, u->decoder_sample_spec.channels, volume); in source_set_volume_cb()
986 u->transport->set_source_volume(u->transport, pa_cvolume_max(&s->real_volume)); in source_setup_volume_callback()
1181 volume = u->transport->set_sink_volume(u->transport, pa_cvolume_max(&s->real_volume)); in sink_set_volume_cb()
1183 pa_cvolume_set(&s->real_volume, u->encoder_sample_spec.channels, volume); in sink_set_volume_cb()
1228 u->transport->set_sink_volume(u->transport, pa_cvolume_max(&s->real_volume)); in sink_setup_volume_callback()
/third_party/pulseaudio/src/modules/alsa/
H A Dalsa-sink.c1523 s->real_volume = u->hardware_volume = r; in sink_get_volume_cb()
1542 pa_sw_cvolume_divide_scalar(&r, &s->real_volume, s->base_volume); in sink_set_volume_cb()
1564 pa_sw_cvolume_divide(&new_soft_volume, &s->real_volume, &u->hardware_volume); in sink_set_volume_cb()
1574 pa_cvolume_snprint_verbose(volume_buf, sizeof(volume_buf), &s->real_volume, &s->channel_map, true)); in sink_set_volume_cb()
1591 s->real_volume = r; in sink_set_volume_cb()
H A Dalsa-source.c1397 s->real_volume = u->hardware_volume = r; in source_get_volume_cb()
1416 pa_sw_cvolume_divide_scalar(&r, &s->real_volume, s->base_volume); in source_set_volume_cb()
1438 pa_sw_cvolume_divide(&new_soft_volume, &s->real_volume, &u->hardware_volume); in source_set_volume_cb()
1448 pa_cvolume_snprint_verbose(volume_buf, sizeof(volume_buf), &s->real_volume, &s->channel_map, true)); in source_set_volume_cb()
1465 s->real_volume = r; in source_set_volume_cb()
/third_party/pulseaudio/src/modules/echo-cancel/
H A Dmodule-echo-cancel.c610 pa_source_output_set_volume(u->source_output, &s->real_volume, s->save_volume, true); in source_set_volume_cb()
624 pa_sink_input_set_volume(u->sink_input, &s->real_volume, s->save_volume, true); in sink_set_volume_cb()
641 if (pa_cvolume_equal(&s->real_volume, &v)) in source_get_volume_cb()
645 s->real_volume = v; in source_get_volume_cb()

Completed in 59 milliseconds