SNDRV_PCM_IOCTL_HW_FREE failed
Hi, this may well be nothing to do with alsa but I thought you may know what is happening.
If I make a system call from one thread whilst recording or playing in another thread using the alsa lib, then when I try to snd_pcm_close I get:
Quoted 1 line
ALSA lib pcm_hw.c:145:(snd_pcm_hw_hw_free)
SNDRV_PCM_IOCTL_HW_FREEfailed: File >descriptor in bad state
It seems like some memory corruption, but I've no real idea. If anybody knows I would be very grateful for a solution. The effect of this error is that my code then hangs forever the next time it tries to snd_pcm_open. Perhaps there is a way around this?
Thanks,
Fergus Reid
**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
Quoted 7 lines
Hi, this may well be nothing to do with alsa but I thought you may know what is happening.
If I make a system call from one thread whilst recording or playing in another thread using the alsa lib, then when I try tosnd_pcm_closeI get:Quoted 1 line
ALSA lib pcm_hw.c:145:(snd_pcm_hw_hw_free)
SNDRV_PCM_IOCTL_HW_FREEfailed: File >descriptor in bad state
i think we need to see code.
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31