AM3517 arm linux 驱动 realtek的alc5621后,设备文件/dev/snd有了controlC0 pcmC0D0c pcmC0D0p timer, 但在执行 cat high.wav > /dev/snd/pcmC0D0p时, 提示cat: write error: File descriptor in bad state。 用的瑞泰的开发板,他用的TI tlv320aic23,驱动是正确的,但还是有这样的提示。 cat high.wav...
Breaks the loop if the error is not one of the only three recoverable (EINTR,EPIPE,ESTRPIPE). Example log: <W>2025-01-14 06:16:44.494 ALSAAudioInput: File descriptor in bad state, breaking the loop... Please note that alsoALSAAudioOutputdoesn't explicitly handle fatal errors in its loo...
audio_alsa_sink[hw:0,0]: snd_pcm_hw_params failed: File descriptor in bad state terminate called after throwing an instance of 'std::runtime_error' what(): check topology failed on audio_alsa_sink(1) using ninputs=1, noutputs=0 Following this suggestion, we can prevent this from hap...
// substreams of this PCM device are opened by others. fd =open(fn, O_RDWR | O_NONBLOCK); if(fd <0) { free(hw_data); returnfd; } if((flags & PCM_NONBLOCK) ==0) { // Set the file descriptor to blocking mode. if(fcntl(fd, F_SETFL,fcntl(fd, F_GETFL) & ~O_NONBLOCK) ...
(n == -EBADFD) { // Somehow the stream is in a bad state. The driver probably // has a bug and snd_pcm_recover() doesn't seem to handle this. mHandle->module->open(mHandle, mHandle->curDev, mHandle->curMode); if (aDev && aDev->recover) aDev->recover(aDev, n); } ...
虽然都是linux,芯片也是基于同样的架构,同样的指令集,但是考虑到芯片的实现毕竟是不同的,于是所有涉及...
// Somehow the stream is in a bad state. The driver probably // has a bug and snd_pcm_recover() doesn't seem to handle this. mHandle->module->open(mHandle, mHandle->curDev, mHandle->curMode); if (aDev && aDev->recover) aDev->recover(aDev, n); ...
("openOutputStream called for devices: 0x%08x", devices); status_t err = BAD_VALUE; AudioStreamOutALSA *out = 0; if (devices & (devices - 1)) { if (status) *status = err; LOGD("openOutputStream called with bad devices"); return out; } // Find the appropriate alsa device for...
提示cat: write error: File descriptor in bad state。 用的瑞泰的开发板,他用的TI tlv320aic23,驱动是正确的,但还是有这样的提示。 cat high.wav > /dev/snd/pcmC0D0p怎么会有问题呢?我应该如何测试音频? 希望各位能帮助一下我。任何发言都有可能对我有益。谢谢。
> meaning: "File descriptor in bad state" (whoever sneaked in this > translation...) (well, good to learn german, at least ;) thanks for check. can you hear a clear sound with aplay -M ? Takashi --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge...