Repository navigation
Conversation
This adds a small init step that creates /data/daemon.conf.d/ and symlinks it to /etc/pulse/daemon.conf.d. PulseAudio 17 reads daemon.conf.d/*.conf itself (pa_config_parse() with use_dot_d), so no custom parsing or new settings code is needed.
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Author
|
Closing this in favour of #230, which does the same thing with a simpler change (a single .include /data/custom.conf in daemon.conf, matching the existing custom.pa include). I tested the same idea on my hardware (USB DAC at s32le 96000Hz) and it works, so I've left a note there. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a small init step that creates /data/daemon.conf.d/ and symlinks it to /etc/pulse/daemon.conf.d.
PulseAudio 17 reads daemon.conf.d/*.conf itself (pa_config_parse() with use_dot_d), so no custom parsing or new settings code is needed.
Example for a USB DAC that should run at 96 kHz / 32 bit, e.g. as
/data/daemon.conf.d/10-rate.conf:
default-sample-rate = 96000
alternate-sample-rate = 96000
default-sample-format = s32le
Apply with
ha audio restartand check the result withpactl list sinks short. Devices that cannot do the requested rate orformat fall back silently to the nearest supported values.