Ticket #654 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

pa_cvolume_inc allows to set volume over PA_VOLUME_NORM

Reported by: matrix47 Owned by: lennart
Milestone: 0.9.22 Component: libpulse
Keywords: Cc: matrix47@…

Description

this function is used to increase volume from module-lirc and module-mmkbd-evdev
right now volume can be increased up to PA_VOLUME_MAX, which is VERY loud
I think it is more reasonable to limit the volume with PA_VOLUME_NORM (100%)
trivial patch attached

Attachments

diff (405 bytes) - added by matrix47 2 years ago.
patch
0001-volume-add-pa_cvolume_inc_lim-function.patch (2.6 kB) - added by matrix47 2 years ago.
0002-lirc-mmkvd-added-module-parameters-volume_limit-volu.patch (6.1 kB) - added by matrix47 2 years ago.

Change History

Changed 2 years ago by matrix47

  • attachment diff added

patch

Changed 2 years ago by lennart

Hmm, no, I disagree. We explicitly allow volumes > PA_VOLUME_NORM for digital amplification. In fact we have been exposing digital amplification for recording in g-v-c already and I have been recommending for a while to extend the output volume control volume sliders to "150%", too, so that people can make use of this.

So, generally limiting the range to PA_VOLUME_NORM is not really something I'd like to merge. However I would accept a patch that adds module parameters to m-l and m-m-e that allow specification of an upper limit up to which one may increase the volume with these modules. We could even enable that by default and set it to PA_VOLUME_NORM*3/2, or so.

Changed 2 years ago by matrix47

Changed 2 years ago by matrix47

  • cc matrix47@… added

these two patches seem to do the job I've added parameters volume_limit and volume_step to lirc and mmkbd modules the first one sets the limit for maximum volume the module can set, defaults to PA_VOLUME_NORM*3/2 (so, by default volume can be raised up to 150%) the second one sets volume change step, defaults to PA_VOLUME_NORM/20

Changed 2 years ago by lennart

Looks good. Will merge early in the next cycle.

Changed 2 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.9.22
Note: See TracTickets for help on using tickets.