[pulseaudio-discuss] [PATCH v2] udev-detect, alsa-card: Adopt avoid resampling option from daemon.conf
Tanu Kaskinen
tanuk at iki.fi
Thu May 31 13:25:29 UTC 2018
On Fri, 2018-05-25 at 01:29 +0900, Sangchul Lee wrote:
> Previously, the "avoid-resampling" option of daemon.conf is to make the
> daemon try to use the stream sample rate if possible for all sinks or
> sources.
>
> This patch applies this option to module-udev-detect and module-alsa-card
> as a module argument in order to override the default value of daemon.conf.
>
> As a result, user can use this argument for more fine-grained control.
> e.g.) set it false in daemon.conf and set it true for module-udev-detect
> or a particular module-alsa-card in default.pa.(or vice versa)
>
> To set it, use "avoid_resampling=true or false" as the module argument.
>
> Signed-off-by: Sangchul Lee <sc11.lee at samsung.com>
> ---
> the previous [PATCH 2/2] of v1 - alsa-mixer/sink/source: Apply avoid resampling option to alsa mapping
> is abandoned.
>
> src/modules/alsa/alsa-sink.c | 19 ++++++++++++++++++-
> src/modules/alsa/alsa-source.c | 18 +++++++++++++++++-
> src/modules/alsa/module-alsa-card.c | 2 ++
> src/modules/module-udev-detect.c | 17 +++++++++++++++--
> src/pulsecore/sink.c | 6 ++++--
> src/pulsecore/sink.h | 2 ++
> src/pulsecore/source.c | 6 ++++--
> src/pulsecore/source.h | 2 ++
> 8 files changed, 64 insertions(+), 8 deletions(-)
Thanks! Applied to the "next" branch.
--
Tanu
https://liberapay.com/tanuk
https://www.patreon.com/tanuk
More information about the pulseaudio-discuss
mailing list