]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: speakup: add send_xchar and tiocmset methods
authorOkash Khawaja <okash.khawaja@gmail.com>
Sat, 22 Apr 2017 08:00:28 +0000 (09:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Apr 2017 18:45:12 +0000 (20:45 +0200)
commitbe223d577578c38c09f5dc9dd1fda8b5f0c91320
tree31ecd431638c8471d2995a43f5702b1b181b458f
parenta455178e59f2b3591840cc543cf637424bd572d7
staging: speakup: add send_xchar and tiocmset methods

This adds two methods to spk_synth struct: send_xchar and tiocmset, and
creates serial implementation for each of them. It takes existing code
in apollo, audptr and spkout which already fits the behaviour of
send_xchar and tiocmset. In follow-up patches there will be TTY-based
implementations of these methods. Then migrating the synths to TTY will
include repointing these methods to their TTY implementations

Rest of the changes simply make use of serial implementation of these two
functions.

Signed-off-by: Okash Khawaja <okash.khawaja@gmail.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/serialio.c
drivers/staging/speakup/speakup_apollo.c
drivers/staging/speakup/speakup_audptr.c
drivers/staging/speakup/speakup_spkout.c
drivers/staging/speakup/spk_types.h