1 <title>DVB Audio Device</title>
2 <para>The DVB audio device controls the MPEG2 audio decoder of the DVB hardware. It
3 can be accessed through <emphasis role="tt">/dev/dvb/adapter0/audio0</emphasis>. Data types and and
4 ioctl definitions can be accessed by including <emphasis role="tt">linux/dvb/video.h</emphasis> in your
7 <para>Please note that some DVB cards don’t have their own MPEG decoder, which results in
8 the omission of the audio and video device.
11 <section id="audio_data_types">
12 <title>Audio Data Types</title>
13 <para>This section describes the structures, data types and defines used when talking to the
17 <section id="audio-stream-source-t">
18 <title>audio_stream_source_t</title>
19 <para>The audio stream source is set through the AUDIO_SELECT_SOURCE call and can take
20 the following values, depending on whether we are replaying from an internal (demux) or
21 external (user write) source.
27 } audio_stream_source_t;
29 <para>AUDIO_SOURCE_DEMUX selects the demultiplexer (fed either by the frontend or the
30 DVR device) as the source of the video stream. If AUDIO_SOURCE_MEMORY
31 is selected the stream comes from the application through the <emphasis role="tt">write()</emphasis> system
36 <section id="audio-play-state-t">
37 <title>audio_play_state_t</title>
38 <para>The following values can be returned by the AUDIO_GET_STATUS call representing the
39 state of audio playback.
50 <section id="audio-channel-select-t">
51 <title>audio_channel_select_t</title>
52 <para>The audio channel selected via AUDIO_CHANNEL_SELECT is determined by the
62 } audio_channel_select_t;
66 <section id="audio-status">
67 <title>struct audio_status</title>
68 <para>The AUDIO_GET_STATUS call returns the following structure informing about various
69 states of the playback operation.
72 typedef struct audio_status {
73 boolean AV_sync_state;
75 audio_play_state_t play_state;
76 audio_stream_source_t stream_source;
77 audio_channel_select_t channel_select;
79 audio_mixer_t mixer_state;
84 <section id="audio-mixer">
85 <title>struct audio_mixer</title>
86 <para>The following structure is used by the AUDIO_SET_MIXER call to set the audio
90 typedef struct audio_mixer {
91 unsigned int volume_left;
92 unsigned int volume_right;
97 <section id="audio_encodings">
98 <title>audio encodings</title>
99 <para>A call to AUDIO_GET_CAPABILITIES returns an unsigned integer with the following
100 bits set according to the hardwares capabilities.
103 #define AUDIO_CAP_DTS 1
104 #define AUDIO_CAP_LPCM 2
105 #define AUDIO_CAP_MP1 4
106 #define AUDIO_CAP_MP2 8
107 #define AUDIO_CAP_MP3 16
108 #define AUDIO_CAP_AAC 32
109 #define AUDIO_CAP_OGG 64
110 #define AUDIO_CAP_SDDS 128
111 #define AUDIO_CAP_AC3 256
115 <section id="audio-karaoke">
116 <title>struct audio_karaoke</title>
117 <para>The ioctl AUDIO_SET_KARAOKE uses the following format:
121 struct audio_karaoke {
127 <para>If Vocal1 or Vocal2 are non-zero, they get mixed into left and right t at 70% each. If both,
128 Vocal1 and Vocal2 are non-zero, Vocal1 gets mixed into the left channel and Vocal2 into the
129 right channel at 100% each. Ff Melody is non-zero, the melody channel gets mixed into left
134 <section id="audio-attributes-t">
135 <title>audio attributes</title>
136 <para>The following attributes can be set by a call to AUDIO_SET_ATTRIBUTES:
139 typedef uint16_t audio_attributes_t;
140 /⋆ bits: descr. ⋆/
141 /⋆ 15-13 audio coding mode (0=ac3, 2=mpeg1, 3=mpeg2ext, 4=LPCM, 6=DTS, ⋆/
142 /⋆ 12 multichannel extension ⋆/
143 /⋆ 11-10 audio type (0=not spec, 1=language included) ⋆/
144 /⋆ 9- 8 audio application mode (0=not spec, 1=karaoke, 2=surround) ⋆/
145 /⋆ 7- 6 Quantization / DRC (mpeg audio: 1=DRC exists)(lpcm: 0=16bit, ⋆/
146 /⋆ 5- 4 Sample frequency fs (0=48kHz, 1=96kHz) ⋆/
147 /⋆ 2- 0 number of audio channels (n+1 channels) ⋆/
150 <section id="audio_function_calls">
151 <title>Audio Function Calls</title>
154 <section id="audio_fopen">
155 <title>open()</title>
158 <informaltable><tgroup cols="1"><tbody><row><entry
160 <para>This system call opens a named audio device (e.g. /dev/dvb/adapter0/audio0)
161 for subsequent use. When an open() call has succeeded, the device will be ready
162 for use. The significance of blocking or non-blocking mode is described in the
163 documentation for functions where there is a difference. It does not affect the
164 semantics of the open() call itself. A device opened in blocking mode can later
165 be put into non-blocking mode (and vice versa) using the F_SETFL command
166 of the fcntl system call. This is a standard system call, documented in the Linux
167 manual page for fcntl. Only one user can open the Audio Device in O_RDWR
168 mode. All other attempts to open the device in this mode will fail, and an error
169 code will be returned. If the Audio Device is opened in O_RDONLY mode, the
170 only ioctl call that can be used is AUDIO_GET_STATUS. All other call will
171 return with an error code.</para>
173 </row></tbody></tgroup></informaltable>
176 <informaltable><tgroup cols="1"><tbody><row><entry
178 <para>int open(const char ⋆deviceName, int flags);</para>
180 </row></tbody></tgroup></informaltable>
183 <informaltable><tgroup cols="2"><tbody><row><entry
189 <para>Name of specific audio device.</para>
193 <para>int flags</para>
196 <para>A bit-wise OR of the following flags:</para>
202 <para>O_RDONLY read-only access</para>
208 <para>O_RDWR read/write access</para>
214 <para>O_NONBLOCK open in non-blocking mode</para>
220 <para>(blocking mode is the default)</para>
222 </row></tbody></tgroup></informaltable>
223 <para>RETURN VALUE</para>
224 <informaltable><tgroup cols="2"><tbody><row><entry
229 <para>Device driver not loaded/available.</para>
236 <para>Device or resource busy.</para>
243 <para>Invalid argument.</para>
245 </row></tbody></tgroup></informaltable>
248 <section id="audio_fclose">
249 <title>close()</title>
252 <informaltable><tgroup cols="1"><tbody><row><entry
254 <para>This system call closes a previously opened audio device.</para>
256 </row></tbody></tgroup></informaltable>
259 <informaltable><tgroup cols="1"><tbody><row><entry
261 <para>int close(int fd);</para>
263 </row></tbody></tgroup></informaltable>
266 <informaltable><tgroup cols="2"><tbody><row><entry
271 <para>File descriptor returned by a previous call to open().</para>
273 </row></tbody></tgroup></informaltable>
274 <para>RETURN VALUE</para>
275 <informaltable><tgroup cols="2"><tbody><row><entry
280 <para>fd is not a valid open file descriptor.</para>
282 </row></tbody></tgroup></informaltable>
285 <section id="audio_fwrite">
286 <title>write()</title>
289 <informaltable><tgroup cols="1"><tbody><row><entry
291 <para>This system call can only be used if AUDIO_SOURCE_MEMORY is selected
292 in the ioctl call AUDIO_SELECT_SOURCE. The data provided shall be in
293 PES format. If O_NONBLOCK is not specified the function will block until
294 buffer space is available. The amount of data to be transferred is implied by
297 </row></tbody></tgroup></informaltable>
300 <informaltable><tgroup cols="1"><tbody><row><entry
302 <para>size_t write(int fd, const void ⋆buf, size_t count);</para>
304 </row></tbody></tgroup></informaltable>
307 <informaltable><tgroup cols="2"><tbody><row><entry
312 <para>File descriptor returned by a previous call to open().</para>
316 <para>void *buf</para>
319 <para>Pointer to the buffer containing the PES data.</para>
323 <para>size_t count</para>
326 <para>Size of buf.</para>
328 </row></tbody></tgroup></informaltable>
329 <para>RETURN VALUE</para>
330 <informaltable><tgroup cols="2"><tbody><row><entry
335 <para>Mode AUDIO_SOURCE_MEMORY not selected.</para>
342 <para>Attempted to write more data than the internal buffer can
350 <para>fd is not a valid open file descriptor.</para>
352 </row></tbody></tgroup></informaltable>
354 </section><section id="AUDIO_STOP"
355 role="subsection"><title>AUDIO_STOP</title>
358 <informaltable><tgroup cols="1"><tbody><row><entry
360 <para>This ioctl call asks the Audio Device to stop playing the current stream.</para>
362 </row></tbody></tgroup></informaltable>
365 <informaltable><tgroup cols="1"><tbody><row><entry
367 <para>int ioctl(int fd, int request = AUDIO_STOP);</para>
369 </row></tbody></tgroup></informaltable>
372 <informaltable><tgroup cols="2"><tbody><row><entry
377 <para>File descriptor returned by a previous call to open().</para>
381 <para>int request</para>
384 <para>Equals AUDIO_STOP for this command.</para>
386 </row></tbody></tgroup></informaltable>
389 </section><section id="AUDIO_PLAY"
390 role="subsection"><title>AUDIO_PLAY</title>
393 <informaltable><tgroup cols="1"><tbody><row><entry
395 <para>This ioctl call asks the Audio Device to start playing an audio stream from the
396 selected source.</para>
398 </row></tbody></tgroup></informaltable>
401 <informaltable><tgroup cols="1"><tbody><row><entry
403 <para>int ioctl(int fd, int request = AUDIO_PLAY);</para>
405 </row></tbody></tgroup></informaltable>
408 <informaltable><tgroup cols="2"><tbody><row><entry
413 <para>File descriptor returned by a previous call to open().</para>
417 <para>int request</para>
420 <para>Equals AUDIO_PLAY for this command.</para>
422 </row></tbody></tgroup></informaltable>
425 </section><section id="AUDIO_PAUSE"
426 role="subsection"><title>AUDIO_PAUSE</title>
429 <informaltable><tgroup cols="1"><tbody><row><entry
431 <para>This ioctl call suspends the audio stream being played. Decoding and playing
432 are paused. It is then possible to restart again decoding and playing process of
433 the audio stream using AUDIO_CONTINUE command.</para>
437 <para>If AUDIO_SOURCE_MEMORY is selected in the ioctl call
438 AUDIO_SELECT_SOURCE, the DVB-subsystem will not decode (consume)
439 any more data until the ioctl call AUDIO_CONTINUE or AUDIO_PLAY is
442 </row></tbody></tgroup></informaltable>
445 <informaltable><tgroup cols="1"><tbody><row><entry
447 <para>int ioctl(int fd, int request = AUDIO_PAUSE);</para>
449 </row></tbody></tgroup></informaltable>
452 <informaltable><tgroup cols="2"><tbody><row><entry
457 <para>File descriptor returned by a previous call to open().</para>
461 <para>int request</para>
464 <para>Equals AUDIO_PAUSE for this command.</para>
466 </row></tbody></tgroup></informaltable>
469 </section><section id="AUDIO_CONTINUE"
470 role="subsection"><title>AUDIO_CONTINUE</title>
473 <informaltable><tgroup cols="1"><tbody><row><entry
475 <para>This ioctl restarts the decoding and playing process previously paused
476 with AUDIO_PAUSE command.</para>
480 <para>It only works if the stream were previously stopped with AUDIO_PAUSE</para>
482 </row></tbody></tgroup></informaltable>
485 <informaltable><tgroup cols="1"><tbody><row><entry
487 <para>int ioctl(int fd, int request = AUDIO_CONTINUE);</para>
489 </row></tbody></tgroup></informaltable>
492 <informaltable><tgroup cols="2"><tbody><row><entry
497 <para>File descriptor returned by a previous call to open().</para>
501 <para>int request</para>
504 <para>Equals AUDIO_CONTINUE for this command.</para>
506 </row></tbody></tgroup></informaltable>
509 </section><section id="AUDIO_SELECT_SOURCE"
510 role="subsection"><title>AUDIO_SELECT_SOURCE</title>
513 <informaltable><tgroup cols="1"><tbody><row><entry
515 <para>This ioctl call informs the audio device which source shall be used
516 for the input data. The possible sources are demux or memory. If
517 AUDIO_SOURCE_MEMORY is selected, the data is fed to the Audio Device
518 through the write command.</para>
520 </row></tbody></tgroup></informaltable>
523 <informaltable><tgroup cols="1"><tbody><row><entry
525 <para>int ioctl(int fd, int request = AUDIO_SELECT_SOURCE,
526 audio_stream_source_t source);</para>
528 </row></tbody></tgroup></informaltable>
531 <informaltable><tgroup cols="2"><tbody><row><entry
536 <para>File descriptor returned by a previous call to open().</para>
540 <para>int request</para>
543 <para>Equals AUDIO_SELECT_SOURCE for this command.</para>
547 <para>audio_stream_source_t
551 <para>Indicates the source that shall be used for the Audio
554 </row></tbody></tgroup></informaltable>
557 </section><section id="AUDIO_SET_MUTE"
558 role="subsection"><title>AUDIO_SET_MUTE</title>
561 <informaltable><tgroup cols="1"><tbody><row><entry
563 <para>This ioctl call asks the audio device to mute the stream that is currently being
566 </row></tbody></tgroup></informaltable>
569 <informaltable><tgroup cols="1"><tbody><row><entry
571 <para>int ioctl(int fd, int request = AUDIO_SET_MUTE,
572 boolean state);</para>
574 </row></tbody></tgroup></informaltable>
577 <informaltable><tgroup cols="2"><tbody><row><entry
582 <para>File descriptor returned by a previous call to open().</para>
586 <para>int request</para>
589 <para>Equals AUDIO_SET_MUTE for this command.</para>
593 <para>boolean state</para>
596 <para>Indicates if audio device shall mute or not.</para>
602 <para>TRUE Audio Mute</para>
608 <para>FALSE Audio Un-mute</para>
610 </row></tbody></tgroup></informaltable>
613 </section><section id="AUDIO_SET_AV_SYNC"
614 role="subsection"><title>AUDIO_SET_AV_SYNC</title>
617 <informaltable><tgroup cols="1"><tbody><row><entry
619 <para>This ioctl call asks the Audio Device to turn ON or OFF A/V synchronization.</para>
621 </row></tbody></tgroup></informaltable>
624 <informaltable><tgroup cols="1"><tbody><row><entry
626 <para>int ioctl(int fd, int request = AUDIO_SET_AV_SYNC,
627 boolean state);</para>
629 </row></tbody></tgroup></informaltable>
632 <informaltable><tgroup cols="2"><tbody><row><entry
637 <para>File descriptor returned by a previous call to open().</para>
641 <para>int request</para>
644 <para>Equals AUDIO_AV_SYNC for this command.</para>
648 <para>boolean state</para>
651 <para>Tells the DVB subsystem if A/V synchronization shall be
658 <para>TRUE AV-sync ON</para>
664 <para>FALSE AV-sync OFF</para>
666 </row></tbody></tgroup></informaltable>
669 </section><section id="AUDIO_SET_BYPASS_MODE"
670 role="subsection"><title>AUDIO_SET_BYPASS_MODE</title>
673 <informaltable><tgroup cols="1"><tbody><row><entry
675 <para>This ioctl call asks the Audio Device to bypass the Audio decoder and forward
676 the stream without decoding. This mode shall be used if streams that can’t be
677 handled by the DVB system shall be decoded. Dolby DigitalTM streams are
678 automatically forwarded by the DVB subsystem if the hardware can handle it.</para>
680 </row></tbody></tgroup></informaltable>
683 <informaltable><tgroup cols="1"><tbody><row><entry
685 <para>int ioctl(int fd, int request =
686 AUDIO_SET_BYPASS_MODE, boolean mode);</para>
688 </row></tbody></tgroup></informaltable>
691 <informaltable><tgroup cols="2"><tbody><row><entry
696 <para>File descriptor returned by a previous call to open().</para>
700 <para>int request</para>
703 <para>Equals AUDIO_SET_BYPASS_MODE for this
708 <para>boolean mode</para>
711 <para>Enables or disables the decoding of the current Audio
712 stream in the DVB subsystem.</para>
718 <para>TRUE Bypass is disabled</para>
724 <para>FALSE Bypass is enabled</para>
726 </row></tbody></tgroup></informaltable>
729 </section><section id="AUDIO_CHANNEL_SELECT"
730 role="subsection"><title>AUDIO_CHANNEL_SELECT</title>
733 <informaltable><tgroup cols="1"><tbody><row><entry
735 <para>This ioctl call asks the Audio Device to select the requested channel if possible.</para>
737 </row></tbody></tgroup></informaltable>
740 <informaltable><tgroup cols="1"><tbody><row><entry
742 <para>int ioctl(int fd, int request =
743 AUDIO_CHANNEL_SELECT, audio_channel_select_t);</para>
745 </row></tbody></tgroup></informaltable>
748 <informaltable><tgroup cols="2"><tbody><row><entry
753 <para>File descriptor returned by a previous call to open().</para>
757 <para>int request</para>
760 <para>Equals AUDIO_CHANNEL_SELECT for this
765 <para>audio_channel_select_t
769 <para>Select the output format of the audio (mono left/right,
772 </row></tbody></tgroup></informaltable>
775 </section><section id="AUDIO_GET_STATUS"
776 role="subsection"><title>AUDIO_GET_STATUS</title>
779 <informaltable><tgroup cols="1"><tbody><row><entry
781 <para>This ioctl call asks the Audio Device to return the current state of the Audio
784 </row></tbody></tgroup></informaltable>
787 <informaltable><tgroup cols="1"><tbody><row><entry
789 <para>int ioctl(int fd, int request = AUDIO_GET_STATUS,
790 struct audio_status ⋆status);</para>
792 </row></tbody></tgroup></informaltable>
795 <informaltable><tgroup cols="2"><tbody><row><entry
800 <para>File descriptor returned by a previous call to open().</para>
804 <para>int request</para>
807 <para>Equals AUDIO_GET_STATUS for this command.</para>
811 <para>struct audio_status
815 <para>Returns the current state of Audio Device.</para>
817 </row></tbody></tgroup></informaltable>
820 </section><section id="AUDIO_GET_CAPABILITIES"
821 role="subsection"><title>AUDIO_GET_CAPABILITIES</title>
824 <informaltable><tgroup cols="1"><tbody><row><entry
826 <para>This ioctl call asks the Audio Device to tell us about the decoding capabilities
827 of the audio hardware.</para>
829 </row></tbody></tgroup></informaltable>
832 <informaltable><tgroup cols="1"><tbody><row><entry
834 <para>int ioctl(int fd, int request =
835 AUDIO_GET_CAPABILITIES, unsigned int ⋆cap);</para>
837 </row></tbody></tgroup></informaltable>
840 <informaltable><tgroup cols="2"><tbody><row><entry
845 <para>File descriptor returned by a previous call to open().</para>
849 <para>int request</para>
852 <para>Equals AUDIO_GET_CAPABILITIES for this
857 <para>unsigned int *cap</para>
860 <para>Returns a bit array of supported sound formats.</para>
862 </row></tbody></tgroup></informaltable>
865 </section><section id="AUDIO_CLEAR_BUFFER"
866 role="subsection"><title>AUDIO_CLEAR_BUFFER</title>
869 <informaltable><tgroup cols="1"><tbody><row><entry
871 <para>This ioctl call asks the Audio Device to clear all software and hardware buffers
872 of the audio decoder device.</para>
874 </row></tbody></tgroup></informaltable>
877 <informaltable><tgroup cols="1"><tbody><row><entry
879 <para>int ioctl(int fd, int request = AUDIO_CLEAR_BUFFER);</para>
881 </row></tbody></tgroup></informaltable>
884 <informaltable><tgroup cols="2"><tbody><row><entry
889 <para>File descriptor returned by a previous call to open().</para>
893 <para>int request</para>
896 <para>Equals AUDIO_CLEAR_BUFFER for this command.</para>
898 </row></tbody></tgroup></informaltable>
901 </section><section id="AUDIO_SET_ID"
902 role="subsection"><title>AUDIO_SET_ID</title>
905 <informaltable><tgroup cols="1"><tbody><row><entry
907 <para>This ioctl selects which sub-stream is to be decoded if a program or system
908 stream is sent to the video device. If no audio stream type is set the id has to be
909 in [0xC0,0xDF] for MPEG sound, in [0x80,0x87] for AC3 and in [0xA0,0xA7]
910 for LPCM. More specifications may follow for other stream types. If the stream
911 type is set the id just specifies the substream id of the audio stream and only
912 the first 5 bits are recognized.</para>
914 </row></tbody></tgroup></informaltable>
917 <informaltable><tgroup cols="1"><tbody><row><entry
919 <para>int ioctl(int fd, int request = AUDIO_SET_ID, int
922 </row></tbody></tgroup></informaltable>
925 <informaltable><tgroup cols="2"><tbody><row><entry
930 <para>File descriptor returned by a previous call to open().</para>
934 <para>int request</para>
937 <para>Equals AUDIO_SET_ID for this command.</para>
944 <para>audio sub-stream id</para>
946 </row></tbody></tgroup></informaltable>
949 </section><section id="AUDIO_SET_MIXER"
950 role="subsection"><title>AUDIO_SET_MIXER</title>
953 <informaltable><tgroup cols="1"><tbody><row><entry
955 <para>This ioctl lets you adjust the mixer settings of the audio decoder.</para>
957 </row></tbody></tgroup></informaltable>
960 <informaltable><tgroup cols="1"><tbody><row><entry
962 <para>int ioctl(int fd, int request = AUDIO_SET_MIXER,
963 audio_mixer_t ⋆mix);</para>
965 </row></tbody></tgroup></informaltable>
968 <informaltable><tgroup cols="2"><tbody><row><entry
973 <para>File descriptor returned by a previous call to open().</para>
977 <para>int request</para>
980 <para>Equals AUDIO_SET_ID for this command.</para>
984 <para>audio_mixer_t *mix</para>
987 <para>mixer settings.</para>
989 </row></tbody></tgroup></informaltable>
992 </section><section id="AUDIO_SET_STREAMTYPE"
993 role="subsection"><title>AUDIO_SET_STREAMTYPE</title>
996 <informaltable><tgroup cols="1"><tbody><row><entry
998 <para>This ioctl tells the driver which kind of audio stream to expect. This is useful
999 if the stream offers several audio sub-streams like LPCM and AC3.</para>
1001 </row></tbody></tgroup></informaltable>
1004 <informaltable><tgroup cols="1"><tbody><row><entry
1006 <para>int ioctl(fd, int request = AUDIO_SET_STREAMTYPE,
1009 </row></tbody></tgroup></informaltable>
1012 <informaltable><tgroup cols="2"><tbody><row><entry
1017 <para>File descriptor returned by a previous call to open().</para>
1021 <para>int request</para>
1024 <para>Equals AUDIO_SET_STREAMTYPE for this
1029 <para>int type</para>
1032 <para>stream type</para>
1034 </row></tbody></tgroup></informaltable>
1036 <informaltable><tgroup cols="2"><tbody><row><entry
1041 <para>type is not a valid or supported stream type.</para>
1043 </row></tbody></tgroup></informaltable>
1045 </section><section id="AUDIO_SET_EXT_ID"
1046 role="subsection"><title>AUDIO_SET_EXT_ID</title>
1049 <informaltable><tgroup cols="1"><tbody><row><entry
1051 <para>This ioctl can be used to set the extension id for MPEG streams in DVD
1052 playback. Only the first 3 bits are recognized.</para>
1054 </row></tbody></tgroup></informaltable>
1057 <informaltable><tgroup cols="1"><tbody><row><entry
1059 <para>int ioctl(fd, int request = AUDIO_SET_EXT_ID, int
1062 </row></tbody></tgroup></informaltable>
1065 <informaltable><tgroup cols="2"><tbody><row><entry
1070 <para>File descriptor returned by a previous call to open().</para>
1074 <para>int request</para>
1077 <para>Equals AUDIO_SET_EXT_ID for this command.</para>
1084 <para>audio sub_stream_id</para>
1086 </row></tbody></tgroup></informaltable>
1088 <informaltable><tgroup cols="2"><tbody><row><entry
1093 <para>id is not a valid id.</para>
1095 </row></tbody></tgroup></informaltable>
1097 </section><section id="AUDIO_SET_ATTRIBUTES"
1098 role="subsection"><title>AUDIO_SET_ATTRIBUTES</title>
1101 <informaltable><tgroup cols="1"><tbody><row><entry
1103 <para>This ioctl is intended for DVD playback and allows you to set certain
1104 information about the audio stream.</para>
1106 </row></tbody></tgroup></informaltable>
1109 <informaltable><tgroup cols="1"><tbody><row><entry
1111 <para>int ioctl(fd, int request = AUDIO_SET_ATTRIBUTES,
1112 audio_attributes_t attr );</para>
1114 </row></tbody></tgroup></informaltable>
1117 <informaltable><tgroup cols="2"><tbody><row><entry
1122 <para>File descriptor returned by a previous call to open().</para>
1126 <para>int request</para>
1129 <para>Equals AUDIO_SET_ATTRIBUTES for this command.</para>
1133 <para>audio_attributes_t
1137 <para>audio attributes according to section ??</para>
1139 </row></tbody></tgroup></informaltable>
1141 <informaltable><tgroup cols="2"><tbody><row><entry
1146 <para>attr is not a valid or supported attribute setting.</para>
1148 </row></tbody></tgroup></informaltable>
1150 </section><section id="AUDIO_SET_KARAOKE"
1151 role="subsection"><title>AUDIO_SET_KARAOKE</title>
1154 <informaltable><tgroup cols="1"><tbody><row><entry
1156 <para>This ioctl allows one to set the mixer settings for a karaoke DVD.</para>
1158 </row></tbody></tgroup></informaltable>
1161 <informaltable><tgroup cols="1"><tbody><row><entry
1163 <para>int ioctl(fd, int request = AUDIO_SET_KARAOKE,
1164 audio_karaoke_t ⋆karaoke);</para>
1166 </row></tbody></tgroup></informaltable>
1169 <informaltable><tgroup cols="2"><tbody><row><entry
1174 <para>File descriptor returned by a previous call to open().</para>
1178 <para>int request</para>
1181 <para>Equals AUDIO_SET_KARAOKE for this
1186 <para>audio_karaoke_t
1190 <para>karaoke settings according to section ??.</para>
1192 </row></tbody></tgroup></informaltable>
1194 <informaltable><tgroup cols="2"><tbody><row><entry
1199 <para>karaoke is not a valid or supported karaoke setting.</para>
1201 </row></tbody></tgroup></informaltable>