mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
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:
parent
e3b68ee76f
commit
3f6a1c3b4c
4 changed files with 6 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue