4 * $Id: wm_config.h,v 1.5 1999/05/05 16:34:22 dirk Exp $
6 * This file is part of WorkMan, the civilized CD player library
7 * (c) 1991-1997 by Steven Grimm (original author)
8 * (c) by Dirk Försterling (current 'author' = maintainer)
9 * The maintainer can be contacted by his e-mail address:
10 * milliByte@DeathsDoor.com
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this library; if not, write to the Free
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 **********************************************************************
28 * This file consists of several parts. First, there's a generic,
29 * platform independent part. Set needed options there.
30 * The following parts are platform dependent. You may search for the
31 * names listed below and then set your OS specific options there.
32 * Don't be surprised, if there are no options for your OS. They aren't
35 * The default values should produce a functional WorkMan on every
49 * Sun (SunOS/Solaris, Sparc or x86)
54 * The above order corresponds with the order of the platform specific
58 /******************************************************************
60 ******************************************************************
61 ** ** *** **** ** **** ** * ** ** ** * **
62 * * * *** **** * * *** * ** ** *** * * * * * * **
63 * * *** **** ** *** ** ** ** * * ** * * **
64 * * * *** **** **** *** * ** ** *** * * * * *** **
65 * * * * ** **** * * ** ** **** ** * * *** **
66 ******************************************************************/
69 * This option is obvious. But please do not forget the original
70 * WorkMan version string if you need support.
73 #define WORKMAN_NAME "LibWorkMan"
74 #define WORKMAN_VERSION "1.4.0"
77 * If your CD-ROM drive closes its tray if the device is opened, then
78 * the next define can make WorkMans "Eject" button an "open/close"
79 * button. If it disturbs you, just comment it out.
81 * ### this is preliminary. It may have no effect for you ###
86 * Define the following if you want the balance slider to
87 * decrease one channel's volume while increasing the other's
89 /* #define SYMETRIC_BALANCE 1 */
93 * Define this if you want CDDA support. Supported systems are:
95 * - Solaris (2.4 or newer)
96 * --> Linux is on the way. Don't define it now. It would lead to errors only.
98 /*#define BUILD_CDDA 1*/
102 * This is for experimental cddb support.
103 * This activates the UI component.
109 /******************************************************************
111 ******************************************************************
112 *** **** *** ******* ** **** **** ************
113 *** ** ** ****** * ***** ****** ** ** ** ***************
114 *** ****** **** ** *** ***** ***** *** ************
115 *** ** ****** ** * *** ******** ** ** ** ** ***********
116 *** **** *** *** ****** **** **** ************
117 ******************************************************************/
121 * This lets you use the SoundBlaster Mixer on BSD/386
123 #define SOUNDBLASTER 1
125 #endif /* __bsdi__ (BSD/386) */
127 /******************************************************************
129 ******************************************************************
130 *** ** *** ** ** **** *** ***********
131 *** ****** ** ** ****** ****** ** ** ****** * **********
132 *** **** *** **** **** ****** **** ** *********
133 *** ****** ** ** ****** ****** ** ****** ** * **********
134 *** ****** ** ** ** ** **** *** ***********
135 ******************************************************************/
136 #if defined(__FreeBSD__) || defined(__NetBSD__)
138 #define DEFAULT_CD_DEVICE "/dev/rmatcd0c"
142 /******************************************************************
144 ******************************************************************
145 *** ** ** ********* ** ** ** ***************************
146 *** ** ** ** ******** ** *** ****************************
147 *** ** *** ** ** **** *****************************
148 *** ** ** ************ ** *** ****************************
149 *** ** ** ************* *** ** ***************************
150 ******************************************************************/
151 #if defined(hpux) || defined (__hpux)
153 #define DEFAULT_CD_DEVICE "/dev/rscsi"
157 /******************************************************************
159 ******************************************************************
160 *** ** *** ** ** *********************************
161 ***** **** ** **** ***** **********************************
162 ***** **** ***** ****** ***********************************
163 ***** **** ** **** ***** **********************************
164 *** ** ** ** ** ** *********************************
165 ******************************************************************/
168 #define DEFAULT_CD_DEVICE "/dev/scsi/sc0d6l0"
170 #endif /* sgi IRIX */
172 /******************************************************************
174 ******************************************************************
175 *** ****** ** *** ** ** ** ** ***********************
176 *** ******** **** ** ** ** *** ************************
177 *** ******** **** * * ** ** **** *************************
178 *** ******** **** ** ** ** *** ************************
179 *** ** ** *** *** *** ** ***********************
180 ******************************************************************/
184 * Uncomment the following line to have WorkMan send SCSI commands
185 * directly to the CD-ROM drive. If you have a SCSI drive you
186 * probably want this, but it will cause WorkMan to not work on IDE
189 #define LINUX_SCSI_PASSTHROUGH 1
192 * Which device should be opened by WorkMan at default?
194 #define DEFAULT_CD_DEVICE "/dev/sbpcd"
197 * Uncomment the following if you use the sbpcd or mcdx device driver.
198 * It shouldn't hurt if you use it on other devices. It'll be nice to
199 * hear from non-sbpcd (or mcdx) users if this is right.
201 /*#define SBPCD_HACK 1*/
204 * Linux Soundcard support
206 #define OSS_SUPPORT 1
209 * This has nothing to do with the above.
212 /* #define CURVED_VOLUME */
215 * Uncomment the following if you want to try out a better responding
216 * WorkMan, especially with IDE drives. This may work with non-IDE
217 * drives as well. But it may be possible, that it doesn't work at all.
218 * If your drive/driver combination cannot handle the faster access,
219 * the driver will usually hang and you have to reboot your machine.
221 /* #define FAST_IDE 1 */
224 * There are two alternative ways of checking a device containing a
225 * mounted filesystem. Define BSD_MOUNTTEST for the test using
226 * getmntent(). Undefine it for using the SVR4 ustat().
227 * I built in the choice, because it's not clear which method should
228 * be used in Linux. The ustat manpage tells us since 1995, that
229 * fstat() should be used, but I'm too dumb to do so.
232 #define BSD_MOUNTTEST
236 /******************************************************************
238 ******************************************************************
239 *** *** ** ** ***** *** *****************************
240 *** ** ** ****** ***** ** ********************************
241 *** * * ** **** ** ** **** ******************************
242 *** ** ** ****** * * ****** ****************************
243 *** *** ** ** * *** *****************************
244 ******************************************************************/
245 #if defined(__sony_news) || defined(sony_news)
247 #define DEFAULT_CD_DEVICE "/dev/rsd/b0i6u0p2\0"
251 /******************************************************************
253 ******************************************************************
254 **** *** *** ** *** ** **** *** *********
255 *** ** ** ** ** ****** ** ** ** ** ****** * ********
256 *** ** ** *** **** * * ** ****** **** ** *******
257 *** ** ** ****** ****** ** ** ** ****** ** * ********
258 **** *** ****** ** *** ** **** *** *********
259 ******************************************************************/
262 #define DEFAULT_CD_DEVICE "/dev/rcdrom"
266 /******************************************************************
268 ******************************************************************
269 **** **** *** *** *** *******************************
270 *** ** ** ****** ****** ** *******************************
271 *** ** **** **** *** ***** *******************************
272 *** ** ****** ** **** ****** *******************************
273 **** **** *** *** ***** *****************************
274 ******************************************************************/
277 #define DEFAULT_CD_DEVICE "/dev/rcdrom/cd0"
281 /******************************************************************
283 ******************************************************************
284 **** *** ** ** *** ***************************************
285 *** ****** ** ** ** ***************************************
286 ***** **** ** ** * * ***************************************
287 ******* ** ** ** ** ***************************************
288 **** **** *** *** ***************************************
289 ******************************************************************/
290 #if defined(sun) || defined(__sun__)
293 * Define the following for Solaris 2.x
294 * If you don't want WorkMan to try to activate the SPARCstation 5
295 * internal audio input so you get sound from the workstation, comment
296 * out the CODEC define.
303 * set the following to "SUNW,CS4231" for Sun and to "SUNW,sb16"
304 * for PC (with SoundBlaster 16) running Solaris x86
305 * (only important if you define CODEC above)
307 /*#define SUN_AUD_DEV "SUNW,CS4231"*/
308 #define SUN_AUD_DEV "SUNW,sbpro"
313 /******************************************************************
315 ******************************************************************
316 **** *** **** ** *** * ********************************
317 *** ****** **** ** ** ** * ********************************
318 ***** ***** ** *** *** *******************************
319 ******* *** ** *** ** ***** ********************************
320 **** ***** **** ** ***** ********************************
321 ******************************************************************/
322 #if defined(SVR4) && !defined(sun) && !defined(__sun__)
324 #define DEFAULT_CD_DEVICE "/dev/rcdrom/cd0"
328 /******************************************************************
330 ******************************************************************
331 *** ** ** ***** ** *** ** ** ******************
332 *** ** ** ******* **** ** **** ***** *******************
333 *** ** ** ******* **** ***** ****** ********************
334 *** ** ** ******* **** ** **** ***** *******************
335 **** *** *** **** ** ** ** ** ******************
336 ******************************************************************/
337 #if defined(ultrix) || defined(__ultrix)
341 /******************************************************************
343 ******************************************************************
344 **** *** ** ** *****************************************
345 *** ** **** ***** ******************************************
346 *** **** ****** *******************************************
347 *** ** **** ***** ******************************************
348 *** ** ** ** ** *****************************************
349 ******************************************************************/
352 #define DEFAULT_CD_DEVICE "/dev/cd0"
356 /******************************************************************/
357 #endif /* WM_CONFIG_H */