2001-12-18 17:18:10

by Jeff

[permalink] [raw]
Subject: VIA sound and SNDCTL_DSP_NONBLOCK error.....

I am a ham radio operator who wishes to use the sound card for digital
comunications. However, my system has the VIA 82c686/ac97 sound. While I
can ofcourse make the sound work, playing/recording,etc, I cannot use it
with ham software.
Take twpsk31 for example, it compiles, but when trying to run it stops
on:
SNDCTL_DSP_NONBLOCK: illegal parameter.

On a system with a Sound Blaster Pro it runs fine, same Linux kernel,
etc.

I am no kernel expert. I have tried searching the web, found plenty of
hits saying the same problem, but no answer. I posted this to news
groups, no answer. I sent an email to what's his name at SUSE, the
maintainer, no answer.

So, the questions
Why is the SNDCTL_DSP_NONBLOCK parameter not suppported in the driver?
Is it not supported do to hardware restrictions?
Is there a good web based source for information on the structure of the
sound drivers?

I really do not want to have to run Windows to operate digital modes.
Yes, they work fine using the via sound as a radio modem. Nor do I want
to have to buy another sound card just to do it.
Could this be the reason that more people don't use Linux. Having things
work on one system, but fail on another because of driver differences.
ie, working with a sound blaster, but not the via?

Jeff
[email protected]


2001-12-18 17:36:51

by Jeff Garzik

[permalink] [raw]
Subject: Re: VIA sound and SNDCTL_DSP_NONBLOCK error.....

Jeff wrote:
>
> I am a ham radio operator who wishes to use the sound card for digital
> comunications. However, my system has the VIA 82c686/ac97 sound. While I
> can ofcourse make the sound work, playing/recording,etc, I cannot use it
> with ham software.
> Take twpsk31 for example, it compiles, but when trying to run it stops
> on:
> SNDCTL_DSP_NONBLOCK: illegal parameter.

update the software to use normal fcntl(2)

--
Jeff Garzik | Only so many songs can be sung
Building 1024 | with two lips, two lungs, and one tongue.
MandrakeSoft | - nomeansno

2001-12-19 20:28:31

by Jeff

[permalink] [raw]
Subject: Re: VIA sound and SNDCTL_DSP_NONBLOCK error.....

Actually, upgrading from 1.4.x version supplied with Slackware 8.0 to
the latest version 1.9.1 solved the SNDCTL_DSP_NONBLOCK problem.
The new problem is now

val = 0; // no input sigs get to output
if (ioctl(mixer_fd, MIXER_WRITE(SOUND_MIXER_OUTSRC), &val) < 0)
{
fprintf (stderr, "mixer outsrc failed\n");

Failing, all the other of the many ioctl calls work ok.

p.s sorry about saying suse, weak memory :-).

Jeff Garzik wrote:
>
> Jeff wrote:
> >
> > I am a ham radio operator who wishes to use the sound card for digital
> > comunications. However, my system has the VIA 82c686/ac97 sound. While I
> > can ofcourse make the sound work, playing/recording,etc, I cannot use it
> > with ham software.
> > Take twpsk31 for example, it compiles, but when trying to run it stops
> > on:
> > SNDCTL_DSP_NONBLOCK: illegal parameter.
>
> update the software to use normal fcntl(2)
>
> --
> Jeff Garzik | Only so many songs can be sung
> Building 1024 | with two lips, two lungs, and one tongue.
> MandrakeSoft | - nomeansno

jeff
[email protected]