Ticket #788 (new defect)

Opened 2 years ago

Last modified 18 months ago

move-sink-input corrupts volume settings

Reported by: samr7 Owned by: lennart
Milestone: Component: daemon
Keywords: Cc: h.becker@…

Description

There appear to be at least two problems related to how pa_sink_input_move_to() handles sink input volume settings.

First, when a sink input is moved from a non-PA_SINK_FLAT_VOLUME sink to a PA_SINK_FLAT_VOLUME sink, the volume setting is replaced with whatever value was last in the relative_ratio field.

Second, when a sink input is moved to a non-PA_SINK_FLAT_VOLUME sink, the volume setting is not correctly applied to the sink. In this case, list-sink-inputs will report the correct values, but they are clearly different than what is used to generate the output, which seems more like 100%.

This problem can be reproduced by plugging and unplugging a Sound Blaster X-Fi USB adapter, with module-rescue-streams, module-always-sink, and module-default-device-restore loaded. This sound card does not have a hardware mixer, and PA_SINK_FLAT_VOLUME is inhibited.

Attachments

pa_nonflat_vol_restore.patch (1.5 kB) - added by samr7 2 years ago.
Potential fix

Change History

Changed 2 years ago by samr7

Potential fix

Changed 18 months ago by fawkes

  • cc h.becker@… added
Note: See TracTickets for help on using tickets.