OpenBCM V1.07b12 (Linux)

Packet Radio Mailbox

DB0FHN

[JN59NK Nuernberg]

 Login: GUEST





  
DL9RDZ > DSP      18.09.98 19:54l 43 Lines 1298 Bytes #-9374 (0) @ EU
BID : I98OE5XBL02F
Read: DF7ML DJ9KV DH9MAG LX2GT DJ5YS DL2NBU DL9EI GUEST DK5RAS
Subj: psk31lx: update V0.52 (bugfix)
Path: DB0AAB<DB0SL<DB0FSG<IN3TRX<OE7XBB<DB0ISW<DB0PV<OE2XOM<OE5XBL
Sent: 980918/1549z @:OE5XBL.#OE5.AUT.EU [Mailbox Braunau JN68PC] BCM1.39tb
From: DL9RDZ @ OE5XBL.#OE5.AUT.EU  (Hansi)
To:   DSP @ EU
X-BID: I98OE5XBL02F

Hi!

V0.5 works fine on semi-duplex soundcards, but has some problems with
sound cards like OPTI, which operate in full-duplex dma mode.
here is a small patch for this problem. Apply it with the command
"patch < psk31-0.5-0.52.patch" in the source directory of V0.5

73 de Hansi, dl9rdz

####begin psk31-0.5-0.52.patch

--- ../V0.5/psk31-main.C	Fri Sep 11 16:31:05 1998
+++ ./psk31-main.C	Fri Sep 18 15:33:44 1998
@@ -32 +32 @@
-static char *version_string="PSK31/Soundblaster for Linux Version V0.5";
+static char *version_string="PSK31/Soundblaster for Linux Version V0.52";
@@ -34,0 +35 @@
+int full_duplex=0;
@@ -289,0 +291,3 @@
+		// Check if the device is operating in full duplex mode
+		ioctl(audio_fd, SNDCTL_DSP_GETCAPS, &val);
+		if(val&DSP_CAP_DUPLEX) full_duplex=1;
@@ -440 +444,2 @@
-					ioctl(audio_fd, SNDCTL_DSP_SYNC);
+					if(!full_duplex)
+						ioctl(audio_fd, SNDCTL_DSP_SYNC);
--- ../V0.5/psk31-transmitter.C	Fri Sep 11 15:54:42 1998
+++ ./psk31-transmitter.C	Tue Sep 15 12:08:31 1998
@@ -14,0 +15,2 @@
+extern int full_duplex; // from psk31-main.C
+
@@ -217 +219,4 @@
-		short s=sample;
+		short s;
+		if(full_duplex)
+			while( read(audiofd,&s,2)>0 ); // Clear RX Buffer
+		s=sample;

####end


Read previous mail | Read next mail


 19.05.2024 05:09:17lGo back Go up