OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

356 lines
12 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../esound/devfs.patch.disabled
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. --- ./docs/html/miscellaneous.html.orig Wed Mar 21 14:32:34 2001
  18. +++ ./docs/html/miscellaneous.html Wed Mar 21 14:32:34 2001
  19. @@ -138,7 +138,7 @@
  20. added network support
  21. - optional /dev/dsp fallback for stream play and record
  22. + optional /dev/sound/dsp fallback for stream play and record
  23. other forgotten features and bug fixes
  24. --- ./docs/html/planned-development.html.orig Wed Mar 21 14:32:34 2001
  25. +++ ./docs/html/planned-development.html Wed Mar 21 14:32:34 2001
  26. @@ -69,7 +69,7 @@
  27. ></H1
  28. ><P
  29. > Porting of more sound playing applications. For sound programs that
  30. - send their output to /dev/dsp, this is usually a trivial process.
  31. + send their output to /dev/sound/dsp, this is usually a trivial process.
  32. Anyone willing to lend a hand in this effort will be duly appreciated.
  33. </P
  34. ></DIV
  35. --- ./docs/esound.sgml.orig Wed Mar 21 14:32:33 2001
  36. +++ ./docs/esound.sgml Wed Mar 21 14:32:33 2001
  37. @@ -543,7 +543,7 @@
  38. added network support
  39. - optional /dev/dsp fallback for stream play and record
  40. + optional /dev/sound/dsp fallback for stream play and record
  41. other forgotten features and bug fixes
  42. @@ -586,7 +586,7 @@
  43. <para>
  44. Porting of more sound playing applications. For sound programs that
  45. - send their output to /dev/dsp, this is usually a trivial process.
  46. + send their output to /dev/sound/dsp, this is usually a trivial process.
  47. Anyone willing to lend a hand in this effort will be duly appreciated.
  48. </para>
  49. --- ./AUTHORS.orig Wed Mar 21 14:32:28 2001
  50. +++ ./AUTHORS Wed Mar 21 14:32:28 2001
  51. @@ -51,7 +51,7 @@
  52. Jimmy Olsen <jo@hrp.no>: hpux driver fixes
  53. Manish Singh <yosh@gimp.org>: misc autoconf hackery, the magic
  54. - /dev/dsp to esd rerouter.
  55. + /dev/sound/dsp to esd rerouter.
  56. Philippe Defert: aix driver fixes
  57. --- ./ChangeLog.orig Wed Mar 21 14:32:28 2001
  58. +++ ./ChangeLog Wed Mar 21 14:32:28 2001
  59. @@ -93,7 +93,7 @@
  60. 1999-10-11 Drazen Kacar <dave@srce.hr>
  61. - * audio_solaris.c: Don't spit warnings if /dev/audio doesn't
  62. + * audio_solaris.c: Don't spit warnings if /dev/sound/audio doesn't
  63. exist. User probably knows he doesn't have a sound card.
  64. 1999-10-06 Russell Steinthal <rms39@columbia.edu>
  65. @@ -345,8 +345,8 @@
  66. Mon Jan 25 03:16:30 PST 1999 Manish Singh <yosh@gimp.org>
  67. - * esddsp.c: added a /dev/mixer wrapper. Set ESDDSP_MIXER=1 to
  68. - for all /dev/mixer access to be trapped. It will save and load
  69. + * esddsp.c: added a /dev/sound/mixer wrapper. Set ESDDSP_MIXER=1 to
  70. + for all /dev/sound/mixer access to be trapped. It will save and load
  71. the mixer settings in ~/.esddsp.{name}.
  72. 1999-01-25 Yo Ric Dude <ericmit@ix.netcom.com>
  73. @@ -670,7 +670,7 @@
  74. * esddsp.c: somewhat of a rewrite. We only try to use esound
  75. if an open() fails. This lets the no esound case fall back to
  76. - /dev/dsp, and also doesn't do a strcmp on every call to open.
  77. + /dev/sound/dsp, and also doesn't do a strcmp on every call to open.
  78. Got rid of the varargs junk in ioctl, I've never seen an ioctl
  79. with more than one extra arg anyway (please tell me if I'm wrong).
  80. Reworked the code, so we're not so x11amp specific, i.e. the
  81. @@ -702,7 +702,7 @@
  82. 1998-10-17 Yo Ric Dude <ericmit@ix.netcom.com>
  83. * esddsp.c: added Yosh's slick trick for transparently
  84. - rerouting /dev/dsp to esd. Only tested with Linux and
  85. + rerouting /dev/sound/dsp to esd. Only tested with Linux and
  86. x11amp. Directions are in the source file for the brave.
  87. Sat Oct 17 02:20:42 PDT 1998 Manish Singh <yosh@gimp.org>
  88. @@ -1112,7 +1112,7 @@
  89. 1998-05-24 Yo 'Ric Dude <ericmit@ix.netcom.com>
  90. * clients.c, esd.c, esdlib.c:
  91. - added ability to free and reclaim /dev/dsp for use by other
  92. + added ability to free and reclaim /dev/sound/dsp for use by other
  93. programs, without invalidating any sample references within
  94. the daemon. sound output is consumed by daemon, and ignored
  95. until the daemon is resumed. created esd_lock() and esd_unlock()
  96. @@ -1154,7 +1154,7 @@
  97. Sat Apr 25 03:03:11 1998 Yo 'Ric Dude <ericmit@ix.netcom.com>
  98. * TODO, audio.c, clients.c, esd.h, esdcat.c, esdlib.c, esdrec.c:
  99. - added the /dev/dsp fallback feature to client lib
  100. + added the /dev/sound/dsp fallback feature to client lib
  101. Sat Apr 18 23:57:15 1998 Yo 'Ric Dude <ericmit@ix.netcom.com>
  102. --- ./NEWS.orig Wed Mar 21 14:32:28 2001
  103. +++ ./NEWS Wed Mar 21 14:32:29 2001
  104. @@ -11,7 +11,7 @@
  105. New Stuff in EsounD version 0.2:
  106. o esd_play_stream_fallback, esd_record_stream_fallback
  107. - - if default esd is not available, revert to /dev/dsp
  108. + - if default esd is not available, revert to /dev/sound/dsp
  109. for playback/record
  110. o esd_open_sound
  111. --- ./esddsp.in.orig Wed Mar 21 14:32:29 2001
  112. +++ ./esddsp.in Wed Mar 21 14:32:29 2001
  113. @@ -87,7 +87,7 @@
  114. echo "command line: $@"
  115. fi
  116. -# setup esd to hijack calls made to /dev/dsp
  117. +# setup esd to hijack calls made to /dev/sound/dsp
  118. prefix=@prefix@
  119. exec_prefix=@exec_prefix@
  120. libdir=@libdir@
  121. --- ./esddsp.c.orig Wed Mar 21 14:32:30 2001
  122. +++ ./esddsp.c Wed Mar 21 14:32:30 2001
  123. @@ -183,7 +183,7 @@
  124. mode = va_arg (args, mode_t);
  125. va_end (args);
  126. - if (!strcmp (pathname, "/dev/dsp"))
  127. + if (!strcmp (pathname, "/dev/sound/dsp"))
  128. {
  129. if (!getenv ("ESPEAKER"))
  130. {
  131. @@ -194,13 +194,13 @@
  132. return ret;
  133. }
  134. - DPRINTF ("hijacking /dev/dsp open, and taking it to esd...\n");
  135. + DPRINTF ("hijacking /dev/sound/dsp open, and taking it to esd...\n");
  136. settings = done = 0;
  137. return (sndfd = esd_open_sound (NULL));
  138. }
  139. - else if (use_mixer && !strcmp (pathname, "/dev/mixer"))
  140. + else if (use_mixer && !strcmp (pathname, "/dev/sound/mixer"))
  141. {
  142. - DPRINTF ("hijacking /dev/mixer open, and taking it to esd...\n");
  143. + DPRINTF ("hijacking /dev/sound/mixer open, and taking it to esd...\n");
  144. return (mixfd = (*func) (mixer, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR));
  145. }
  146. else
  147. @@ -215,7 +215,7 @@
  148. int *arg = (int *) argp;
  149. - DPRINTF ("hijacking /dev/dsp ioctl, and sending it to esd "
  150. + DPRINTF ("hijacking /dev/sound/dsp ioctl, and sending it to esd "
  151. "(%d : %x - %p)\n", fd, request, argp);
  152. switch (request)
  153. @@ -262,7 +262,7 @@
  154. default:
  155. - DPRINTF ("unhandled /dev/dsp ioctl (%x - %p)\n", request, argp);
  156. + DPRINTF ("unhandled /dev/sound/dsp ioctl (%x - %p)\n", request, argp);
  157. break;
  158. }
  159. @@ -310,7 +310,7 @@
  160. int *arg = (int *) argp;
  161. - DPRINTF ("hijacking /dev/mixer ioctl, and sending it to esd "
  162. + DPRINTF ("hijacking /dev/sound/mixer ioctl, and sending it to esd "
  163. "(%d : %x - %p)\n", fd, request, argp);
  164. switch (request)
  165. @@ -369,7 +369,7 @@
  166. break;
  167. default:
  168. - DPRINTF ("unhandled /dev/mixer ioctl (%x - %p)\n", request, argp);
  169. + DPRINTF ("unhandled /dev/sound/mixer ioctl (%x - %p)\n", request, argp);
  170. break;
  171. }
  172. --- ./esdlib.c.orig Wed Mar 21 14:32:30 2001
  173. +++ ./esdlib.c Wed Mar 21 14:32:30 2001
  174. @@ -814,7 +814,7 @@
  175. if ( host )
  176. return -1;
  177. - /* go for /dev/dsp */
  178. + /* go for /dev/sound/dsp */
  179. esd_audio_format = format;
  180. esd_audio_rate = rate;
  181. socket_out = esd_audio_open();
  182. @@ -1079,7 +1079,7 @@
  183. if ( host )
  184. return -1;
  185. - /* go for /dev/dsp */
  186. + /* go for /dev/sound/dsp */
  187. esd_audio_format = format;
  188. esd_audio_rate = rate;
  189. socket_out = esd_audio_open();
  190. --- ./audio.c.orig Wed Mar 21 14:32:30 2001
  191. +++ ./audio.c Wed Mar 21 14:32:30 2001
  192. @@ -12,9 +12,9 @@
  193. /* globals */
  194. esd_format_t esd_audio_format = ESD_BITS16 | ESD_STEREO;
  195. int esd_audio_rate = ESD_DEFAULT_RATE;
  196. -char *esd_audio_device = NULL; /* aux device spec: /dev/dsp2, lineout, etc. */
  197. +char *esd_audio_device = NULL; /* aux device spec: /dev/sound/dsp2, lineout, etc. */
  198. -/* the audio device, /dev/dsp, file descriptor */
  199. +/* the audio device, /dev/sound/dsp, file descriptor */
  200. static int esd_audio_fd = -1;
  201. /*******************************************************************/
  202. --- ./audio_hpux.c.orig Wed Mar 21 14:32:31 2001
  203. +++ ./audio_hpux.c Wed Mar 21 14:32:31 2001
  204. @@ -10,7 +10,7 @@
  205. #define ARCH_esd_audio_open
  206. int esd_audio_open()
  207. {
  208. - const char *device = "/dev/audio";
  209. + const char *device = "/dev/sound/audio";
  210. int afd = -1;
  211. int mode = O_WRONLY;
  212. --- ./audio_oss.c.orig Wed Mar 21 14:32:31 2001
  213. +++ ./audio_oss.c Wed Mar 21 14:32:31 2001
  214. @@ -19,7 +19,7 @@
  215. #define ARCH_esd_audio_devices
  216. const char *esd_audio_devices()
  217. {
  218. - return "/dev/dsp, /dev/dsp2, etc.";
  219. + return "/dev/sound/dsp, /dev/sound/dsp2, etc.";
  220. }
  221. @@ -38,7 +38,7 @@
  222. mode |= O_NONBLOCK;
  223. /* open the sound device */
  224. - device = esd_audio_device ? esd_audio_device : "/dev/dsp";
  225. + device = esd_audio_device ? esd_audio_device : "/dev/sound/dsp";
  226. if ((afd = open(device, mode, 0)) == -1)
  227. { /* Opening device failed */
  228. perror(device);
  229. --- ./audio_mklinux.c.orig Wed Mar 21 14:32:31 2001
  230. +++ ./audio_mklinux.c Wed Mar 21 14:32:31 2001
  231. @@ -11,7 +11,7 @@
  232. #define ARCH_esd_audio_open
  233. int esd_audio_open()
  234. {
  235. - const char *device = "/dev/dsp";
  236. + const char *device = "/dev/sound/dsp";
  237. int afd = -1, value = 0, test = 0;
  238. int mode = O_WRONLY;
  239. --- ./audio_solaris.c.orig Mon Sep 10 02:56:35 2001
  240. +++ ./audio_solaris.c Fri Oct 5 12:42:32 2001
  241. @@ -19,7 +19,7 @@
  242. /* if you want to confirm proper device setup, uncomment the following line */
  243. /* #define ESDBG_DRIVER */
  244. -static char *default_device = "/dev/audio";
  245. +static char *default_device = "/dev/sound/audio";
  246. static char *my_ports = NULL;
  247. --- ./esd.c.orig Wed Mar 21 14:32:31 2001
  248. +++ ./esd.c Wed Mar 21 14:32:31 2001
  249. @@ -620,7 +620,7 @@
  250. esd_audio_rate = default_rate;
  251. ESD_AUDIO_STUFF;
  252. - /* open and initialize the audio device, /dev/dsp */
  253. + /* open and initialize the audio device, /dev/sound/dsp */
  254. itmp = esd_audio_open();
  255. if (itmp == -2) { /* Special return value indicates open of device failed, don't bother
  256. trying */
  257. --- ./esd.h.orig Wed Mar 21 14:32:32 2001
  258. +++ ./esd.h Wed Mar 21 14:32:32 2001
  259. @@ -53,9 +53,9 @@
  260. ESD_PROTO_SAMPLE_STOP, /* stop a looping sample when done */
  261. ESD_PROTO_SAMPLE_KILL, /* stop the looping sample immed. */
  262. - /* free and reclaim /dev/dsp functionality */
  263. - ESD_PROTO_STANDBY, /* release /dev/dsp and ignore all data */
  264. - ESD_PROTO_RESUME, /* reclaim /dev/dsp and play sounds again */
  265. + /* free and reclaim /dev/sound/dsp functionality */
  266. + ESD_PROTO_STANDBY, /* release /dev/sound/dsp and ignore all data */
  267. + ESD_PROTO_RESUME, /* reclaim /dev/sound/dsp and play sounds again */
  268. /* TODO: move these to a more logical place. NOTE: will break the protocol */
  269. ESD_PROTO_SAMPLE_GETID, /* get the ID for an already-cached sample */
  270. @@ -141,7 +141,7 @@
  271. int esd_resume( int esd );
  272. /* open a socket for playing, monitoring, or recording as a stream */
  273. -/* the *_fallback functions try to open /dev/dsp if there's no EsounD */
  274. +/* the *_fallback functions try to open /dev/sound/dsp if there's no EsounD */
  275. int esd_play_stream( esd_format_t format, int rate,
  276. const char *host, const char *name );
  277. int esd_play_stream_fallback( esd_format_t format, int rate,
  278. --- ./TIPS.orig Wed Mar 21 14:32:33 2001
  279. +++ ./TIPS Wed Mar 21 14:32:33 2001
  280. @@ -47,7 +47,7 @@
  281. To make sure the recoding works, try this WITHOUT esd running:
  282. -dd bs=8k count=4 </dev/audio > sample.au
  283. +dd bs=8k count=4 </dev/sound/audio > sample.au
  284. Cthugha - An Oscilloscope on Acid
  285. @@ -60,7 +60,7 @@
  286. esdmon > /tmp/cthugha.com
  287. NOTE: xcthugha may complain about:
  288. -Can't open `/dev/dsp' for writing. (16 - Device or resource busy)
  289. +Can't open `/dev/sound/dsp' for writing. (16 - Device or resource busy)
  290. No problem, keep on truckin'. esd gets the sound device, and
  291. cthugha gets the data it needs.