diff options
-rw-r--r-- | drivers/staging/speakup/main.c | 9 | ||||
-rw-r--r-- | drivers/staging/speakup/serialio.h | 3 | ||||
-rw-r--r-- | drivers/staging/speakup/speakup.h | 6 | ||||
-rw-r--r-- | drivers/staging/speakup/speakup_decext.c | 6 | ||||
-rw-r--r-- | drivers/staging/speakup/speakup_decpc.c | 6 | ||||
-rw-r--r-- | drivers/staging/speakup/spk_types.h | 3 |
6 files changed, 22 insertions, 11 deletions
diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c index 1249f910aed1..c955976414ee 100644 --- a/drivers/staging/speakup/main.c +++ b/drivers/staging/speakup/main.c | |||
@@ -423,7 +423,8 @@ static void announce_edge(struct vc_data *vc, int msg_id) | |||
423 | if (spk_bleeps & 1) | 423 | if (spk_bleeps & 1) |
424 | bleep(spk_y); | 424 | bleep(spk_y); |
425 | if ((spk_bleeps & 2) && (msg_id < edge_quiet)) | 425 | if ((spk_bleeps & 2) && (msg_id < edge_quiet)) |
426 | synth_printf("%s\n", spk_msg_get(MSG_EDGE_MSGS_START + msg_id - 1)); | 426 | synth_printf("%s\n", |
427 | spk_msg_get(MSG_EDGE_MSGS_START + msg_id - 1)); | ||
427 | } | 428 | } |
428 | 429 | ||
429 | static void speak_char(u_char ch) | 430 | static void speak_char(u_char ch) |
@@ -1131,7 +1132,8 @@ static void spkup_write(const char *in_buf, int count) | |||
1131 | if (in_count > 2 && rep_count > 2) { | 1132 | if (in_count > 2 && rep_count > 2) { |
1132 | if (last_type & CH_RPT) { | 1133 | if (last_type & CH_RPT) { |
1133 | synth_printf(" "); | 1134 | synth_printf(" "); |
1134 | synth_printf(spk_msg_get(MSG_REPEAT_DESC2), ++rep_count); | 1135 | synth_printf(spk_msg_get(MSG_REPEAT_DESC2), |
1136 | ++rep_count); | ||
1135 | synth_printf(" "); | 1137 | synth_printf(" "); |
1136 | } | 1138 | } |
1137 | rep_count = 0; | 1139 | rep_count = 0; |
@@ -1847,7 +1849,8 @@ static void speakup_win_set(struct vc_data *vc) | |||
1847 | win_right = spk_x; | 1849 | win_right = spk_x; |
1848 | } | 1850 | } |
1849 | snprintf(info, sizeof(info), spk_msg_get(MSG_WINDOW_BOUNDARY), | 1851 | snprintf(info, sizeof(info), spk_msg_get(MSG_WINDOW_BOUNDARY), |
1850 | (win_start) ? spk_msg_get(MSG_END) : spk_msg_get(MSG_START), | 1852 | (win_start) ? |
1853 | spk_msg_get(MSG_END) : spk_msg_get(MSG_START), | ||
1851 | (int)spk_y + 1, (int)spk_x + 1); | 1854 | (int)spk_y + 1, (int)spk_x + 1); |
1852 | } | 1855 | } |
1853 | synth_printf("%s\n", info); | 1856 | synth_printf("%s\n", info); |
diff --git a/drivers/staging/speakup/serialio.h b/drivers/staging/speakup/serialio.h index 317bb8432a04..1b399214ecf7 100644 --- a/drivers/staging/speakup/serialio.h +++ b/drivers/staging/speakup/serialio.h | |||
@@ -34,6 +34,7 @@ struct old_serial_port { | |||
34 | #define SPK_TIMEOUT 100 | 34 | #define SPK_TIMEOUT 100 |
35 | #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE) | 35 | #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE) |
36 | 36 | ||
37 | #define spk_serial_tx_busy() ((inb(speakup_info.port_tts + UART_LSR) & BOTH_EMPTY) != BOTH_EMPTY) | 37 | #define spk_serial_tx_busy() \ |
38 | ((inb(speakup_info.port_tts + UART_LSR) & BOTH_EMPTY) != BOTH_EMPTY) | ||
38 | 39 | ||
39 | #endif | 40 | #endif |
diff --git a/drivers/staging/speakup/speakup.h b/drivers/staging/speakup/speakup.h index 898dce5e1243..a7f4962427f3 100644 --- a/drivers/staging/speakup/speakup.h +++ b/drivers/staging/speakup/speakup.h | |||
@@ -61,10 +61,12 @@ extern struct st_var_header *spk_get_var_header(enum var_id_t var_id); | |||
61 | extern struct st_var_header *spk_var_header_by_name(const char *name); | 61 | extern struct st_var_header *spk_var_header_by_name(const char *name); |
62 | extern struct punc_var_t *spk_get_punc_var(enum var_id_t var_id); | 62 | extern struct punc_var_t *spk_get_punc_var(enum var_id_t var_id); |
63 | extern int spk_set_num_var(int val, struct st_var_header *var, int how); | 63 | extern int spk_set_num_var(int val, struct st_var_header *var, int how); |
64 | extern int spk_set_string_var(const char *page, struct st_var_header *var, int len); | 64 | extern int spk_set_string_var(const char *page, struct st_var_header *var, |
65 | int len); | ||
65 | extern int spk_set_mask_bits(const char *input, const int which, const int how); | 66 | extern int spk_set_mask_bits(const char *input, const int which, const int how); |
66 | extern special_func spk_special_handler; | 67 | extern special_func spk_special_handler; |
67 | extern int spk_handle_help(struct vc_data *vc, u_char type, u_char ch, u_short key); | 68 | extern int spk_handle_help(struct vc_data *vc, u_char type, u_char ch, |
69 | u_short key); | ||
68 | extern int synth_init(char *name); | 70 | extern int synth_init(char *name); |
69 | extern void synth_release(void); | 71 | extern void synth_release(void); |
70 | 72 | ||
diff --git a/drivers/staging/speakup/speakup_decext.c b/drivers/staging/speakup/speakup_decext.c index 2b772f8522f1..e0b5db9bb46e 100644 --- a/drivers/staging/speakup/speakup_decext.c +++ b/drivers/staging/speakup/speakup_decext.c | |||
@@ -207,10 +207,12 @@ static void do_catch_up(struct spk_synth *synth) | |||
207 | if (time_after_eq(jiffies, jiff_max)) { | 207 | if (time_after_eq(jiffies, jiff_max)) { |
208 | if (!in_escape) | 208 | if (!in_escape) |
209 | spk_serial_out(PROCSPEECH); | 209 | spk_serial_out(PROCSPEECH); |
210 | spin_lock_irqsave(&speakup_info.spinlock, flags); | 210 | spin_lock_irqsave(&speakup_info.spinlock, |
211 | flags); | ||
211 | jiffy_delta_val = jiffy_delta->u.n.value; | 212 | jiffy_delta_val = jiffy_delta->u.n.value; |
212 | delay_time_val = delay_time->u.n.value; | 213 | delay_time_val = delay_time->u.n.value; |
213 | spin_unlock_irqrestore(&speakup_info.spinlock, flags); | 214 | spin_unlock_irqrestore(&speakup_info.spinlock, |
215 | flags); | ||
214 | schedule_timeout(msecs_to_jiffies | 216 | schedule_timeout(msecs_to_jiffies |
215 | (delay_time_val)); | 217 | (delay_time_val)); |
216 | jiff_max = jiffies + jiffy_delta_val; | 218 | jiff_max = jiffies + jiffy_delta_val; |
diff --git a/drivers/staging/speakup/speakup_decpc.c b/drivers/staging/speakup/speakup_decpc.c index f7b9c8a3a1a5..437e13a85943 100644 --- a/drivers/staging/speakup/speakup_decpc.c +++ b/drivers/staging/speakup/speakup_decpc.c | |||
@@ -423,10 +423,12 @@ static void do_catch_up(struct spk_synth *synth) | |||
423 | if (time_after_eq(jiffies, jiff_max)) { | 423 | if (time_after_eq(jiffies, jiff_max)) { |
424 | if (!in_escape) | 424 | if (!in_escape) |
425 | dt_sendchar(PROCSPEECH); | 425 | dt_sendchar(PROCSPEECH); |
426 | spin_lock_irqsave(&speakup_info.spinlock, flags); | 426 | spin_lock_irqsave(&speakup_info.spinlock, |
427 | flags); | ||
427 | jiffy_delta_val = jiffy_delta->u.n.value; | 428 | jiffy_delta_val = jiffy_delta->u.n.value; |
428 | delay_time_val = delay_time->u.n.value; | 429 | delay_time_val = delay_time->u.n.value; |
429 | spin_unlock_irqrestore(&speakup_info.spinlock, flags); | 430 | spin_unlock_irqrestore(&speakup_info.spinlock, |
431 | flags); | ||
430 | schedule_timeout(msecs_to_jiffies | 432 | schedule_timeout(msecs_to_jiffies |
431 | (delay_time_val)); | 433 | (delay_time_val)); |
432 | jiff_max = jiffies + jiffy_delta_val; | 434 | jiff_max = jiffies + jiffy_delta_val; |
diff --git a/drivers/staging/speakup/spk_types.h b/drivers/staging/speakup/spk_types.h index 55d6c9b3b472..e8ff5d7d6419 100644 --- a/drivers/staging/speakup/spk_types.h +++ b/drivers/staging/speakup/spk_types.h | |||
@@ -168,7 +168,8 @@ struct spk_synth { | |||
168 | int *default_vol; | 168 | int *default_vol; |
169 | int (*probe)(struct spk_synth *synth); | 169 | int (*probe)(struct spk_synth *synth); |
170 | void (*release)(void); | 170 | void (*release)(void); |
171 | const char *(*synth_immediate)(struct spk_synth *synth, const char *buff); | 171 | const char *(*synth_immediate)(struct spk_synth *synth, |
172 | const char *buff); | ||
172 | void (*catch_up)(struct spk_synth *synth); | 173 | void (*catch_up)(struct spk_synth *synth); |
173 | void (*flush)(struct spk_synth *synth); | 174 | void (*flush)(struct spk_synth *synth); |
174 | int (*is_alive)(struct spk_synth *synth); | 175 | int (*is_alive)(struct spk_synth *synth); |