Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


OSS programming error, equipment can not be opened

I now do real-time transmission of the wireless voice module. Read some articles on the OSS sound card operation after the program has encountered some problems.

Each button, the sound card lsmod on the part of the results are as follows :
Module Size Used by Not tainted
I810_audio 27720 0 (autoclean)
Ac97_codec 13640 0 (autoclean) [i810_audio]
Soundcore 6404 2 (autoclean) [i810_audio]

/dev/dsp Time for cat "; Panorama Panorama and cat "; /dev/dsp Not strange, but once the function, in preparation for the operation, it will indicate that documents could not be opened equipment. Lsmod after the results are as follows :
Module Size Used by Not tainted
I810_audio 27720 1 (autoclean)
Ac97_codec 13640 0 (autoclean) [i810_audio]
Soundcore 6404 2 (autoclean) [i810_audio]

/dev/dsp Until then cat will indicate busy resources or equipment. I wrote a short test functions are as follows :
/*-------open_test.c--------*/
#include "Stdio.h>;
#include "Stdlib.h>;
#include "Sys/ioctl.h>;
#include "Linux/soundcard.h>;
#include "Fcntl.h>;
#include "Unistd.h>;


# DEVICE "/dev/audio"

Int main ()
{
Int fd=-1;
Char cmd[10];
Fd = open (DEVICE, O_RDWR);
Printf ( "The file descriptor is %d\n" fd);
If (fd ====== 1)
{
Fprintf (stderr, "\nUnable to open audio device.\n");
Fflush (stderr);
}
Printf ( "Please enter command :");
Scanf ( "Please enter %s command" cmd);
If (!strcmp (cmd, "quit"))
{
Close (fd);
Printf ( "Has already close the device\n");
}


Return 0
}

Here, I have a few questions :
1. In this new show when the plane was two soundcore procedure (I am not quite sure what they should be called), which is two? I can learn about what? I find that I have no such equipment /dev/sndstat
2. Why am I in the following circumstances
Module Size Used by Not tainted
I810_audio 27720 0 (autoclean)
Ac97_codec 13640 0 (autoclean) [i810_audio]
Soundcore 6404 2 (autoclean) [i810_audio]
Operation is still open for a breakthrough? Under such circumstances why I did not broadcast cd and mp3 in Courseware Facture?
Another surprising is the source xmms I probably looked at them, almost opened the way, why xmms each able to open, I have opened up how? In another experiment platform and able to open my notebook, the operator would have no problem, desktop machine but can also open voice heard.
3. I operated in an experimental platform, I find the guidance from the recordings of proceedings (see Annex procedures) So, I changed char buffer from unsigned char still normal. However, I have not heard of the transmission network for voice, either TCP or UDP broadcasting MPP, was not allowed. Test data acceptable to the two sides seemed to be no problem (because I uncertainty). I do not know whether I am the type of buffer wrong, I used to convert char and unsigned char after not possible. I now have what I should point buffer-confused? I have read some of the Intel IPP library inside the buffer zone, the type of data definition, char, unsigned char, short char, int many, I am not sure what I should use? I should be set according to the frequency channels, etc. to decide?
4. I tried re-editing kernel to see if it is driven procedures, but each time always some inexplicable errors, such as wrong parameters like Eastern, I am surprised that he would do such a camera-driven issue. Kernel code should in theory there is nothing wrong with the release, but if the code is wrong, then how is the compiler code generators of it? I use the redhat9, 2.4.-20 kernel version.

OSS programming error, equipment can not be opened

Sound card can play music can prove is normal?

OSS programming error, equipment can not be opened

Why do I myself will not /dev/sndstat?



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com