patch-2.4.0-test11 linux/drivers/telephony/ixj.c
Next file: linux/drivers/usb/Config.in
Previous file: linux/drivers/sound/yss225.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Nov 15 00:41:03 2000
- Orig file:
v2.4.0-test10/linux/drivers/telephony/ixj.c
- Orig date:
Tue Oct 31 12:42:27 2000
diff -u --recursive --new-file v2.4.0-test10/linux/drivers/telephony/ixj.c linux/drivers/telephony/ixj.c
@@ -1812,6 +1812,8 @@
while (!j->read_buffer_ready || (j->dtmf_state && j->flags.dtmf_oob)) {
++j->read_wait;
if(j->tone_state) {
+ set_current_state(TASK_RUNNING);
+ remove_wait_queue(&j->read_q, &wait);
j->flags.inread = 0;
return -EAGAIN;
}
@@ -1894,6 +1896,8 @@
while (!j->write_buffers_empty) {
++j->write_wait;
if(j->tone_state) {
+ set_current_state(TASK_RUNNING);
+ remove_wait_queue(&j->write_q, &wait);
j->flags.inwrite = 0;
return -EAGAIN;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)