patch-2.1.48 linux/drivers/net/soundmodem/sm_sbc.c

Next file: linux/drivers/net/soundmodem/sm_wss.c
Previous file: linux/drivers/net/plip.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.47/linux/drivers/net/soundmodem/sm_sbc.c linux/drivers/net/soundmodem/sm_sbc.c
@@ -339,6 +339,7 @@
 	sti();
 	if (sm->dma.ptt_cnt <= 0) {
 		dma_receive(sm, curfrag);
+		hdlcdrv_arbitrate(dev, &sm->hdrv);
 		if (hdlcdrv_ptt(&sm->hdrv)) {
 			/* starting to transmit */
 			disable_dma(dev->dma);
@@ -352,10 +353,8 @@
 		sti();
 		dma_init_receive(sm);
 		setup_dma_dsp(dev, sm, 0);
-        } else {
+        } else
 		dma_transmit(sm);
-		hdlcdrv_arbitrate(dev, &sm->hdrv);
-        }
 	sm_output_status(sm);
 	hdlcdrv_transmitter(dev, &sm->hdrv);
 	hdlcdrv_receiver(dev, &sm->hdrv);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov