File: device.cfg

package info (click to toggle)
xmcd 2.6-17sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,464 kB
  • ctags: 5,075
  • sloc: ansic: 51,322; sh: 4,039; makefile: 82; pascal: 67
file content (416 lines) | stat: -rw-r--r-- 14,575 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
!
! @(#)device.cfg	6.30 00/01/20
!
! Device-specific configuration file
!
!   xmcd  - Motif(tm) CD Audio Player
!   cda   - Command-line CD Audio Player
!   libdi - CD Audio Player Device Interface Library
!
!   Copyright (C) 1993-2000  Ti Kan
!   E-mail: ti@amb.org
!
!   This program is free software; you can redistribute it and/or modify
!   it under the terms of the GNU General Public License as published by
!   the Free Software Foundation; either version 2 of the License, or
!   (at your option) any later version.
!
!   This program is distributed in the hope that it will be useful,
!   but WITHOUT ANY WARRANTY; without even the implied warranty of
!   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
!   GNU General Public License for more details.
!
!   You should have received a copy of the GNU General Public License
!   along with this program; if not, write to the Free Software
!   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
!
! THIS IS THE DEVICE CONFIGURATION TEMPLATE FILE.  DO NOT MODIFY!
!
! Install a copy of this file as XMCDLIB/config/DEVNAME, and edit to suit
! the capability of the CD-ROM device.  XMCDLIB is the XMcd.libdir resource
! (or XMCD_LIBDIR env variable) and DEVNAME is the device node path
! basename.
!
! Users can also override some of these parameters by specifying them
! in an optional $HOME/.xmcdcfg/DEVNAME file.  Parameters that are
! labeled as "No-override" are privileged and cannot be overridden
! by the user in their private configuration files.
!
! cfgver=1	Do not remove this line.
!

! The logical drive number that you want this device to map to.  This
! number is displayed on the main window title bar.
! (No-override)
!
logicalDriveNumber:	0

! Default device list for the CD-ROM player interface.  For a single-CD
! player, only one device should be listed.  For a multi-CD changer,
! there may be one or more devices in this list, depending upon the
! control interface.  Multiple devices are separated by a semi-colon ';'
! character.
!
! Examples:
!	/dev/cdrom0
!	/dev/rcdrom/c0b0t0d0;/dev/rcdrom/c0b0t0d1;/dev/rcdrom/c0b0t0d2
!
deviceList:		/dev/cdrom

! Device Interface Method: Configure xmcd/cda to control the CD-ROM device
! via one of several methods.
!
! Note:
! Changing this parameter is useful only if your xmcd/cda binary is
! compiled to support the selected method.
!
! The supported methods are:
! 0	SCSI pass-through method		(Use this for most systems)
! 1	SunOS/Solaris/Linux/QNX ioctl method	(For non-SCSI CD-ROM drives)
! 2	FreeBSD/NetBSD/OpenBSD ioctl method	(For non-SCSI CD-ROM drives)
! 3	IBM AIX IDE ioctl method		(For IDE/ATAPI CD-ROM drives)
!
! (No-override)
!
deviceInterfaceMethod:	1

! CD-ROM drive vendor code.  If your CD-ROM drive is not SCSI-2 compliant,
! this is used to specify that xmcd should issue vendor-unique commands
! rather than SCSI-2 commands.
!
! Note:
! a) Changing this parameter is useful only if your xmcd/cda binary is
!    compiled to provide vendor-unique commands support.
! b) The existence of a vendor-unique module does not imply that all
!    models of CD-ROM made by that manufacturer must use the vendor-
!    unique mode.  For example, the Toshiba XM-3301/3401 and Sony
!    CDU-541/561 are SCSI-2 compliant and should use vendor code 0.
!
! The supported codes are:
! 0	SCSI-2 standard
! 1	Chinon vendor-unique
! 2	Hitachi vendor-unique
! 3	NEC vendor-unique
! 4	Pioneer vendor-unique
! 5	Sony vendor-unique
! 6	Toshiba vendor-unique
! 7	Panasonic/Matsushita vendor-unique
!
! (No-override)
!
driveVendorCode:	0

! The number of discs a multi-CD changer drive supports.  For a
! single-CD drive, this parameter should be set to 1.
! (no-override)
!
numDiscs:		1

! The method to use when changing discs in a multi-CD changer.
!
! The supported methods are:
! 0	Single-CD drive: no changer
! 1	SCSI LUN addressing method
! 2	SCSI medium changer method
! 3	OS-ioctl method (for non-SCSI drives)
!
! (no-override)
!
mediumChangeMethod:	0

! The base SCSI audio volume value that corresponds to the minimum
! setting of the volume control slider.  This is used to adjust the
! range of audio volume control.  The legal range is 0 to 255.
! This parameter is used only if volumeControlSupport is True.
! (No-override)
!
scsiAudioVolumeBase:	0

