]> git.pld-linux.org Git - packages/amp.git/commitdiff
- patch for using amp on ppc arch
authormarcus <marcus@pld-linux.org>
Tue, 27 Aug 2002 16:50:03 +0000 (16:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    amp-ppc.patch -> 1.1

amp-ppc.patch [new file with mode: 0644]

diff --git a/amp-ppc.patch b/amp-ppc.patch
new file mode 100644 (file)
index 0000000..c996e0b
--- /dev/null
@@ -0,0 +1,15 @@
+diff -uNr amp-0.7.6.orig/audioIO_Linux.c amp-0.7.6/audioIO_Linux.c
+--- amp-0.7.6.orig/audioIO_Linux.c     Sat May 31 19:47:58 1997
++++ amp-0.7.6/audioIO_Linux.c  Tue Aug 27 18:45:51 2002
+@@ -47,9 +47,10 @@
+       if ((audio_fd = open ("/dev/dsp", O_WRONLY, 0)) == -1)
+               die("Unable to open the audio device\n");
+       DB(audio, msg("Audio device opened on %d\n",audio_fd); )
+-
++#if defined(LINUX) && !defined(__powerpc__)
+       if (ioctl(audio_fd, SNDCTL_DSP_SETFMT,&play_format) < 0)
+               die("Unable to set required audio format\n");
++#endif
+       if ((mixer_fd=open("/dev/mixer",O_RDWR)) == -1)
+               warn("Unable to open mixer device\n");
+       DB(audio, msg("Mixer device opened on %d\n",mixer_fd) );
This page took 0.118048 seconds and 4 git commands to generate.