summaryrefslogtreecommitdiff
path: root/usr/src/man/man7i/mixer.7i
blob: 869b54ccfdd09b7001f37df8fbdd1bc92f5538b6 (plain)
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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
.\"  Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
.\" Copyright 2019, Joyent, Inc.
.\" The contents of this file are subject to the terms of the
.\" Common Development and Distribution License (the "License").
.\" You may not use this file except in compliance with the License.
.\"
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
.\" or http://www.opensolaris.org/os/licensing.
.\" See the License for the specific language governing permissions
.\" and limitations under the License.
.\"
.\" When distributing Covered Code, include this CDDL HEADER in each
.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
.\" If applicable, add the following below this CDDL HEADER, with the
.\" fields enclosed by brackets "[]" replaced with your own identifying
.\" information: Portions Copyright [yyyy] [name of copyright owner]
.Dd February 1, 2019
.Dt MIXER 7I
.Os
.Sh NAME
.Nm mixer
.Nd generic mixer device interface
.Sh SYNOPSIS
.In sys/soundcard.h
.Sh DESCRIPTION
.Ss "Mixer Pseudo-Device"
The
.Pa /dev/mixer
pseudo-device is provided for two purposes:
.Bl -bullet -offset indent
.It
The first purpose is for applications that wish to learn about the list of
audio devices on the system, so that they can select (or provide for users to
select) an appropriate audio device.
The
.Pa /dev/mixer
pseudo-device
provides interfaces to enumerate all of the audio devices on the system.
.It
The second purpose is for mixer panel type applications which need to control
master settings for the audio hardware in the system, such as gain levels,
balance, port functionality, and other device features.
.El
.Pp
Ordinary audio applications should
.Em not
attempt to adjust their playback
or record volumes or other device settings using this device.
Instead, they
should use the
.Dv SNDCTL_DSP_SETPLAYVOL
and
.Dv SNDCTL_DSP_SETRECVOL
ioctls that are documented in
.Xr dsp 7I .
.Ss "Sndstat Device"
The
.Pa /dev/sndstat
device supports
.Xr read 2 ,
and can be read to
retrieve human-readable information about the audio devices on the system.
Software should not attempt to interpret the contents of this device.
.Sh IOCTLS
.Ss "Information IOCTLs"
The following ioctls are intended to aid applications in identifying the audio
devices available on the system.
These ioctls can be issued against either the
pseudo-device
.Pa /dev/mixer ,
or a against a file descriptor open to any
other audio device in the system.
.Pp
Applications should issue
.Dv SNDCTL_SYSINFO
first to learn what audio
devices and mixers are available on the system, and then use
.Dv SNDCTL_AUDIOINFO
or
.Dv SNDCTL_MIXERINFO
to obtain more information
about the audio devices or mixers, respectively.
.Bl -tag -width SNDCTL_AUDIOINFO
.It Dv OSS_GETVERSION
The argument is a pointer to an integer, which retrieves the version of the
.Sy OSS API
used.
The value is encoded with the major version (currently 4)
encoded in the most significant 16 bits, and a minor version encoded in the
lower 16 bits.
.It Dv SNDCTL_SYSINFO
The argument is a pointer to an
.Vt oss_sysinfo
structure, which has the following definition:
.Bd -literal -offset 2n
typedef struct oss_sysinfo {
   char product[32];     /* E.g. SunOS Audio */
   char version[32];     /* E.g. 4.0a */
   int versionnum;       /* See OSS_GETVERSION */
   char options[128];    /* NOT SUPPORTED */

   int numaudios;        /* # of audio/dsp devices */
   int openedaudio[8];   /* Reserved, always 0 */

   int numsynths;        /* NOT SUPPORTED, always 0 */
   int nummidis;         /* NOT SUPPORTED, always 0 */
   int numtimers;        /* NOT SUPPORTED, always 0 */
   int nummixers;        /* # of mixer devices */

   /* Mask of midi devices are busy */
   int openedmidi[8];

   /* Number of sound cards in the system */
   int numcards;

   /* Number of audio engines in the system */
   int numaudioengines;
   char license[16];         /* E.g. "GPL" or "CDDL" */
   char revision_info[256];  /* Reserved */
   int filler[172];          /* Reserved */
} oss_sysinfo;
.Ed
.Pp
The important fields here are
.Fa numaudios ,
which is used to determine the
number of audio devices that can be queried with
.Dv SNDCTL_AUDIOINFO ,
.Fa nummixers
which provides a count of mixers on the system, and
.Fa numcards
which counts to total number of aggregate devices.
A
.Sy card
can consist of one or more audio devices and one or more mixers, although more
typically there is exactly one audio device and one mixer for each card.
.It Dv SNDCTL_AUDIOINFO
The argument is a pointer to an
.Vt oss_audioinfo
structure, which has the following structure:
.Bd -literal -offset 2n
typedef struct oss_audioinfo {
   int dev;             /* Device to query */
   char name[64];       /* Human readable name */
   int busy;            /* reserved */
   int pid;             /* reserved */

   /* PCM_CAP_INPUT, PCM_CAP_OUTPUT */
   int caps;
   int iformats;        /* Supported input formats */
   int oformats;        /* Supported output formats */
   int magic;           /* reserved */
   char cmd[64];        /* reserved */
   int card_number;
   int port_number;     /* reserved */
   int mixer_dev;

   /* Obsolete field.  Replaced by devnode */
   int legacy_device;
   int enabled;         /* reserved */
   int flags;           /* reserved */
   int min_rate;        /* Minimum sample rate */
   int max_rate;        /* Maximum sample rate */
   int min_channels;  /* Minimum number of channels */
   int max_channels;  /* Maximum number of channels */
   int binding;         /* reserved */
   int rate_source;     /* reserved */
   char handle[32];     /* reserved */
   unsigned int nrates;     /* reserved */
   unsigned int rates[20];  /* reserved */
   char song_name[64];  /* reserved */
   char label[16];      /* reserved */
   int latency;         /* reserved */

   /* Device special file name (absolute path) */
   char devnode[32];
   int next_play_engine;    /* reserved */
   int next_rec_engine;     /* reserved */
   int filler[184];         /* reserved */
} oss_audioinfo;
.Ed
.Pp
In the above structure, all of the fields are reserved except the following:
.Fa dev ,
.Fa name ,
.Fa card_number ,
.Fa mixer_dev ,
.Fa caps ,
.Fa min_rate ,
.Fa max_rate ,
.Fa min_channels ,
.Fa max_channels ,
and
.Fa devnode .
The reserved fields are provided for compatibility with other OSS
implementations, and available for legacy applications.
New applications should not attempt to use these fields.
.Pp
The
.Fa dev
field should be initialized by the application to the number of
the device to query.
This is a number between zero (inclusive) and value of
.Fa numaudios
(exclusive) returned by
.Dv SNDCTL_SYSINFO .
Alternatively,
when issuing the ioctl against a real mixer or
.Sy dsp
device, the special
value
.Sy -1
can be used to indicate that the query is being made against the device opened.
If
.Sy -1
is used, the field is overwritten with the device
number for the current device on successful return.
.Pp
No other fields are significant upon entry, but a successful return contains
details of the device.
.Pp
The
.Fa name
field is a human readable name representing the device.
Applications should not try to interpret it.
.Pp
The
.Fa card_number
field indicates the number assigned to the aggregate device.
This can be used with the
.Dv SNDCTL_CARDINFO
ioctl.
.Pp
The
.Fa mixer_dev
is the mixer device number for the mixing device associated
with the audio device.
This can be used with the
.Dv SNDCTL_MIXERINFO
ioctl.
.Pp
The
.Fa caps
field contains any of the bits
.Dv PCM_CAP_INPUT ,
.Dv PCM_CAP_OUTPUT ,
and
.Dv PCM_CAP_DUPLEX .
Indicating whether the device
support input, output, and whether input and output can be used simultaneously.
All other bits are reserved.
.Pp
The
.Fa min_rate
and
.Fa max_rate
fields indicate the minimum and maximum sample rates supported by the device.
Most applications should try to use the maximum supported rate for the best
audio quality and lowest system resource consumption.
.Pp
The
.Fa min_channels
and
.Fa max_channels
provide an indication of the number of channels (1 for mono, 2 for stereo,
6 for 5\&.1, etc\&.) supported by the device.
.Pp
The
.Fa devnode
field contains the actual full path to the device node for this device, such as
.Pa /dev/sound/audio810:0dsp .
Applications should open this file to access the device.
.It Dv SNDCTL_CARDINFO
The argument is a pointer to a
.Vt struct oss_card_info ,
which has the following definition:
.Bd -literal -offset 2n
typedef struct oss_card_info {
   int card;
   char shortname[16];
   char longname[128];
   int flags;          /* reserved */
   char hw_info[400];
   int intr_count;     /* reserved */
   int ack_count;      /* reserved */
   int filler[154];
} oss_card_info;
.Ed
.Pp
This ioctl is used to query for information about the aggregate audio device.
.Pp
The
.Fa card
field should be initialized by the application to the number of
the card to query.
This is a number between zero
.Pq inclusive
and value of
.Fa numcards
.Pq exclusive
returned by
.Dv SNDCTL_SYSINFO .
Alternatively,
when issuing the ioctl against a real mixer or
.Sy dsp
device, the special value
.Sy -1
can be used to indicate that the query is being made against the device opened.
If
.Sy -1
is used, the field is overwritten with the number
for the current hardware device on successful return.
.Pp
The
.Fa shortname ,
.Fa longname ,
and
.Fa hw_info
contain
.Sy ASCIIZ
strings describing the device in more detail.
The
.Fa hw_info
member can contain multiple lines of detail, each line ending in a NEWLINE.
.Pp
The
.Fa flag ,
.Fa intr_count ,
and
.Fa ack_count
fields are not used by this implementation.
.It Dv SNDCTL_MIXERINFO
The argument is a pointer to a
.Vt struct oss_mixer_info ,
which has the following definition:
.Bd -literal -offset 2n
typedef struct oss_mixerinfo {
    int dev;
    char id[16];        /* Reserved */
    char name[32];
    int modify_counter;
    int card_number;
    int port_number;    /* Reserved */
    char handle[32];    /* Reserved */
    int magic;          /* Reserved */
    int enabled;        /* Reserved */
    int caps;           /* Reserved */
    int flags;          /* Reserved */
    int nrext;
    int priority;

    /* Deice special file name (absolute path) */
    char devnode[32];
    int legacy_device;  /* Reserved */
    int filler[245];    /* Reserved */
} oss_mixerinfo;
.Ed
.Pp
In the above structure, all of the fields are reserved except the following:
.Fa dev ,
.Fa name ,
.Fa modify_counter ,
.Fa card_number ,
.Fa nrext ,
.Fa priority ,
and
.Fa devnode .
The reserved fields are provided for compatibility with other
OSS implementations, and available for legacy applications.
New applications should not attempt to use these fields.
.Pp
The
.Fa dev
field should be initialized by the application to the number of
the device to query.
This is a number between zero inclusive and value of
.Fa nummixers
(exclusive) returned by
.Dv SNDCTL_SYSINFO ,
or by
.Dv SNDCTL_MIX_NRMIX .
Alternatively, when issuing the ioctl against a real mixer or
.Sy dsp
device, the special value
.Sy -1
can be used to indicate
that the query is being made against the device opened.
If
.Sy -1
is used,
the field is overwritten with the mixer number for the current open file on
successful return.
.Pp
No other fields are significant upon entry, but on successful return contains
details of the device.
.Pp
The
.Fa name
field is a human readable name representing the device.
Applications should not try to interpret it.
.Pp
The
.Fa modify_counter
is changed by the mixer framework each time the
settings for the various controls or extensions of the device are changed.
Applications can poll this value to learn if any other changes need to be
searched for.
.Pp
The
.Fa card_number
field is the number of the aggregate audio device this
mixer is located on.
It can be used with the
.Dv SNDCTL_CARDINFO
ioctl.
.Pp
The
.Fa nrext
field is the number of mixer extensions available on this mixer.
See the
.Dv SNDCTL_MIX_NREXT
description.
.Pp
The priority is used by the framework to assign a preference that applications
can use in choosing a device.
Higher values are preferable.
Mixers with priorities less than -1 should never be selected by default.
.Pp
The
.Fa devnode
field contains the actual full path to the device node for
the physical mixer, such as
.Pa /dev/sound/audio810:0mixer .
Applications
should open this file to access the mixer settings.
.El
.Ss "Mixer Extension IOCTLs"
The pseudo
.Pa /dev/mixer
device supports ioctls that can change the
oarious settings for the audio hardware in the system.
.Pp
Those ioctls should only be used by dedicated mixer applications or desktop
olumme controls, and not by typical ordinary audio applications such as media
players.
Ordinary applications that wish to adjust their own volume settings
should use the
.Dv SNDCTL_DSP_SETPLAYVOL
or
.Dv SNDCTL_DSP_SETRECVOL
ioctls for that purpose.
See
.Xr dsp 7I
for more information.
Ordinary
applications should never attempt to change master port selection or hardware
settings such as monitor gain settings.
.Pp
The ioctls in this section can only be used to access the mixer device that is
associated with the current file descriptor.
.Pp
Applications should not assume that a single
.Pa /dev/mixer
node is able to access any physical settings.
Instead, they should use the ioctl
.Dv SNDCTL_MIXERINFO
to determine the device path for the real mixer device,
and issue ioctls on a file descriptor opened against the corresponding
.Fa devnode
field.
.Pp
When a
.Fa dev
member is specified in each of the following ioctls, the
application should specify
.Sy -1 ,
although for compatibility the mixer
allows the application to specify the mixer device number.
.Pp
.Bl -tag -width SNDCTL_MIX_ENUMINFO -compact
.It Dv SNDCTL_MIX_NRMIX
The argument is a pointer to an integer, which receives the number of mixer
devices in the system.
Each can be queried by using its number with the
.Dv SNDCTL_MIXERINFO
ioctl.
The same information is available using the
.Fa SNDCTL_SYSINFO
ioctl.
.Pp
.It Dv SNDCTL_MIX_NREXT
The argument is a pointer to an integer.
On entry, the integer should contain
the special value
.Sy -1 .
On return the argument receives the number of mixer
extensions (or mixer controls) supported by the mixer device.
More details
about each extension can be obtained by
.Fa SNDCTL_MIX_EXTINFO
ioctl.
.Pp
.It Dv SNDCTL_MIX_EXTINFO
The argument is a pointer to an
.Vt oss_mixext
structure which is defined as follows:
.Bd -literal -offset 2n
typedef struct oss_mixext {
   int dev;            /* Mixer device number */
   int ctrl;           /* Extension number */
   int type;           /* Entry type */
   int maxvalue;
   int minvalue;
   int flags;
   char id[16];  /* Mnemonic ID (internal use) */
   int parent;   /* Entry# of parent (-1 if root) */
   int dummy;          /* NOT SUPPORTED */
   int timestamp;
   char data[64];      /* Reserved */

   /* Mask of allowed enum values */
   unsigned char enum_present[32];
   int control_no;     /* Reserved */
   unsigned int desc;  /* NOT SUPPORTED */
   char extname[32];
   int update_counter;
   int filler[7];      /* Reserved */
} oss_mixext;
.Ed
.Pp
On entry, the
.Fa dev
field should be initialized to the value
.Sy -1 ,
and
the
.Fa ctrl
field should be initialized with the number of the extension
being accessed.
Between 0, inclusive, and the value returned by
.Dv SNDCTL_MIX_NREXT ,
exclusive.
.Pp
Mixer extensions are organized as a logical tree, starting with a root node.
The root node always has a
.Fa ctrl
value of zero.
The structure of the tree can be determined by looking at the parent field,
which contains the extension number of the parent extension, or
.Sy -1
if the extension is the root extension.
.Pp
The type indicates the type of extension used.
This implementation supports the following values:
.Bl -column -offset 2n "MIXT_STEREOSLIDER" "Enumerated value, 0 to maxvalue"
.It Dv MIXT_DEVROOT      Ta Root node for extension tree
.It Dv MIXT_GROUP        Ta Logical grouping of controls
.It Dv MXIT_ONOFF        Ta Boolean value, 0 = off, 1 = on.
.It Dv MIXT_ENUM         Ta Enumerated value, 0 to maxvalue.
.It Dv MIXT_MONOSLIDER   Ta Monophonic slider, 0 to 255.
.It Dv MIXT_STEREOSLIDER Ta Stereophonic slider, 0 to 255 (encoded as lower two bytes in value.)
.It Dv MIXT_MARKER       Ta Place holder, can ignore.
.El
.Pp
The flags field is a bit array.
This implementation makes use of the following
possible bits:
.Bl -column -offset 2n "MIXF_WRITEABLE" "Extensions value is modifiable"
.It Dv MIXF_READABLE  Ta Extension's value is readable.
.It Dv MIXF_WRITEABLE Ta Extension's value is modifiable.
.It Dv MIXF_POLL      Ta Extension can self-update.
.It Dv MIXF_PCMVOL    Ta Extension is for master PCM playback volume.
.It Dv MIXF_MAINVOL   Ta Extension is for a typical analog volume
.It Dv MIXF_RECVOL    Ta Extension is for master record gain.
.It Dv MIXF_MONVOL    Ta Extension is for a monitor source's gain.
.El
.Pp
The
.Fa id
field contains an
.Sy ASCIIZ
identifier for the extension.
.Pp
The timestamp field is set when the extension tree is first initialized.
Applications must use the same timestamp value when attempting to change the
values.
A change in the timestamp indicates a change a in the structure of the
extension tree.
.Pp
The
.Fa enum_present
field is a bit mask of possible enumeration values.
If a
bit is present in the
.Fa enum_present
mask, then the corresponding enumeration value is legal.
The mask is in little endian order.
.Pp
The
.Fa desc
field provides information about scoping, which can be useful as
layout hints to applications.
The following hints are available:
.Bl -column -offset 2n "MIXEXT_SCOPE_MONITOR" "No scoping hint provided."
.It Dv MIXEXT_SCOPE_MASK    Ta Mask of possible scope values.
.It Dv MIXEXT_SCOPE_INPUT   Ta Extension is an input control.
.It Dv MIXEXT_SCOPE_OUTPUT  Ta Extension is an output control.
.It Dv MIXEXT_SCOPE_MONITOR Ta Extension relates to input monitoring.
.It Dv MIXEXT_SCOPE_OTHER   Ta No scoping hint provided.
.El
.Pp
The
.Fa extname
is the full name of the extension.
.Pp
The
.Fa update_counter
is incremented each time the control's value is changed.
.Pp
.It Dv SNDCTL_MIX_ENUMINFO
The argument is a pointer to an
.Vt oss_mixer_enuminfo
structure, which is defined as follows:
.Bd -literal -offset 2n
typedef struct oss_mixer_enuminfo {
   int dev;
   int ctrl;
   int nvalues;
   int version;
   short strindex[255];
   char strings[3000];
} oss_mixer_enuminfo;
.Ed
.Pp
On entry, the
.Fa dev
field should be initialized to the value
.Sy -1 ,
and
the
.Fa ctrl
field should be initialized with the number of the extension being accessed.
Between 0, inclusive, and the value returned by
.Dv SNDCTL_MIX_NREXT ,
exclusive.
.Pp
On return the
.Fa nvalues
field contains the number of values, and
.Fa strindex
contains an array of indices into the strings member, each index
pointing to an
.Sy ASCIIZ
describing the enumeration value.
.Pp
.It Dv SNDCTL_MIX_READ
.It Dv SNDCTL_MIX_WRITE
The argument is a pointer to an
.Vt oss_mixer_value
structure, defined as follows:
.Bd -literal -offset 2n
typedef struct oss_mixer_value {
   int dev;
   int ctrl;
   int value;

   /* Reserved for future use.  Initialize to 0 */
   int flags;

   /* Must be set to oss_mixext.timestamp */
   int timestamp;

   /* Reserved for future use.  Initialize to 0 */
   int filler[8];
} oss_mixer_value;
.Pp
.Ed
On entry, the
.Fa dev
field should be initialized to the value
.Sy -1 ,
and the
.Fa ctrl
field should be initialized with the number of the extension
being accessed.
Between 0, inclusive, and the value returned by
.Dv SNDCTL_MIX_NREXT ,
exclusive.
Additionally, the timestamp member must be
initialized to the same value as was supplied in the
.Vt oss_mixext
structure
used with
.Dv SNDCTL_MIX_EXTINFO .
.Pp
For
.Dv SNDCTL_MIX_WRITE ,
the application should supply the new value for the extension.
For
.Dv SNDCTL_MIX_READ ,
the mixer returns the extensions current value in value.
.El
.Ss "Compatibility IOCTLs"
The following ioctls are for compatibility use only:
.Pp
.Bl -tag -offset 2n -width SNDCTL_MIX_ENUMINFO -compact
.It Dv SOUND_MIXER_READ_VOLUME
.It Dv SOUND_MIXER_READ_PCM
.It Dv SOUND_MIXER_READ_OGAIN
.It Dv SOUND_MIXER_READ_RECGAIN
.It Dv SOUND_MIXER_READ_RECLEV
.It Dv SOUND_MIXER_READ_IGAIN
.It Dv SOUND_MIXER_READ_RECSRC
.It Dv SOUND_MIXER_READ_RECMASK
.It Dv SOUND_MIXER_READ_DEVMASK
.It Dv SOUND_MIXER_READ_STEREODEVS
.It Dv SOUND_MIXER_WRITE_VOLUME
.It Dv SOUND_MIXER_WRITE_PCM
.It Dv SOUND_MIXER_WRITE_OGAIN
.It Dv SOUND_MIXER_WRITE_RECGAIN
.It Dv SOUND_MIXER_WRITE_RECLEV
.It Dv SOUND_MIXER_WRITE_IGAIN
.It Dv SOUND_MIXER_WRITE_RECSRC
.It Dv SOUND_MIXER_WRITE_RECMASK
.It Dv SOUND_MIXER_INFO
.It Dv SNDCTL_AUDIOINFO_EX
.It Dv SNDCTL_ENGINEINFO
.El
.Pp
These ioctls can affect the software volume levels associated with the calling
process.
They have no effect on the physical hardware levels or settings.
They should not be used in new applications.
.Sh FILES
.Bl -tag -width /dev/sndstat
.It Pa /dev/mixer
Symbolic link to the pseudo mixer device for the system
.It Pa /dev/sndstat
Sound status device
.El
.Sh ERRORS
An
.Xr ioctl 2
fails if:
.Bl -tag -width EINVAL
.It Er EINVAL
The parameter changes requested in the ioctl are invalid or are not supported
by the device.
.It Er ENXIO
The device or extension referenced does not exist.
.El
.Sh ARCHITECTURE
SPARC
x86
.Sh INTERFACE STABILITY
The information and mixer extension IOCTLs are Uncommitted.
The Compatibility IOCTLs are Obsolete Uncommitted.
The extension names are Uncommitted.
.Sh SEE ALSO
.Xr close 2 ,
.Xr ioctl 2 ,
.Xr open 2 ,
.Xr read 2 ,
.Xr attributes 5 ,
.Xr dsp 7I
.Sh BUGS
The names of mixer extensions are not guaranteed to be predictable.