mirror of the now-defunct rocklinux.org
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.

361 lines
12 KiB

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