diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-05-02 02:56:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-06 19:02:37 -0700 |
commit | 2610df41489f548e235171b86895d4b49e6acb1f (patch) | |
tree | 8a4d1bd2640299f6260c2ab2feec781882087c11 /drivers/staging/speakup/buffers.c | |
parent | staging: rtlwifi: Replace license boilerplate with SPDX identifiers (diff) | |
download | linux-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.c | 3 |
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) |