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>
Mon, 18 Mar 2019 06:57:58 +0000 (07:57 +0100)
commit45ac7b31bc6c4af885cc5b5d6c534c15bcbe7643
treed8d567f4af5c0caf9be4b7dffda19a7f0db9b014
parent1beea6204e2304dd11600791d8dad8e7350af6ad
staging: speakup_soft: Fix alternate speech with other synths

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