Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ppdev0: claim the port first // Device "/dev/parport0" neither parport nor serport PATCH

8 views
Skip to first unread message

Nuno Miguel Fernandes Sucena Almeida

unread,
Jul 8, 2002, 2:40:27 AM7/8/02
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
i'm trying to use the soundmodem-0.6 with linux kernel 2.4.16
and PTT with parport.
I'm getting the following error from kernel log:

ppdev0: claim the port first

and the following output from soundmodem:

sbin/soundmodem
sm[3171]: Device "/dev/parport0" neither parport nor serport
sm[3171]: cannot start PTT output

After a quick look at soundcard/ptt.c

i changed line 90 from

} else if (!ioctl(fd, PPRDATA, &x)) {

to

} else if ((!ioctl(fd,PPCLAIM))&&(!ioctl(fd, PPRDATA, &x))) {

and the errors no longer occur.

Cheers,
Nuno Sucena Almeida
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Para mais informações veja http://www.gnupg.org

iD8DBQE9KTPi8HEhaPSUrLkRAnmGAKC0KekSTL5eDAsltppkZbJwB7oVjwCeKvTx
KB0HoMoiBpaWi22vAzJBzzA=
=M8EW
-----END PGP SIGNATURE-----


-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

0 new messages