mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
alsa-mixer: Add DecibelFix section to the profile set config file format.
This commit only implements the parser, the decibel fix data is not yet used for anything.
This commit is contained in:
parent
4cd90d9e32
commit
4842077a1e
4 changed files with 297 additions and 14 deletions
|
|
@ -400,6 +400,14 @@ int pa__init(pa_module *m) {
|
|||
if (reserve)
|
||||
pa_reserve_wrapper_unref(reserve);
|
||||
|
||||
if (!pa_hashmap_isempty(u->profile_set->decibel_fixes))
|
||||
pa_log_warn("Card %s uses decibel fixes (i.e. overrides the decibel information for some alsa volume elements). "
|
||||
"Please note that this feature is meant just as a help for figuring out the correct decibel values. "
|
||||
"Pulseaudio is not the correct place to maintain the decibel mappings! The fixed decibel values "
|
||||
"should be sent to ALSA developers so that they can fix the driver. If it turns out that this feature "
|
||||
"is abused (i.e. fixes are not pushed to ALSA), the decibel fix feature may be removed in some future "
|
||||
"Pulseaudio version.", u->card->name);
|
||||
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue