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.

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