← Back to team overview

touch-packages team mailing list archive

[Bug 598308] Re: Volume at login set to Maximum

 

So this is the call trace I'm getting with my device:
1) module specific (droid in my case) -> pa_sink_new
2) pa_sink_new fires up PA_CORE_HOOK_SINK_FIXATE before finishing setting up the sink, giving the original data (pa_sink_new_data) to the callback;
3) module-device-restore gets PA_CORE_HOOK_SINK_FIXATE and calls sink_fixate_hook_callback, updating the real volume for pa_sink_new_data, and setting up save_volume;
4) pa_sink_new then correctly sets reference_volume and real_volume, getting it from pa_sink_new_data (which was used by module-device-restore)
5) pa_sink_new initializes soft_volume with the max value, causing this broken behavior

Code:
src/pulsecore/sink.c:
 169 /* Called from main context */
 170 pa_sink* pa_sink_new(
 171         pa_core *core,
 172         pa_sink_new_data *data,
 173         pa_sink_flags_t flags) {
 174 
...
 285     s->reference_volume = s->real_volume = data->volume;
 286     pa_cvolume_reset(&s->soft_volume, s->sample_spec.channels);
...

At the time you call pactl set-sink-volume (or set the volume via the
indicator), it'll call sink_port_hook_callback that will call
pa_sink_set_volume, which will then set the real_volume and soft_volume
to the same value (as my driver is not providing the set_volume
callback.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pulseaudio in Ubuntu.
https://bugs.launchpad.net/bugs/598308

Title:
  Volume at login set to Maximum

Status in “pulseaudio” package in Ubuntu:
  Confirmed

Bug description:
  Release: Ubuntu 10.04 64-bit Desktop Edition

  What You Expected to Happen: System volume to remain as set before reboot and as shown in volume panel applet
  What Happened Instead: After reboot/shutdown at and after login system volume is set to maximum

  Extended Description:

  Intel HD Audio Chipset using S/PDIF coax out to speakers and system
  audio set to digital output

  After either rebooting or shutting down my system at the next login
  the system volume will be set to maximum. Once the panel loads I can
  click on the system volume applet and if I move the volume slider in
  any direction the volume will immediately be set to the correct level.

  Here is how the process goes:

  1. (logged in system running)slide volume to 75% using system volume applet on panel
  2. reboot
  3. Login,
  4. login soundbite plays at 100% volume
  5. open rhythmbox play audio track system volume at 100%
  6. click on system volume panel applet, do not click slider, slider shows volume set at 75% as before reboot <---- This is the odd part
  7. click on volume slider and adjust in either direction system volume abruptly adjusts to match the volume level indicated by the slider.

  If any more information is needed please let me know. Thank you

  **MORE INFO 6/25/10**

  This also affects the system alert volume in the same fashion as
  above. Adjusting the slider for the alert value via the panel applet
  reset the volume to the correct level.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/598308/+subscriptions