All of lore.kernel.org
 help / color / mirror / Atom feed
* possible ALSA bug/feature (was: important recording broke. why?) (fwd)
@ 2003-03-21 14:16 Kai Vehmanen
  2003-03-22 21:43 ` Laurent Georget
  2003-03-25 18:01 ` Takashi Iwai
  0 siblings, 2 replies; 16+ messages in thread
From: Kai Vehmanen @ 2003-03-21 14:16 UTC (permalink / raw)
  To: alsa-devel; +Cc: The Eye

Hi,

first please read the mail to ecasound-list below. 

It seems that with newer ALSA versions, snd_pcm_read[in]()  sometimes
returns -EIO even though documentation says nothing about this. After some
testing this seems to not happen on direct hw-access, only with
the pcm_plugin. The EIO comes from snd_pcm_wait(). 

Is this a bug or or a feature?

Btw; the error does not seem to be critical. If I handle
     the EIO the same way as EPIPE (i.e. run xrun 
     handling code), the recording will continue fine.

---------- Forwarded message ----------
Date: Fri, 21 Mar 2003 12:45:53 +0000
From: The Eye <the.eye@gmx.li>
Reply-To: ecasound-list@wakkanet.fi
To: ecasound-list@wakkanet.fi
Subject: [ecasound] important recording broke. why?

Yesterday I had an important recording (a radio-show I did) ... I had it
scheduled via at, the same command I always use, i.e.
ecasound -b:2048 -z:intbuf -z:db,200000 -r -ev -t:8400 -f:s16_le,2,44100 
-i:alsa,default -o:laermraw.raw


OK, this has always worked ... now I read my mails today, and what do I
see in my inbox? the following:
****************************************************************************
*               ecasound v2.2.2-pre1 (C) 1997-2003 Kai Vehmanen                
****************************************************************************
- [ Session created ] ------------------------------------------------------
- [ Chainsetup created (cmdline) ] -----------------------------------------
(eca-chainsetup-parser) Setting buffersize to (samples) 2048.
(eca-chainsetup-parser) Enabling extra buffering on realtime devices.
(eca-chainsetup-parser) Using double-buffer of 200000 sample frames.
(eca-chainsetup) Raised-priority mode enabled. (prio:50)
(eca-chainsetup-parser) Set processing time to 8400.00.
- [ Connecting chainsetup ] ------------------------------------------------
(eca-chainsetup) 'rt' buffering mode selected.
(eca-chainsetup) Audio object "alsa", mode "read".
(audio-io) Format: s16_le, channels 2, srate 44100, interleaved.
(eca-chainsetup) Audio object "laermraw.raw", mode "read/write".
(audio-io) Format: s16_le, channels 2, srate 44100, interleaved.
- [ Chainsetup connected ] -------------------------------------------------
(eca-controller) Connected chainsetup:  "command-line-setup".
- [ Controller/Starting batch processing ] ---------------------------------
- [ Engine init - Driver start ] -------------------------------------------
(eca-engine) Prefilling i/o buffers.
(audioio-alsa) warning! playback overrun - samples lost!  Break was at least 
0.05 ms long.
(audioio-alsa) Read error! Stopping operation.
Warning: DBC_REQUIRE failed - "samples_read >= 0", samplebuffer.cpp, 757.
sh: line 61:  2821 Segmentation fault      ecasound -b:2048 -z:intbuf 
-z:db,200000 -r -ev -t:8400 -f:s16_le,2,44100 -i:alsa,default -o:laermraw.raw



is this a bug? btw this happened after approx. 2 minutes of recording ..

since I myself wasn't present (I was in the studio, doing the radio show
that should have been recorded), the recording is of course lost .. darn!

-- 
Michael Hellwig  aka  The Eye                 olymp.idle.at admin
check out http://homepage.uibk.ac.at/~csaa5128 for gpg public key
        and don't hesitate to look at http://laerm.or.at

--
To unsubscribe send message 'unsubscribe' in the body of the
message to <ecasound-list-request@wakkanet.fi>.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2003-03-28 17:15 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-21 14:16 possible ALSA bug/feature (was: important recording broke. why?) (fwd) Kai Vehmanen
2003-03-22 21:43 ` Laurent Georget
2003-03-25 18:01 ` Takashi Iwai
     [not found]   ` <3E80CB2E.7070204@club-internet.fr>
     [not found]     ` <s5hznnio0ml.wl@alsa2.suse.de>
2003-03-26 20:53       ` Laurent Georget
2003-03-27 11:27         ` Mono to stereo ? Giuliano Pochini
2003-03-27 11:43           ` Paul Davis
2003-03-28  3:14             ` Manuel Jander
2003-03-28  2:46               ` Paul Davis
2003-03-28  9:21                 ` Giuliano Pochini
2003-03-28 10:02               ` Takashi Iwai
2003-03-28 10:14                 ` Jaroslav Kysela
2003-03-28 16:21                 ` Jeff Muizelaar
2003-03-28 16:43                   ` Takashi Iwai
2003-03-28 17:15                     ` Jeff Muizelaar
2003-03-27  0:42   ` possible ALSA bug/feature (was: important recording broke. why?) (fwd) Kai Vehmanen
2003-03-27  9:15     ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.