mISDN: Make layer1 timer 3 value configurable
[deliverable/linux.git] / drivers / isdn / hardware / mISDN / speedfax.c
index 04689935148bbed08dab33b0854514dce5f82805..93f344d74e546ea3063bb1f1b1d23d5cb6071ec8 100644 (file)
@@ -224,7 +224,7 @@ channel_ctrl(struct sfax_hw  *sf, struct mISDN_ctrl_req *cq)
 
        switch (cq->op) {
        case MISDN_CTRL_GETOP:
-               cq->op = MISDN_CTRL_LOOP;
+               cq->op = MISDN_CTRL_LOOP | MISDN_CTRL_L1_TIMER3;
                break;
        case MISDN_CTRL_LOOP:
                /* cq->channel: 0 disable, 1 B1 loop 2 B2 loop, 3 both */
@@ -234,6 +234,9 @@ channel_ctrl(struct sfax_hw  *sf, struct mISDN_ctrl_req *cq)
                }
                ret = sf->isac.ctrl(&sf->isac, HW_TESTLOOP, cq->channel);
                break;
+       case MISDN_CTRL_L1_TIMER3:
+               ret = sf->isac.ctrl(&sf->isac, HW_TIMER3_VALUE, cq->p1);
+               break;
        default:
                pr_info("%s: unknown Op %x\n", sf->name, cq->op);
                ret = -EINVAL;
This page took 0.140828 seconds and 5 git commands to generate.