Hello,<br><br>I am trying to port one voice recog. application I found on the internet which uses the mic to record the voice. It works fine on my desktop, but on the Neo it cant seem to get the mic device.<br><br>Here is a part of the code.<br>
<br> dev_mixer = "/dev/mixer";<br><br> if ((fd = open(dev_mixer, O_RDWR, 0)) == -1)<br> return(MIXER_ERR);<br><br> /***** check whether mic and igain devices available */<br><br> if (ioctl(fd, SOUND_MIXER_READ_DEVMASK, &mask_mixer) == -1)<br>
return(MIXER_ERR);<br><br> if (!(mask_mixer & SOUND_MASK_MIC))<br> return(MIXER_ERR);<br><br><br>But the MIC seems unavailable i.e. it returns after the above statement. So is the code using the wrong MASK, wrong device or is there something else wrong.<br>
<br>I tried some other program which list the capabilities of the mixer. Below is the output of that program. Which also says that mic is no available. It does show 2 PCMs, so I am not sure what should be used. I can attach the src if someone is interested.<br>
<br><br>Status of /dev/mixer:<br><br>Mixer Device Recording Active Stereo Current<br>Channel Available Source Source Device Level<br>--------- --------- --------- -------- --------- ---------<br>
0 Vol no no no no<br> 1 Bass no no no no<br> 2 Trebl no no no no<br> 3 Synth no no no no<br> 4 Pcm yes no no yes 90% 90%<br>
5 Spkr no no no no<br> 6 Line no no no no<br> 7 Mic no no no no<br> 8 CD no no no no<br> 9 Mix no no no no<br>
10 Pcm2 yes no no yes 100% 100%<br>11 Rec no no no no<br>12 IGain yes no no yes 0% 0%<br>13 OGain no no no no<br>
14 Line1 no no no no<br>15 Line2 no no no no<br><br><br><br>Thanks for any help I can get.<br><br>-- Pranav<br>