aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/buffers.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-05-02 02:56:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-06 19:02:37 -0700
commit2610df41489f548e235171b86895d4b49e6acb1f (patch)
tree8a4d1bd2640299f6260c2ab2feec781882087c11 /drivers/staging/speakup/buffers.c
parentstaging: rtlwifi: Replace license boilerplate with SPDX identifiers (diff)
downloadlinux-dev-2610df41489f548e235171b86895d4b49e6acb1f.tar.xz
linux-dev-2610df41489f548e235171b86895d4b49e6acb1f.zip
staging: speakup: Add pause command used on switching to graphical mode
For software speech syntheses to be able to manage concurrent audio card access, they need to know when speakup stops emitting text to be spoken because the console has switched to graphical mode. This introduces a PAUSE command to do so. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/buffers.c')
-rw-r--r--drivers/staging/speakup/buffers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/speakup/buffers.c b/drivers/staging/speakup/buffers.c
index 461f131644a2..5fa7c2f7ce5d 100644
--- a/drivers/staging/speakup/buffers.c
+++ b/drivers/staging/speakup/buffers.c
@@ -77,6 +77,9 @@ void synth_buffer_add(u16 ch)
*buff_in++ = ch;
if (buff_in > buffer_end)
buff_in = synth_buffer;
+ /* We have written something to the speech synthesis, so we are not
+ * paused any more. */
+ spk_paused = 0;
}
u16 synth_buffer_getc(void)