162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * originally written by: Kirk Reiser <kirk@braille.uwo.ca> 462306a36Sopenharmony_ci * this version considerably modified by David Borowski, david575@rogers.com 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Copyright (C) 1998-99 Kirk Reiser. 762306a36Sopenharmony_ci * Copyright (C) 2003 David Borowski. 862306a36Sopenharmony_ci * 962306a36Sopenharmony_ci * specifically written as a driver for the speakup screenreview 1062306a36Sopenharmony_ci * s not a general device driver. 1162306a36Sopenharmony_ci */ 1262306a36Sopenharmony_ci#include <linux/unistd.h> 1362306a36Sopenharmony_ci#include <linux/proc_fs.h> 1462306a36Sopenharmony_ci#include <linux/jiffies.h> 1562306a36Sopenharmony_ci#include <linux/spinlock.h> 1662306a36Sopenharmony_ci#include <linux/sched.h> 1762306a36Sopenharmony_ci#include <linux/timer.h> 1862306a36Sopenharmony_ci#include <linux/kthread.h> 1962306a36Sopenharmony_ci#include "speakup.h" 2062306a36Sopenharmony_ci#include "spk_priv.h" 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#define DRV_VERSION "2.20" 2362306a36Sopenharmony_ci#define SYNTH_CLEAR 0x03 2462306a36Sopenharmony_ci#define PROCSPEECH 0x0b 2562306a36Sopenharmony_cistatic int xoff; 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_cistatic inline int synth_full(void) 2862306a36Sopenharmony_ci{ 2962306a36Sopenharmony_ci return xoff; 3062306a36Sopenharmony_ci} 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_cistatic void do_catch_up(struct spk_synth *synth); 3362306a36Sopenharmony_cistatic void synth_flush(struct spk_synth *synth); 3462306a36Sopenharmony_cistatic void read_buff_add(u_char c); 3562306a36Sopenharmony_cistatic unsigned char get_index(struct spk_synth *synth); 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_cistatic int in_escape; 3862306a36Sopenharmony_cistatic int is_flushing; 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_cistatic DEFINE_SPINLOCK(flush_lock); 4162306a36Sopenharmony_cistatic DECLARE_WAIT_QUEUE_HEAD(flush); 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_cienum default_vars_id { 4462306a36Sopenharmony_ci CAPS_START_ID = 0, CAPS_STOP_ID, 4562306a36Sopenharmony_ci RATE_ID, PITCH_ID, INFLECTION_ID, 4662306a36Sopenharmony_ci VOL_ID, PUNCT_ID, VOICE_ID, 4762306a36Sopenharmony_ci DIRECT_ID, V_LAST_VAR_ID, 4862306a36Sopenharmony_ci NB_ID, 4962306a36Sopenharmony_ci}; 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_cistatic struct var_t vars[NB_ID] = { 5262306a36Sopenharmony_ci [CAPS_START_ID] = { CAPS_START, .u.s = {"[:dv ap 160] " } }, 5362306a36Sopenharmony_ci [CAPS_STOP_ID] = { CAPS_STOP, .u.s = {"[:dv ap 100 ] " } }, 5462306a36Sopenharmony_ci [RATE_ID] = { RATE, .u.n = {"[:ra %d] ", 180, 75, 650, 0, 0, NULL } }, 5562306a36Sopenharmony_ci [PITCH_ID] = { PITCH, .u.n = {"[:dv ap %d] ", 122, 50, 350, 0, 0, NULL } }, 5662306a36Sopenharmony_ci [INFLECTION_ID] = { INFLECTION, .u.n = {"[:dv pr %d] ", 100, 0, 10000, 0, 0, NULL } }, 5762306a36Sopenharmony_ci [VOL_ID] = { VOL, .u.n = {"[:dv g5 %d] ", 86, 60, 86, 0, 0, NULL } }, 5862306a36Sopenharmony_ci [PUNCT_ID] = { PUNCT, .u.n = {"[:pu %c] ", 0, 0, 2, 0, 0, "nsa" } }, 5962306a36Sopenharmony_ci [VOICE_ID] = { VOICE, .u.n = {"[:n%c] ", 0, 0, 9, 0, 0, "phfdburwkv" } }, 6062306a36Sopenharmony_ci [DIRECT_ID] = { DIRECT, .u.n = {NULL, 0, 0, 1, 0, 0, NULL } }, 6162306a36Sopenharmony_ci V_LAST_VAR 6262306a36Sopenharmony_ci}; 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ci/* 6562306a36Sopenharmony_ci * These attributes will appear in /sys/accessibility/speakup/dectlk. 6662306a36Sopenharmony_ci */ 6762306a36Sopenharmony_cistatic struct kobj_attribute caps_start_attribute = 6862306a36Sopenharmony_ci __ATTR(caps_start, 0644, spk_var_show, spk_var_store); 6962306a36Sopenharmony_cistatic struct kobj_attribute caps_stop_attribute = 7062306a36Sopenharmony_ci __ATTR(caps_stop, 0644, spk_var_show, spk_var_store); 7162306a36Sopenharmony_cistatic struct kobj_attribute pitch_attribute = 7262306a36Sopenharmony_ci __ATTR(pitch, 0644, spk_var_show, spk_var_store); 7362306a36Sopenharmony_cistatic struct kobj_attribute inflection_attribute = 7462306a36Sopenharmony_ci __ATTR(inflection, 0644, spk_var_show, spk_var_store); 7562306a36Sopenharmony_cistatic struct kobj_attribute punct_attribute = 7662306a36Sopenharmony_ci __ATTR(punct, 0644, spk_var_show, spk_var_store); 7762306a36Sopenharmony_cistatic struct kobj_attribute rate_attribute = 7862306a36Sopenharmony_ci __ATTR(rate, 0644, spk_var_show, spk_var_store); 7962306a36Sopenharmony_cistatic struct kobj_attribute voice_attribute = 8062306a36Sopenharmony_ci __ATTR(voice, 0644, spk_var_show, spk_var_store); 8162306a36Sopenharmony_cistatic struct kobj_attribute vol_attribute = 8262306a36Sopenharmony_ci __ATTR(vol, 0644, spk_var_show, spk_var_store); 8362306a36Sopenharmony_ci 8462306a36Sopenharmony_cistatic struct kobj_attribute delay_time_attribute = 8562306a36Sopenharmony_ci __ATTR(delay_time, 0644, spk_var_show, spk_var_store); 8662306a36Sopenharmony_cistatic struct kobj_attribute direct_attribute = 8762306a36Sopenharmony_ci __ATTR(direct, 0644, spk_var_show, spk_var_store); 8862306a36Sopenharmony_cistatic struct kobj_attribute full_time_attribute = 8962306a36Sopenharmony_ci __ATTR(full_time, 0644, spk_var_show, spk_var_store); 9062306a36Sopenharmony_cistatic struct kobj_attribute flush_time_attribute = 9162306a36Sopenharmony_ci __ATTR(flush_time, 0644, spk_var_show, spk_var_store); 9262306a36Sopenharmony_cistatic struct kobj_attribute jiffy_delta_attribute = 9362306a36Sopenharmony_ci __ATTR(jiffy_delta, 0644, spk_var_show, spk_var_store); 9462306a36Sopenharmony_cistatic struct kobj_attribute trigger_time_attribute = 9562306a36Sopenharmony_ci __ATTR(trigger_time, 0644, spk_var_show, spk_var_store); 9662306a36Sopenharmony_ci 9762306a36Sopenharmony_ci/* 9862306a36Sopenharmony_ci * Create a group of attributes so that we can create and destroy them all 9962306a36Sopenharmony_ci * at once. 10062306a36Sopenharmony_ci */ 10162306a36Sopenharmony_cistatic struct attribute *synth_attrs[] = { 10262306a36Sopenharmony_ci &caps_start_attribute.attr, 10362306a36Sopenharmony_ci &caps_stop_attribute.attr, 10462306a36Sopenharmony_ci &pitch_attribute.attr, 10562306a36Sopenharmony_ci &inflection_attribute.attr, 10662306a36Sopenharmony_ci &punct_attribute.attr, 10762306a36Sopenharmony_ci &rate_attribute.attr, 10862306a36Sopenharmony_ci &voice_attribute.attr, 10962306a36Sopenharmony_ci &vol_attribute.attr, 11062306a36Sopenharmony_ci &delay_time_attribute.attr, 11162306a36Sopenharmony_ci &direct_attribute.attr, 11262306a36Sopenharmony_ci &full_time_attribute.attr, 11362306a36Sopenharmony_ci &flush_time_attribute.attr, 11462306a36Sopenharmony_ci &jiffy_delta_attribute.attr, 11562306a36Sopenharmony_ci &trigger_time_attribute.attr, 11662306a36Sopenharmony_ci NULL, /* need to NULL terminate the list of attributes */ 11762306a36Sopenharmony_ci}; 11862306a36Sopenharmony_ci 11962306a36Sopenharmony_cistatic int ap_defaults[] = {122, 89, 155, 110, 208, 240, 200, 106, 306}; 12062306a36Sopenharmony_cistatic int g5_defaults[] = {86, 81, 86, 84, 81, 80, 83, 83, 73}; 12162306a36Sopenharmony_ci 12262306a36Sopenharmony_cistatic struct spk_synth synth_dectlk = { 12362306a36Sopenharmony_ci .name = "dectlk", 12462306a36Sopenharmony_ci .version = DRV_VERSION, 12562306a36Sopenharmony_ci .long_name = "Dectalk Express", 12662306a36Sopenharmony_ci .init = "[:error sp :name paul :rate 180 :tsr off] ", 12762306a36Sopenharmony_ci .procspeech = PROCSPEECH, 12862306a36Sopenharmony_ci .clear = SYNTH_CLEAR, 12962306a36Sopenharmony_ci .delay = 500, 13062306a36Sopenharmony_ci .trigger = 50, 13162306a36Sopenharmony_ci .jiffies = 50, 13262306a36Sopenharmony_ci .full = 40000, 13362306a36Sopenharmony_ci .flush_time = 4000, 13462306a36Sopenharmony_ci .dev_name = SYNTH_DEFAULT_DEV, 13562306a36Sopenharmony_ci .startup = SYNTH_START, 13662306a36Sopenharmony_ci .checkval = SYNTH_CHECK, 13762306a36Sopenharmony_ci .vars = vars, 13862306a36Sopenharmony_ci .default_pitch = ap_defaults, 13962306a36Sopenharmony_ci .default_vol = g5_defaults, 14062306a36Sopenharmony_ci .io_ops = &spk_ttyio_ops, 14162306a36Sopenharmony_ci .probe = spk_ttyio_synth_probe, 14262306a36Sopenharmony_ci .release = spk_ttyio_release, 14362306a36Sopenharmony_ci .synth_immediate = spk_ttyio_synth_immediate, 14462306a36Sopenharmony_ci .catch_up = do_catch_up, 14562306a36Sopenharmony_ci .flush = synth_flush, 14662306a36Sopenharmony_ci .is_alive = spk_synth_is_alive_restart, 14762306a36Sopenharmony_ci .synth_adjust = NULL, 14862306a36Sopenharmony_ci .read_buff_add = read_buff_add, 14962306a36Sopenharmony_ci .get_index = get_index, 15062306a36Sopenharmony_ci .indexing = { 15162306a36Sopenharmony_ci .command = "[:in re %d ] ", 15262306a36Sopenharmony_ci .lowindex = 1, 15362306a36Sopenharmony_ci .highindex = 8, 15462306a36Sopenharmony_ci .currindex = 1, 15562306a36Sopenharmony_ci }, 15662306a36Sopenharmony_ci .attributes = { 15762306a36Sopenharmony_ci .attrs = synth_attrs, 15862306a36Sopenharmony_ci .name = "dectlk", 15962306a36Sopenharmony_ci }, 16062306a36Sopenharmony_ci}; 16162306a36Sopenharmony_ci 16262306a36Sopenharmony_cistatic int is_indnum(u_char *ch) 16362306a36Sopenharmony_ci{ 16462306a36Sopenharmony_ci if ((*ch >= '0') && (*ch <= '9')) { 16562306a36Sopenharmony_ci *ch = *ch - '0'; 16662306a36Sopenharmony_ci return 1; 16762306a36Sopenharmony_ci } 16862306a36Sopenharmony_ci return 0; 16962306a36Sopenharmony_ci} 17062306a36Sopenharmony_ci 17162306a36Sopenharmony_cistatic u_char lastind; 17262306a36Sopenharmony_ci 17362306a36Sopenharmony_cistatic unsigned char get_index(struct spk_synth *synth) 17462306a36Sopenharmony_ci{ 17562306a36Sopenharmony_ci u_char rv; 17662306a36Sopenharmony_ci 17762306a36Sopenharmony_ci rv = lastind; 17862306a36Sopenharmony_ci lastind = 0; 17962306a36Sopenharmony_ci return rv; 18062306a36Sopenharmony_ci} 18162306a36Sopenharmony_ci 18262306a36Sopenharmony_cistatic void read_buff_add(u_char c) 18362306a36Sopenharmony_ci{ 18462306a36Sopenharmony_ci static int ind = -1; 18562306a36Sopenharmony_ci 18662306a36Sopenharmony_ci if (c == 0x01) { 18762306a36Sopenharmony_ci unsigned long flags; 18862306a36Sopenharmony_ci 18962306a36Sopenharmony_ci spin_lock_irqsave(&flush_lock, flags); 19062306a36Sopenharmony_ci is_flushing = 0; 19162306a36Sopenharmony_ci wake_up_interruptible(&flush); 19262306a36Sopenharmony_ci spin_unlock_irqrestore(&flush_lock, flags); 19362306a36Sopenharmony_ci } else if (c == 0x13) { 19462306a36Sopenharmony_ci xoff = 1; 19562306a36Sopenharmony_ci } else if (c == 0x11) { 19662306a36Sopenharmony_ci xoff = 0; 19762306a36Sopenharmony_ci } else if (is_indnum(&c)) { 19862306a36Sopenharmony_ci if (ind == -1) 19962306a36Sopenharmony_ci ind = c; 20062306a36Sopenharmony_ci else 20162306a36Sopenharmony_ci ind = ind * 10 + c; 20262306a36Sopenharmony_ci } else if ((c > 31) && (c < 127)) { 20362306a36Sopenharmony_ci if (ind != -1) 20462306a36Sopenharmony_ci lastind = (u_char)ind; 20562306a36Sopenharmony_ci ind = -1; 20662306a36Sopenharmony_ci } 20762306a36Sopenharmony_ci} 20862306a36Sopenharmony_ci 20962306a36Sopenharmony_cistatic void do_catch_up(struct spk_synth *synth) 21062306a36Sopenharmony_ci{ 21162306a36Sopenharmony_ci int synth_full_val = 0; 21262306a36Sopenharmony_ci static u_char ch; 21362306a36Sopenharmony_ci static u_char last = '\0'; 21462306a36Sopenharmony_ci unsigned long flags; 21562306a36Sopenharmony_ci unsigned long jiff_max; 21662306a36Sopenharmony_ci unsigned long timeout; 21762306a36Sopenharmony_ci DEFINE_WAIT(wait); 21862306a36Sopenharmony_ci struct var_t *jiffy_delta; 21962306a36Sopenharmony_ci struct var_t *delay_time; 22062306a36Sopenharmony_ci struct var_t *flush_time; 22162306a36Sopenharmony_ci int jiffy_delta_val; 22262306a36Sopenharmony_ci int delay_time_val; 22362306a36Sopenharmony_ci int timeout_val; 22462306a36Sopenharmony_ci 22562306a36Sopenharmony_ci jiffy_delta = spk_get_var(JIFFY); 22662306a36Sopenharmony_ci delay_time = spk_get_var(DELAY); 22762306a36Sopenharmony_ci flush_time = spk_get_var(FLUSH); 22862306a36Sopenharmony_ci spin_lock_irqsave(&speakup_info.spinlock, flags); 22962306a36Sopenharmony_ci jiffy_delta_val = jiffy_delta->u.n.value; 23062306a36Sopenharmony_ci timeout_val = flush_time->u.n.value; 23162306a36Sopenharmony_ci spin_unlock_irqrestore(&speakup_info.spinlock, flags); 23262306a36Sopenharmony_ci timeout = msecs_to_jiffies(timeout_val); 23362306a36Sopenharmony_ci jiff_max = jiffies + jiffy_delta_val; 23462306a36Sopenharmony_ci 23562306a36Sopenharmony_ci while (!kthread_should_stop()) { 23662306a36Sopenharmony_ci /* if no ctl-a in 4, send data anyway */ 23762306a36Sopenharmony_ci spin_lock_irqsave(&flush_lock, flags); 23862306a36Sopenharmony_ci while (is_flushing && timeout) { 23962306a36Sopenharmony_ci prepare_to_wait(&flush, &wait, TASK_INTERRUPTIBLE); 24062306a36Sopenharmony_ci spin_unlock_irqrestore(&flush_lock, flags); 24162306a36Sopenharmony_ci timeout = schedule_timeout(timeout); 24262306a36Sopenharmony_ci spin_lock_irqsave(&flush_lock, flags); 24362306a36Sopenharmony_ci } 24462306a36Sopenharmony_ci finish_wait(&flush, &wait); 24562306a36Sopenharmony_ci is_flushing = 0; 24662306a36Sopenharmony_ci spin_unlock_irqrestore(&flush_lock, flags); 24762306a36Sopenharmony_ci 24862306a36Sopenharmony_ci spin_lock_irqsave(&speakup_info.spinlock, flags); 24962306a36Sopenharmony_ci if (speakup_info.flushing) { 25062306a36Sopenharmony_ci speakup_info.flushing = 0; 25162306a36Sopenharmony_ci spin_unlock_irqrestore(&speakup_info.spinlock, flags); 25262306a36Sopenharmony_ci synth->flush(synth); 25362306a36Sopenharmony_ci continue; 25462306a36Sopenharmony_ci } 25562306a36Sopenharmony_ci synth_buffer_skip_nonlatin1(); 25662306a36Sopenharmony_ci if (synth_buffer_empty()) { 25762306a36Sopenharmony_ci spin_unlock_irqrestore(&speakup_info.spinlock, flags); 25862306a36Sopenharmony_ci break; 25962306a36Sopenharmony_ci } 26062306a36Sopenharmony_ci ch = synth_buffer_peek(); 26162306a36Sopenharmony_ci set_current_state(TASK_INTERRUPTIBLE); 26262306a36Sopenharmony_ci delay_time_val = delay_time->u.n.value; 26362306a36Sopenharmony_ci synth_full_val = synth_full(); 26462306a36Sopenharmony_ci spin_unlock_irqrestore(&speakup_info.spinlock, flags); 26562306a36Sopenharmony_ci if (ch == '\n') 26662306a36Sopenharmony_ci ch = 0x0D; 26762306a36Sopenharmony_ci if (synth_full_val || !synth->io_ops->synth_out(synth, ch)) { 26862306a36Sopenharmony_ci schedule_timeout(msecs_to_jiffies(delay_time_val)); 26962306a36Sopenharmony_ci continue; 27062306a36Sopenharmony_ci } 27162306a36Sopenharmony_ci set_current_state(TASK_RUNNING); 27262306a36Sopenharmony_ci spin_lock_irqsave(&speakup_info.spinlock, flags); 27362306a36Sopenharmony_ci synth_buffer_getc(); 27462306a36Sopenharmony_ci spin_unlock_irqrestore(&speakup_info.spinlock, flags); 27562306a36Sopenharmony_ci if (ch == '[') { 27662306a36Sopenharmony_ci in_escape = 1; 27762306a36Sopenharmony_ci } else if (ch == ']') { 27862306a36Sopenharmony_ci in_escape = 0; 27962306a36Sopenharmony_ci } else if (ch <= SPACE) { 28062306a36Sopenharmony_ci if (!in_escape && strchr(",.!?;:", last)) 28162306a36Sopenharmony_ci synth->io_ops->synth_out(synth, PROCSPEECH); 28262306a36Sopenharmony_ci if (time_after_eq(jiffies, jiff_max)) { 28362306a36Sopenharmony_ci if (!in_escape) 28462306a36Sopenharmony_ci synth->io_ops->synth_out(synth, 28562306a36Sopenharmony_ci PROCSPEECH); 28662306a36Sopenharmony_ci spin_lock_irqsave(&speakup_info.spinlock, 28762306a36Sopenharmony_ci flags); 28862306a36Sopenharmony_ci jiffy_delta_val = jiffy_delta->u.n.value; 28962306a36Sopenharmony_ci delay_time_val = delay_time->u.n.value; 29062306a36Sopenharmony_ci spin_unlock_irqrestore(&speakup_info.spinlock, 29162306a36Sopenharmony_ci flags); 29262306a36Sopenharmony_ci schedule_timeout(msecs_to_jiffies 29362306a36Sopenharmony_ci (delay_time_val)); 29462306a36Sopenharmony_ci jiff_max = jiffies + jiffy_delta_val; 29562306a36Sopenharmony_ci } 29662306a36Sopenharmony_ci } 29762306a36Sopenharmony_ci last = ch; 29862306a36Sopenharmony_ci } 29962306a36Sopenharmony_ci if (!in_escape) 30062306a36Sopenharmony_ci synth->io_ops->synth_out(synth, PROCSPEECH); 30162306a36Sopenharmony_ci} 30262306a36Sopenharmony_ci 30362306a36Sopenharmony_cistatic void synth_flush(struct spk_synth *synth) 30462306a36Sopenharmony_ci{ 30562306a36Sopenharmony_ci if (in_escape) 30662306a36Sopenharmony_ci /* if in command output ']' so we don't get an error */ 30762306a36Sopenharmony_ci synth->io_ops->synth_out(synth, ']'); 30862306a36Sopenharmony_ci in_escape = 0; 30962306a36Sopenharmony_ci is_flushing = 1; 31062306a36Sopenharmony_ci synth->io_ops->flush_buffer(synth); 31162306a36Sopenharmony_ci synth->io_ops->synth_out(synth, SYNTH_CLEAR); 31262306a36Sopenharmony_ci} 31362306a36Sopenharmony_ci 31462306a36Sopenharmony_cimodule_param_named(ser, synth_dectlk.ser, int, 0444); 31562306a36Sopenharmony_cimodule_param_named(dev, synth_dectlk.dev_name, charp, 0444); 31662306a36Sopenharmony_cimodule_param_named(start, synth_dectlk.startup, short, 0444); 31762306a36Sopenharmony_cimodule_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444); 31862306a36Sopenharmony_cimodule_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444); 31962306a36Sopenharmony_cimodule_param_named(inflection, vars[INFLECTION_ID].u.n.default_val, int, 0444); 32062306a36Sopenharmony_cimodule_param_named(vol, vars[VOL_ID].u.n.default_val, int, 0444); 32162306a36Sopenharmony_cimodule_param_named(punct, vars[PUNCT_ID].u.n.default_val, int, 0444); 32262306a36Sopenharmony_cimodule_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444); 32362306a36Sopenharmony_cimodule_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444); 32462306a36Sopenharmony_ci 32562306a36Sopenharmony_ci 32662306a36Sopenharmony_ci 32762306a36Sopenharmony_ciMODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based)."); 32862306a36Sopenharmony_ciMODULE_PARM_DESC(dev, "Set the device e.g. ttyUSB0, for the synthesizer."); 32962306a36Sopenharmony_ciMODULE_PARM_DESC(start, "Start the synthesizer once it is loaded."); 33062306a36Sopenharmony_ciMODULE_PARM_DESC(rate, "Set the rate variable on load."); 33162306a36Sopenharmony_ciMODULE_PARM_DESC(pitch, "Set the pitch variable on load."); 33262306a36Sopenharmony_ciMODULE_PARM_DESC(inflection, "Set the inflection variable on load."); 33362306a36Sopenharmony_ciMODULE_PARM_DESC(vol, "Set the vol variable on load."); 33462306a36Sopenharmony_ciMODULE_PARM_DESC(punct, "Set the punct variable on load."); 33562306a36Sopenharmony_ciMODULE_PARM_DESC(voice, "Set the voice variable on load."); 33662306a36Sopenharmony_ciMODULE_PARM_DESC(direct, "Set the direct variable on load."); 33762306a36Sopenharmony_ci 33862306a36Sopenharmony_ci 33962306a36Sopenharmony_cimodule_spk_synth(synth_dectlk); 34062306a36Sopenharmony_ci 34162306a36Sopenharmony_ciMODULE_AUTHOR("Kirk Reiser <kirk@braille.uwo.ca>"); 34262306a36Sopenharmony_ciMODULE_AUTHOR("David Borowski"); 34362306a36Sopenharmony_ciMODULE_DESCRIPTION("Speakup support for DECtalk Express synthesizers"); 34462306a36Sopenharmony_ciMODULE_LICENSE("GPL"); 34562306a36Sopenharmony_ciMODULE_VERSION(DRV_VERSION); 34662306a36Sopenharmony_ci 347