On Mon, 2012-12-10 at 08:30 +0100, Mikel Astiz wrote:
> From: Mikel Astiz <[email protected]>
> 
> Move the connection of sink/source-related hooks to module
> initialization and shutdown, to group all of them together. There is
> no need to connect them every time the card profile is changed.

sink_state_changed_cb and source_state_changed_cb have to be modified a
bit, basically just return without doing anything if USE_SCO_OVER_PCM()
returns false. With the current code this patch can cause an assertion
crash because of this in the beginning of sco_over_pcm_state_update():

    pa_assert(USE_SCO_OVER_PCM(u));

-- 
Tanu

_______________________________________________
pulseaudio-discuss mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to