Skip to content

Commit

Permalink
module-vchan-sink: link up the card properly
Browse files Browse the repository at this point in the history
Now the latency offset in pavucontrol works!
  • Loading branch information
mattmccutchen committed Aug 21, 2020
1 parent fc9e074 commit 391160e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pulse/module-vchan-sink.c
Expand Up @@ -728,6 +728,7 @@ int pa__init(pa_module * m)
pa_sink_new_data_init(&data_sink);
data_sink.driver = __FILE__;
data_sink.module = m;
data_sink.card = u->card;
pa_sink_new_data_set_name(&data_sink,
pa_modargs_get_value(ma,
"sink_name",
Expand Down Expand Up @@ -777,6 +778,7 @@ int pa__init(pa_module * m)
pa_source_new_data_init(&data_source);
data_source.driver = __FILE__;
data_source.module = m;
data_sink.card = u->card;
pa_source_new_data_set_name(&data_source, pa_modargs_get_value(ma, "source_name", DEFAULT_SOURCE_NAME));
pa_proplist_sets(data_source.proplist, PA_PROP_DEVICE_STRING, DEFAULT_SOURCE_NAME);
pa_proplist_sets(data_source.proplist, PA_PROP_DEVICE_DESCRIPTION,
Expand Down Expand Up @@ -819,6 +821,8 @@ int pa__init(pa_module * m)
goto fail;
}

pa_card_choose_initial_profile(u->card);
pa_card_put(u->card);
pa_sink_put(u->sink);
pa_source_put(u->source);

Expand Down

0 comments on commit 391160e

Please sign in to comment.