Skip to contentSkip to conversation

error: broken pipe

DISCUSSION Christian Konrad 3 participants 7 messages May 14, 2005 – May 15, 2005

lore
Share & tools
lore
#0 lore raw

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).

Thank you a lot. Christian

-------------------------------------------------------
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

#1 lore raw
Quoted 20 lines · Christian Konrad

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);
}
Quoted 1 line

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 <[email protected]>
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

#2 lore raw

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

Quoted 27 lines · Jaroslav Kysela
Quoted 20 lines · Christian Konrad

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);
}
Quoted 1 line

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.

Quoted 7 lines

Jaroslav

-----
Jaroslav Kysela <[email protected]>
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

#3 lore raw
In reply to Jaroslav Kysela

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jaroslav Kysela
Sent: Sunday, May 15, 2005 5:02 AM
To: Christian Konrad
Cc: [email protected]
Subject: Re: [Alsa-devel] error: broken pipe

Quoted 20 lines · Christian Konrad

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);
}
Quoted 1 line

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 <[email protected]>
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
_______________________________________________
Alsa-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
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_ids93&alloc_id281&op=click

#4 lore raw
In reply to Jaroslav Kysela

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jaroslav Kysela
Sent: Sunday, May 15, 2005 5:02 AM
To: Christian Konrad
Cc: [email protected]
Subject: Re: [Alsa-devel] error: broken pipe

Quoted 20 lines · Christian Konrad

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);
}
Quoted 1 line

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 <[email protected]>
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
_______________________________________________
Alsa-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
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_ids93&alloc_id281&op=click

#5 lore raw
In reply to Jaroslav Kysela

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jaroslav Kysela
Sent: Sunday, May 15, 2005 5:02 AM
To: Christian Konrad
Cc: [email protected]
Subject: Re: [Alsa-devel] error: broken pipe

Quoted 20 lines · Christian Konrad

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);
}
Quoted 1 line

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 <[email protected]>
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
_______________________________________________
Alsa-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
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_ids93&alloc_id281&op=click

#6 lore raw
In reply to Jaroslav Kysela

Thanks for that. I've also been getting "Broken Pipe" messages. I suspected that it was due to overruns (my application is a capture application). For now I've been ignoring return values and have been concentrating on getting the thing to work. I see that I'll need to handle the return value, even though in my particular application I can simply ignore overruns.

Oh, and sorry for those spurious blank messages. Somehow my e-mail client settings were accidentally changed and those were sent inadvertently.

Robert Henry

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jaroslav Kysela
Sent: Sunday, May 15, 2005 5:02 AM
To: Christian Konrad
Cc: [email protected]
Subject: Re: [Alsa-devel] error: broken pipe

Quoted 20 lines · Christian Konrad

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);
}
Quoted 1 line

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 <[email protected]>
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
_______________________________________________
Alsa-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
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_ids93&alloc_id281&op=click