staging: speakup_soft: Fix alternate speech with other synths
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 7 Mar 2019 22:06:57 +0000 (23:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:26:25 +0000 (06:26 +0200)
commit86092f2d5ccba5ea3ec98b17225b98dbfce225d6
tree6d08de8b48f7fa0dcfdb35a355339eff4bd14669
parentd0360bf48143539178e0196f8ee1f378e3586136
staging: speakup_soft: Fix alternate speech with other synths

commit 45ac7b31bc6c4af885cc5b5d6c534c15bcbe7643 upstream.

When switching from speakup_soft to another synth, speakup_soft would
keep calling synth_buffer_getc() from softsynthx_read.

Let's thus make synth.c export the knowledge of the current synth, so
that speakup_soft can determine whether it should be running.

speakup_soft also needs to set itself alive, otherwise the switch would
let it remain silent.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/speakup_soft.c
drivers/staging/speakup/spk_priv.h
drivers/staging/speakup/synth.c