pulseaudio/src/modules/alsa
Sangchul Lee 547998db44 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.

functions are added as below.
 pa_sink_set_sample_format(), pa_sink_set_sample_rate(),
 pa_source_set_sample_format(), pa_source_set_sample_rate()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
2018-11-16 08:30:05 +02:00
..
mixer alsa-mixer: swap lineout and headphone priorities 2018-10-28 13:15:53 +02:00
alsa-mixer.c alsa-mixer: make the mono mapping a fallback only 2018-06-21 06:30:25 +05:30
alsa-mixer.h alsa-mixer: autodetect the ELD device 2018-02-13 21:33:52 +02:00
alsa-sink.c alsa-sink/source, sink, source: Consider sample format for avoid-resampling/passthrough 2018-11-16 08:30:05 +02:00
alsa-sink.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
alsa-source.c alsa-sink/source, sink, source: Consider sample format for avoid-resampling/passthrough 2018-11-16 08:30:05 +02:00
alsa-source.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
alsa-ucm.c alsa: Use pa_device_port->impl_free() for freeing port data 2016-06-22 21:04:47 +05:30
alsa-ucm.h alsa: Use pa_device_port->impl_free() for freeing port data 2016-06-22 21:04:47 +05:30
alsa-util.c i18n: Fixed plural forms handling 2018-10-09 11:56:31 +03:00
alsa-util.h alsa-util/sink/source: Add infrastructure for supported sample formats 2018-07-04 12:51:23 +03:00
meson.build meson: Fix all the missing dependencies uncovered by -Wl,--no-undefined 2018-10-04 08:44:18 +05:30
module-alsa-card.c udev-detect, alsa-card: Adopt avoid resampling option from daemon.conf 2018-06-21 06:30:25 +05:30
module-alsa-sink.c build-sys: Stop using symdef headers for modules 2017-12-12 12:58:52 +05:30
module-alsa-source.c build-sys: Stop using symdef headers for modules 2017-12-12 12:58:52 +05:30