udev-detect, alsa-card: Adopt avoid resampling option from daemon.conf
authorSangchul Lee <sangchul1011@gmail.com>
Thu, 24 May 2018 16:29:53 +0000 (01:29 +0900)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 21 Jun 2018 01:00:25 +0000 (06:30 +0530)
commitef094638f552a9cd8006a3f31da7d2c649104d5f
tree8a44fccbf4ae7aebde602a93bc824bef310d7971
parent3b2a5bdc106fcdca8653a5d36470958d29a542b8
udev-detect, alsa-card: Adopt avoid resampling option from daemon.conf

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@samsung.com>
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c
src/modules/alsa/module-alsa-card.c
src/modules/module-udev-detect.c
src/pulsecore/sink.c
src/pulsecore/sink.h
src/pulsecore/source.c
src/pulsecore/source.h