aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/speakup_dummy.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-10 11:56:27 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-14 12:57:45 +0100
commit65fa72d34360c571b058afeb0e64367d3eaf064b (patch)
tree6630e1337bb45da67d5398f52440c6cf84828fab /drivers/staging/speakup/speakup_dummy.c
parentstaging: comedi: adl_pci6208: remove redundant initialization of 'val' (diff)
downloadlinux-dev-65fa72d34360c571b058afeb0e64367d3eaf064b.tar.xz
linux-dev-65fa72d34360c571b058afeb0e64367d3eaf064b.zip
staging: speakup: Add unicode support to the speakup_dummy driver
This extends spk_io_ops with a synth_out_unicode which takes a u16 character instead of just a byte, and extends spk_ttyio to implement it to emit utf-8. spk_do_catch_up_unicode can then be introduced to benefit from synth_out_unicode, and speakup_dummy made to use spk_do_catch_up_unicode instead of spk_do_catch_up. 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/speakup_dummy.c')
-rw-r--r--drivers/staging/speakup/speakup_dummy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/speakup_dummy.c b/drivers/staging/speakup/speakup_dummy.c
index a30d60450bd5..aa0c900f79f2 100644
--- a/drivers/staging/speakup/speakup_dummy.c
+++ b/drivers/staging/speakup/speakup_dummy.c
@@ -94,7 +94,7 @@ static struct spk_synth synth_dummy = {
.probe = spk_ttyio_synth_probe,
.release = spk_ttyio_release,
.synth_immediate = spk_ttyio_synth_immediate,
- .catch_up = spk_do_catch_up,
+ .catch_up = spk_do_catch_up_unicode,
.flush = spk_synth_flush,
.is_alive = spk_synth_is_alive_restart,
.synth_adjust = NULL,