! For any given play audio command, the minimum number of audio blocks
! that must be played.  Some CD-ROM drives have a minimum limit.
! Each block represents 1/75 second of audio.
! (No-override)
!
minimumPlayBlocks:	25

! If the CD-ROM drive is SCSI-2 compliant,  this parameter specifies
! whether it supports the Play Audio (10) SCSI command.  This command
! is used only as a fallback to the Play Audio (12) and Play Audio MSF
! commands in case they fail.
! (No-override)
!
playAudio10Support:	True

! If the CD-ROM drive is SCSI-2 compliant, this parameter specifies
! whether it supports the Play Audio (12) SCSI command.  The drive
! must support one of Play Audio (12) or Play Audio MSF in order to
! be useful with xmcd.
! (No-override)
!
playAudio12Support:	False

! If the CD-ROM drive is SCSI-2 compliant, this parameter specifies
! Whether it supports the Play Audio MSF SCSI command. The drive
! must support one of Play Audio (12) or Play Audio MSF in order
! to be useful with xmcd.
! (No-override)
!
playAudioMSFSupport:	True

! If the CD-ROM drive is SCSI-2 compliant,  this parameter specifies
! Whether it supports the Play Audio Track/Index SCSI command.  This
! command must be supported in order to use the Prev Index and Next
! Index buttons.
! (No-override)
!
playAudioTISupport:	True

! Whether the CD-ROM drive supports the disc load feature of the
! Start/Stop Unit SCSI command.
! (No-override)
!
loadSupport:		False

! Whether the CD-ROM drive supports the disc eject feature of the
! Start/Stop Unit SCSI command.  If this item is False, it will also
! automatically force the caddyLockSupport parameter below to False.
! (No-override)
!
ejectSupport:		True

! Whether the block descriptor should be disabled in the
! mode sense/mode select command data.  You may need to change this
! setting to get the volume control slider to work on some SCSI-2
! CD-ROM drives.
! (No-override)
!
modeSenseSetDBD:	False

! Whether the CD-ROM drive supports setting the audio playback volume
! in software.  For SCSI-2 drives, this means the audio page (0xE) of
! the Mode Select SCSI command.  For SCSI-1 drives, this is vendor-
! unique.
! (No-override)
!
volumeControlSupport:	True

! Whether the CD-ROM drive supports setting the audio playback volume
! of the stereo channels independently.  This support is required
! for the Balance Control slider to function.  The volumeControlSupport
! parameter above must be True for this to have any effect.
! (No-override)
!
balanceControlSupport:	False

! Whether the CD-ROM drive supports setting output channel routing.
! This support is required for the channel routing selector to function.
! (No-override)
!
channelRouteSupport:	False

! If the CD-ROM drive is SCSI-2 compliant,  this parameter specifies
! whether it supports the Pause/Resume SCSI command.
! (No-override)
!
pauseResumeSupport:	True

! While in paused state, if the CD-ROM drive requires a resume command
! to be sent before accepting a new play audio command, set this to True.
! This parameter is meaningful only if pauseResumeSupport is True.
! (No-override)
!
strictPauseResume:	False

! While playing audio, if the CD-ROM drive requires a pause command to be
! sent before accepting a new play audio command, set this to True.
! This parameter is meaningful only if pauseResumeSupport is True.
! (No-override)
!
playPausePlay:		False

! Whether the CD-ROM drive supports the Prevent/Allow Medium Removal
! SCSI command.  If this item is False, it will also automatically
! force the caddyLock parameter to False.
! (No-override)
!
caddyLockSupport:	True

! Whether the CD-ROM drive supports data format code 1 (CD-ROM Current
! Position Data) of the Read Subchannel SCSI command.  If this item is
! False, data format code 0 (Sub-Q Channel Data) will be used instead.
! (No-override)
!
curposFormat:		False

! Whether the CD-ROM drive fails the Test Unit Ready SCSI command
! when it is playing audio.
! (No-override)
!
noTURWhenPlaying:	False

! Whether xmcd/cda should attempt to read the CD's TOC (table of content)
! in LBA (logical block address) mode.  If set to False, then the
! MSF (minute second frame) mode will be used.  The driveBlockSize parameter
! must be set correctly in order for the LBA mode to work.
! (No-override)
!
tocLBA:			False

! Whether xmcd/cda should attempt to read subchannel data (playback status)
! in LBA (logical block address) mode.  If set to False, then the
! MSF (minute second frame) mode will be used.  The driveBlockSize parameter
! must be set correctly in order for the LBA mode to work.
! (No-override)
!
subChannelLBA:		False

! The CD-ROM drive's native block size in bytes.  Standard CD-ROM drives
! have 2048-byte blocks, but some platforms (Notably Sun and SGI) use
! CD-ROM drives with 512-byte blocks to mimick a hard disk drive.
! (No-override)
!
driveBlockSize:		2048

! When spinning up the CD, how long to wait (in seconds) for the disc
! to spin up to speed before accessing the drive again.
! (No-override)
spinUpInterval:		2

