From d5f25ce71f88318db7a7f49425550c6670648437 Mon Sep 17 00:00:00 2001
From: Joseph Jezak <josejx@gentoo.org>
Date: Sun, 6 Mar 2005 02:00:06 +0000
Subject: Added bigendian patch. See bug #76409. Package-Manager:
 portage-2.0.51.19

---
 .../alsaplayer/files/alsaplayer-endian.patch       | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 media-sound/alsaplayer/files/alsaplayer-endian.patch

(limited to 'media-sound/alsaplayer/files')

diff --git a/media-sound/alsaplayer/files/alsaplayer-endian.patch b/media-sound/alsaplayer/files/alsaplayer-endian.patch
new file mode 100644
index 000000000000..c42deefeca6c
--- /dev/null
+++ b/media-sound/alsaplayer/files/alsaplayer-endian.patch
@@ -0,0 +1,34 @@
+--- output/alsa-final/alsa.c.old	2004-12-23 13:20:52.238347728 +0900
++++ output/alsa-final/alsa.c	2004-12-23 13:21:15.998735600 +0900
+@@ -173,9 +173,9 @@
+ 		goto _err;
+ 	}	
+ 	err = snd_pcm_hw_params_set_format(sound_handle, hwparams,
+-					   SND_PCM_FORMAT_S16_LE);
++					   SND_PCM_FORMAT_S16);
+ 	if (err < 0) {
+-		puts("error on set_format SND_PCM_FORMAT_S16_LE");
++		puts("error on set_format SND_PCM_FORMAT_S16");
+ 		goto _err;
+ 	}
+ 	val = output_rate;
+--- output/alsa-0.5.x/alsa.old	2004-12-23 14:32:41.420252504 +0900
++++ output/alsa-0.5.x/alsa.c	2004-12-23 14:33:07.996212344 +0900
+@@ -121,7 +121,7 @@
+ 	params.buf.block.frags_min = 1;
+ 
+ 	memset(&format, 0, sizeof(format));
+-	format.format =  SND_PCM_SFMT_S16_LE;
++	format.format =  SND_PCM_SFMT_S16;
+ 	format.rate = output_rate;
+ 	format.voices = *channels;
+ 	format.interleave = 1;
+@@ -166,7 +166,7 @@
+ 	params.start_mode = SND_PCM_START_FULL;
+ 	params.stop_mode = SND_PCM_STOP_STOP;
+ 	memset(&format, 0, sizeof(format));
+-	format.format =  SND_PCM_SFMT_S16_LE;
++	format.format =  SND_PCM_SFMT_S16;
+ 	format.rate = output_rate = rate;
+ 	format.voices = 2;
+ 	format.interleave = 1;
-- 
cgit v1.2.3-65-gdbad