alsa-sink/source, sink, source: Consider sample format for avoid-resampling/passthrough 82/182582/5
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 19 Jun 2018 08:04:23 +0000 (17:04 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 16 Jul 2018 08:07:11 +0000 (17:07 +0900)
commitbc962ba224c1656d3411b96901b533d0bbe3cd80
treece18dc844fde171be9eb1744c5df19fff676f481
parent9495ff9baee46488f41f23666d70caba1126bcc7
alsa-sink/source, sink, source: Consider sample format for avoid-resampling/passthrough

Sample format(e.g. 16 bit, 24 bit) was not considered even if the
avoid-resampling option is set or the passthrough mode is used.
This patch checks both sample format and rate of a stream to
determine whether to avoid resampling in case of the option is set.
In other word, it is possble to use the stream's original sample
format and rate without resampling as long as these are supported
by the device.

pa_sink_input_update_rate() and pa_source_output_update_rate() are
renamed to pa_sink_input_update_resampler() and pa_source_output
_update_resampler() respectively.

[Version] 11.1-43
[Issue Type] New feature

Change-Id: Iff4d5490b5072b7a9d711047c684f437c2db8ce0
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/pulseaudio.spec
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c
src/pulsecore/sink-input.c
src/pulsecore/sink-input.h
src/pulsecore/sink.c
src/pulsecore/source-output.c
src/pulsecore/source-output.h
src/pulsecore/source.c