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?
Quoted 8 lines · Jeff
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)
Signature · 3 lines
Jeff Garzik | Only so many songs can be sung Building 1024 | with two lips, two lungs, and one tongue. MandrakeSoft | - nomeansno
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 :-).
Quoted 11 lines · Jeff Garzik
Quoted 8 lines · Jeff
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.
Quoted 6 lines
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