! Select the volume control taper curve.  You may need to experiment
! with this parameter to get the smoothest range of control from the
! volume control slider. This parameter is used only if
! volumeControlSupport is True.
!
! Supported values for this parameter:
! 0	Apply a linear taper.
! 1	Apply a squared taper (Small change at low settings,
!	increasing as the slider moves toward the upper range).
! 2	Apply an inverse-squared taper (big change at low settings,
!	diminishing as the slider moves toward the upper range).
!
volumeControlTaper:	0

! This allows the volume control setting to be pre-set when xmcd/cda
! first starts.  If set to -1, xmcd/cda will query the CD-ROM drive's
! internal setting and set the volume slider to match.  This will have
! an effect only if the drive and driver supports the appropriate
! functionality.  Valid settings for the parameter is 0-100 and -1.
startupVolume:		-1

! Select the channel routing.  This parameter is used only if
! channelRouteSupport is True.
!
! Supported values for this parameter (0 and 1 are the audio channels on
! the CD, L and R are the output channels):
! 0	Normal stereo:	0->L, 1->R
! 1	Reverse stereo:	0->R, 1->L
! 2	Mono-L:		0->L, 0->R
! 3	Mono-R:		1->L, 1->R	
! 4	Mono-L+R:	0+1->L, 0+1->R
!
channelRoute:		0

! During FF/REW search operations, the number of audio blocks to skip
! to the next audible sample
! (xmcd only)
searchSkipBlocks:	145

! During FF/REW search operations, the amount of time to pause between
! each audio sample (msec)
! (xmcd only)
searchPauseInterval:	80

! During FF/REW search operations, after this many audio samples the
! search speed will be tripled (i.e., the searchSkipBlocks parameter is
! internally multiplied by 3).  If this parameter is set to 0, then
! no speedup will occur.
! (xmcd only)
searchSpeedUpCount:	15

! During FF/REW search operations, the percentage of the current normal
! playback volume to be used for audio samples.  This is used only if
! the volumeControlSupport device specific parameter is set to True.
! (xmcd only)
searchVolumePercent:	35

! During FF/REW search operations, the minimum volume setting for audio
! samples.  This is used only if the volumeControlSupport device specific
! parameter is set to True.
! (xmcd only)
searchMinVolume:	2

! Whether the CD should be spun-down after it is loaded.  This reduces
! wear on the drive if there won't be any audio playback activity for
! a while.
spinDownOnLoad:		True

! Whether the CD should automatically start playing when it is loaded.
! This parameter, if set to True, overrides spinDownOnLoad.
playOnLoad:		False

! Whether the CD should be automatically ejected when done playing.
! "Done" means finished playing the last track on the CD in normal
! mode, or the last track in the shuffle or program mode play sequence.
! This option is only effective if ejectSupport is True.
ejectOnDone:		False

! Whether xmcd or the cda daemon should automatically exit when done
| playing.  "Done" means finished playing the last track on the CD in
| normal mode, or the last track in the shuffle or program mode play
| sequence.
exitOnDone:		False

! Whether the CD should be ejected on program exit.
! This option is only effective if ejectSupport is True.
ejectOnExit:		False

! Whether the CD should be stopped on program exit.
stopOnExit:		True

! Whether xmcd should exit when the CD is ejected.  Although this is
! a generic option, it is added primarily to make xmcd run better
! under Sun Solaris 2.x's Volume Manager.
! This option is only effective if ejectSupport is True.
!
! Note: If this parameter is set to True, then xmcd will exit after
! the CD is ejected, without the usual confirmation dialog box (as you
! would get when pressing the Quit button).
exitOnEject:		False

! Whether xmcd should close the device when the CD is ejected.
! Although this is a generic option, it is added primarily to make
! xmcd run better under Sun Solaris 2.x's Volume Manager.
! This option is only effective if ejectSupport is True.
!
! Note: If this parameter is set to True, then the device will be re-opened
! when a new CD is loaded.  The "exitOnEject" parameter takes precedence
! over this one.
closeOnEject:		False

! Whether to enable the Repeat mode on program startup.
repeatMode:		False

! Whether to enable the Shuffle mode on program startup.
shuffleMode:		False

! Whether to disable the CD-ROM drive front panel eject button when
! a disc is loaded.  Normally this should be set to True.  See also
! the caddyLockSupport and ejectSupport parameters.
caddyLock:		True

! This parameter is meaningful only on a multi-CD changer.  When set to
! True, the normal playback mode will play through all discs in
! sequence.  When set to False, playback will stop after the current
! disc is done playing.  Multi-play will be disabled when the program
! or shuffle mode is enabled.
multiPlay:		False

! This parameter is meaningful only if multiPlay is True.
! When set to True, the discs in the multi-disc changer will be played
! in reverse-order.
reversePlay:		False

! Whether xmcd/cda should play through the built-in speakers in
! the computer.  This is not currently implemented and has no effect.
internalSpeakerEnable:	False