From 01c26546fa4ca4c89d0ca850e2b50a847c3a70f4 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Mon, 24 Sep 2018 13:51:23 +0530 Subject: [PATCH] sink, source: Add an avoid-processing mode This generalises the avoid-resampling concept (don't resample for any rate above the default/alternate sample rate) to include channel count and sample format as well. The rationale for this is that users who wish to send out their data untouched by processing in PulseAudio can do so. In addition to this, there are opportunities for certain hardware (such as systems with a DSP connected to a codec) to offload processing to the DSP (providing potential cost savings). Finally, this also enables modules that might be able to perform transformations of (ANY -> sink format), and this allows us to implement such transformations. --- man/pulse-daemon.conf.5.xml.in | 10 +++++++++ src/daemon/daemon-conf.c | 3 +++ src/daemon/daemon-conf.h | 1 + src/daemon/daemon.conf.in | 1 + src/daemon/main.c | 1 + src/modules/alsa/alsa-sink.c | 9 ++++++++ src/modules/alsa/alsa-source.c | 9 ++++++++ src/modules/alsa/module-alsa-card.c | 2 ++ src/modules/module-udev-detect.c | 17 ++++++++++++-- src/pulsecore/core.h | 1 + src/pulsecore/sink.c | 35 ++++++++++++++++++++++++----- src/pulsecore/sink.h | 6 ++++- src/pulsecore/source.c | 34 +++++++++++++++++++++++----- src/pulsecore/source.h | 6 ++++- 14 files changed, 121 insertions(+), 14 deletions(-) diff --git a/man/pulse-daemon.conf.5.xml.in b/man/pulse-daemon.conf.5.xml.in index 52223fb8c..b6e2c9c14 100644 --- a/man/pulse-daemon.conf.5.xml.in +++ b/man/pulse-daemon.conf.5.xml.in @@ -132,6 +132,16 @@ License along with PulseAudio; if not, see . rates.

+ +