alsa-sink/source: always set reconfiguration callback

Reconfiguration callback should also be set in case of avoiding resampling
option. This patch set the callback for every case because the callback
has already conditions to leave if it is not needed.
Also unnecessary codes of setting alternate sample rate to 0 are removed.

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
This commit is contained in:
Sangchul Lee 2018-04-28 01:07:26 +09:00 committed by Tanu Kaskinen
parent e3b68ee76f
commit 3f6a1c3b4c
4 changed files with 6 additions and 18 deletions

View file

@ -2434,8 +2434,7 @@ pa_sink *pa_alsa_sink_new(pa_module *m, pa_modargs *ma, const char*driver, pa_ca
u->sink->set_port = sink_set_port_ucm_cb;
else
u->sink->set_port = sink_set_port_cb;
if (u->sink->alternate_sample_rate)
u->sink->reconfigure = sink_reconfigure_cb;
u->sink->reconfigure = sink_reconfigure_cb;
u->sink->userdata = u;
pa_sink_set_asyncmsgq(u->sink, u->thread_mq.inq);