From: christian konrad Subject: Re: error: broken pipe Date: Sun, 15 May 2005 12:20:54 +0200 Message-ID: <1116152454.4787.6.camel@delux> References: <1116089623.8003.2.camel@latitude> Reply-To: konrad@in.tum.de Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Hi! Thank you. But how can I fix that problem? What is the reason for the error "broken pipe"? I recognized that the same error occures when I use PD. PD also tells "broken pipe". Is there perhaps an error on the driver-level? My soundcard: 0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50) So I use the: snd_via82xx module. Do you know wheater there are any known problems with the card or the driver? Thank you. Christian On Sun, 2005-05-15 at 11:01 +0200, Jaroslav Kysela wrote: > On Sat, 14 May 2005, Christian Konrad wrote: > > > Hi! > > > > what exactly does this error mean? This is just a sine-genrator and it > > uses the following code: > > > > while( (pcmreturn = snd_pcm_writei(pcm_handle, data, frames)) < 0) > > { > > > > switch(pcmreturn) > > { > > case EBADFD: cout << "EBADFD" << endl; break; > > case EPIPE: cout << "Buffer underrun." << endl; break; > > case ESTRPIPE: cout << "suspend. " << endl; break; > > default: cout << snd_strerror(pcmreturn) << endl; > > } > > > > > > snd_pcm_prepare(pcm_handle); > > } > > > > The only error I get is broken pipe (returned by snd_strerror). > > It's correct. You should check for negative values (e.g. -EPIPE) in your > switch statement. > > Jaroslav > > ----- > Jaroslav Kysela > Linux Kernel Sound Maintainer > ALSA Project, SUSE Labs > ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click