mirror of
https://github.com/openharmony/third_party_tinyalsa.git
synced 2026-07-19 15:24:22 -04:00
removed debug statement
This commit is contained in:
@@ -587,13 +587,9 @@ int pcm_readi(struct pcm *pcm, void *data, unsigned int frame_count)
|
||||
x.frames = frame_count;
|
||||
x.result = 0;
|
||||
for (;;) {
|
||||
if (!pcm->running) {
|
||||
if (pcm_start(pcm) < 0) {
|
||||
fprintf(stderr, "start error");
|
||||
return -errno;
|
||||
}
|
||||
}
|
||||
if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_READI_FRAMES, &x)) {
|
||||
if ((!pcm->running) && (pcm_start(pcm) < 0))
|
||||
return -errno;
|
||||
else if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_READI_FRAMES, &x)) {
|
||||
pcm->prepared = 0;
|
||||
pcm->running = 0;
|
||||
if (errno == EPIPE) {
|
||||
|
||||
Reference in New Issue
Block a user