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.

294 lines
9.4 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/x11/xanim/devfs.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./docs/Rev_History.doc.orig Wed Mar 21 14:33:32 2001
  20. +++ ./docs/Rev_History.doc Wed Mar 21 14:33:32 2001
  21. @@ -244,7 +244,7 @@
  22. This caused potential core dumps.
  23. + HPDEV: setting sampling rate occasionally failed because
  24. - /dev/audio reported it was busy. Now loop on that.
  25. + /dev/sound/audio reported it was busy. Now loop on that.
  26. -------------------------------------------------------------------------
  27. 2.70.5 (04Apr96)
  28. --- ./xa_audio.c.orig Wed Mar 21 14:33:25 2001
  29. +++ ./xa_audio.c Wed Mar 21 14:33:26 2001
  30. @@ -554,7 +554,7 @@
  31. /********** Sparc_Audio_Init **********************
  32. - * Open /dev/audio and /dev/audioctl for Sparc's.
  33. + * Open /dev/sound/audio and /dev/sound/audioctl for Sparc's.
  34. *
  35. *****/
  36. void Sparc_Audio_Init()
  37. @@ -566,7 +566,7 @@
  38. #endif
  39. DEBUG_LEVEL2 fprintf(stderr,"Sparc_Audio_Init\n");
  40. if (xa_audio_present != XA_AUDIO_UNK) return;
  41. - devAudio = open("/dev/audio", O_WRONLY | O_NDELAY);
  42. + devAudio = open("/dev/sound/audio", O_WRONLY | O_NDELAY);
  43. if (devAudio == -1)
  44. {
  45. if (errno == EBUSY) fprintf(stderr,"Audio_Init: Audio device is busy. - ");
  46. @@ -665,7 +665,7 @@
  47. }
  48. /********** Sparc_Audio_Kill **********************
  49. - * Close /dev/audio and /dev/audioctl.
  50. + * Close /dev/sound/audio and /dev/sound/audioctl.
  51. *
  52. *****/
  53. void Sparc_Audio_Kill()
  54. @@ -1410,7 +1410,7 @@
  55. /********** EWS_Audio_Init **********************
  56. - * Open /dev/audio/audio on EWS.
  57. + * Open /dev/sound/audio/audio on EWS.
  58. *
  59. *****/
  60. void EWS_Audio_Init()
  61. @@ -1427,7 +1427,7 @@
  62. * It doesn't support FLUSH, or any of the other funky Sparc ioctls
  63. */
  64. if (xa_audio_present != XA_AUDIO_UNK) return;
  65. - devAudio = open("/dev/audio/audio", O_WRONLY | O_NDELAY);
  66. + devAudio = open("/dev/sound/audio/audio", O_WRONLY | O_NDELAY);
  67. if (devAudio == -1)
  68. {
  69. if (errno == EBUSY) fprintf(stderr,"Audio_Init: Audio device is busy. - ");
  70. @@ -1462,7 +1462,7 @@
  71. }
  72. /********** EWS_Audio_Kill **********************
  73. - * Close /dev/audio/audio
  74. + * Close /dev/sound/audio/audio
  75. *
  76. *****/
  77. void EWS_Audio_Kill()
  78. @@ -2138,7 +2138,7 @@
  79. devMixer = open(_FILE_MIXER, O_RDONLY | O_NDELAY, 0);
  80. /* Mixer only present on SB Pro's and above */
  81. /* if not present then it's set to -1 and ignored later */
  82. - /* THOUGHT: what about doing mixer ioctl to the /dev/dsp device??? */
  83. + /* THOUGHT: what about doing mixer ioctl to the /dev/sound/dsp device??? */
  84. if (devMixer < 0) devMixer = devAudio;
  85. /* determine what volume settings exist */
  86. { int devices;
  87. @@ -3108,14 +3108,14 @@
  88. }
  89. /********** HPDEV_Audio_Init ***************************************************
  90. - * open /dev/audio and init
  91. + * open /dev/sound/audio and init
  92. *****/
  93. void HPDEV_Audio_Init()
  94. {
  95. DEBUG_LEVEL2 fprintf(stderr,"HPDEV_Audio_Init\n");
  96. if (xa_audio_present != XA_AUDIO_UNK) return;
  97. - if ((devAudio = open ("/dev/audio", O_WRONLY | O_NDELAY, 0)) < 0)
  98. + if ((devAudio = open ("/dev/sound/audio", O_WRONLY | O_NDELAY, 0)) < 0)
  99. {
  100. if (errno == EBUSY) fprintf(stderr,"Audio_Init: Audio device is busy. - ");
  101. else fprintf(stderr,"Audio_Init: Error opening audio device. - ");
  102. @@ -3127,10 +3127,10 @@
  103. fcntl(devAudio,F_SETFL,O_NDELAY);
  104. - /* Get description of /dev/audio: */
  105. + /* Get description of /dev/sound/audio: */
  106. if (ioctl (devAudio, AUDIO_DESCRIBE, &audioDesc))
  107. {
  108. - perror ("ioctl AUDIO_DESCRIBE on /dev/audio");
  109. + perror ("ioctl AUDIO_DESCRIBE on /dev/sound/audio");
  110. xa_audio_present = XA_AUDIO_ERR;
  111. return;
  112. }
  113. @@ -3143,20 +3143,20 @@
  114. if (ioctl (devAudio, AUDIO_SET_DATA_FORMAT, AUDIO_FORMAT_LINEAR16BIT))
  115. {
  116. - perror ("ioctl AUDIO_SET_DATA_FORMAT on /dev/audio");
  117. + perror ("ioctl AUDIO_SET_DATA_FORMAT on /dev/sound/audio");
  118. xa_audio_present = XA_AUDIO_ERR;
  119. return;
  120. }
  121. if (ioctl (devAudio, AUDIO_SET_CHANNELS, 1))
  122. {
  123. - perror ("ioctl AUDIO_SET_CHANNELS on /dev/audio");
  124. + perror ("ioctl AUDIO_SET_CHANNELS on /dev/sound/audio");
  125. xa_audio_present = XA_AUDIO_ERR;
  126. return;
  127. }
  128. /* set device internal buffer size: */
  129. if (ioctl (devAudio, AUDIO_SET_TXBUFSIZE, 16 * 1024))
  130. - perror ("ioctl AUDIO_SET_TXBUFSIZE on /dev/audio");
  131. + perror ("ioctl AUDIO_SET_TXBUFSIZE on /dev/sound/audio");
  132. xa_interval_id = 0;
  133. xa_audio_present = XA_AUDIO_OK;
  134. @@ -3188,7 +3188,7 @@
  135. xa_audio_status = XA_AUDIO_STOPPED;
  136. if (ioctl (devAudio, AUDIO_DRAIN, 0))
  137. - perror ("ioctl AUDIO_DRAIN on /dev/audio");
  138. + perror ("ioctl AUDIO_DRAIN on /dev/sound/audio");
  139. xa_time_audio = -1;
  140. xa_audio_flushed = 0;
  141. @@ -3210,7 +3210,7 @@
  142. {
  143. do { ret = ioctl(devAudio, AUDIO_SET_SAMPLE_RATE, xa_snd_cur->hfreq);
  144. } while( (ret < 0) && (errno == EBUSY) );
  145. - if (ret < 0) perror ("ioctl AUDIO_SET_SAMPLE_RATE on /dev/audio");
  146. + if (ret < 0) perror ("ioctl AUDIO_SET_SAMPLE_RATE on /dev/sound/audio");
  147. xa_audio_hard_freq = xa_snd_cur->hfreq;
  148. }
  149. @@ -3273,7 +3273,7 @@
  150. if (ioctl (devAudio, AUDIO_GET_OUTPUT, &output_channel))
  151. {
  152. - perror ("ioctl AUDIO_GET_OUTPUT on /dev/audio");
  153. + perror ("ioctl AUDIO_GET_OUTPUT on /dev/sound/audio");
  154. output_channel = 0;
  155. }
  156. switch (flag)
  157. @@ -3286,7 +3286,7 @@
  158. output_channel ^= AUDIO_OUT_SPEAKER;
  159. }
  160. if (ioctl (devAudio, AUDIO_SET_OUTPUT, output_channel))
  161. - perror ("ioctl AUDIO_SET_OUTPUT on /dev/audio");
  162. + perror ("ioctl AUDIO_SET_OUTPUT on /dev/sound/audio");
  163. }
  164. /********** HPDEV_Headphone_Toggle **********************
  165. @@ -3302,7 +3302,7 @@
  166. if (ioctl (devAudio, AUDIO_GET_OUTPUT, &output_channel))
  167. {
  168. - perror ("ioctl AUDIO_GET_OUTPUT on /dev/audio");
  169. + perror ("ioctl AUDIO_GET_OUTPUT on /dev/sound/audio");
  170. output_channel = 0;
  171. }
  172. switch (flag)
  173. @@ -3315,7 +3315,7 @@
  174. output_channel ^= AUDIO_OUT_HEADPHONE;
  175. }
  176. if (ioctl (devAudio, AUDIO_SET_OUTPUT, output_channel))
  177. - perror ("ioctl AUDIO_SET_OUTPUT on /dev/audio");
  178. + perror ("ioctl AUDIO_SET_OUTPUT on /dev/sound/audio");
  179. }
  180. /********** HPDEV_LineOut_Toggle **********************
  181. @@ -3331,7 +3331,7 @@
  182. if (ioctl (devAudio, AUDIO_GET_OUTPUT, &output_channel))
  183. {
  184. - perror ("ioctl AUDIO_GET_OUTPUT on /dev/audio");
  185. + perror ("ioctl AUDIO_GET_OUTPUT on /dev/sound/audio");
  186. output_channel = 0;
  187. }
  188. switch (flag)
  189. @@ -3344,7 +3344,7 @@
  190. output_channel ^= AUDIO_OUT_LINE;
  191. }
  192. if (ioctl (devAudio, AUDIO_SET_OUTPUT, output_channel))
  193. - perror ("ioctl AUDIO_SET_OUTPUT on /dev/audio");
  194. + perror ("ioctl AUDIO_SET_OUTPUT on /dev/sound/audio");
  195. }
  196. /********** HPDEV_Adjust_Volume **********************
  197. @@ -3361,19 +3361,19 @@
  198. if (ioctl (devAudio, AUDIO_DESCRIBE, &description))
  199. {
  200. - perror ("ioctl AUDIO_DESCRIBE on /dev/audio");
  201. + perror ("ioctl AUDIO_DESCRIBE on /dev/sound/audio");
  202. return;
  203. }
  204. if (ioctl (devAudio, AUDIO_GET_GAINS, &gains))
  205. {
  206. - perror ("ioctl AUDIO_GET_GAINS on /dev/audio");
  207. + perror ("ioctl AUDIO_GET_GAINS on /dev/sound/audio");
  208. return;
  209. }
  210. gains.transmit_gain = (int)((float)description.min_transmit_gain +
  211. (float)(description.max_transmit_gain
  212. - description.min_transmit_gain) * floatvolume);
  213. if (ioctl (devAudio, AUDIO_SET_GAINS, &gains))
  214. - perror ("ioctl AUDIO_SET_GAINS on /dev/audio");
  215. + perror ("ioctl AUDIO_SET_GAINS on /dev/sound/audio");
  216. }
  217. #endif
  218. @@ -4637,7 +4637,7 @@
  219. /********** NetBSD_Audio_Init **********************
  220. - * Open /dev/audio and NetBSD.
  221. + * Open /dev/sound/audio and NetBSD.
  222. *
  223. *****/
  224. void NetBSD_Audio_Init()
  225. @@ -4646,7 +4646,7 @@
  226. audio_info_t a_info;
  227. DEBUG_LEVEL2 fprintf(stderr,"NetBSD_Audio_Init\n");
  228. if (xa_audio_present != XA_AUDIO_UNK) return;
  229. - devAudio = open("/dev/audio", O_WRONLY | O_NDELAY);
  230. + devAudio = open("/dev/sound/audio", O_WRONLY | O_NDELAY);
  231. if (devAudio == -1)
  232. {
  233. if (errno == EBUSY) fprintf(stderr,"Audio_Init: Audio device is busy. - ");
  234. @@ -4728,7 +4728,7 @@
  235. }
  236. /********** NetBSD_Audio_Kill **********************
  237. - * Close /dev/audio.
  238. + * Close /dev/sound/audio.
  239. *
  240. *****/
  241. void NetBSD_Audio_Kill()
  242. --- ./xa_audio.h.orig Wed Mar 21 14:33:30 2001
  243. +++ ./xa_audio.h Wed Mar 21 14:33:30 2001
  244. @@ -136,8 +136,8 @@
  245. #define _FILE_DSP "/dev/sb_dsp"
  246. #define _FILE_MIXER "/dev/sb_mixer"
  247. #else
  248. -#define _FILE_DSP "/dev/dsp"
  249. -#define _FILE_MIXER "/dev/mixer"
  250. +#define _FILE_DSP "/dev/sound/dsp"
  251. +#define _FILE_MIXER "/dev/sound/mixer"
  252. #ifdef __FreeBSD__
  253. #include <machine/soundcard.h>
  254. #else
  255. --- ./xa_config.h.orig Wed Mar 21 14:33:30 2001
  256. +++ ./xa_config.h Wed Mar 21 14:33:30 2001
  257. @@ -292,6 +292,6 @@
  258. #ifdef XA_AIX_AUDIO
  259. #define DEFAULT_AUDIO_DEVICE_NAME "/dev/paud0/1"
  260. #else
  261. -#define DEFAULT_AUDIO_DEVICE_NAME "/dev/audio"
  262. +#define DEFAULT_AUDIO_DEVICE_NAME "/dev/sound/audio"
  263. #endif