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.

292 lines
9.3 KiB

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