diff options
author | Alan Horstmann <gineera@aspect135.co.uk> | 2007-06-04 17:11:23 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-07-20 05:11:23 -0400 |
commit | 1919de0a9e939ef4f9453ef1630ca1345991e144 (patch) | |
tree | 019b662d29a7f6c278c4ea6f4ad8bbd562bf74f6 /Documentation/sound | |
parent | 3b194401a31b8df9a07a1850e3fe44fc7ba832a4 (diff) |
[ALSA] More description on duplex streams with OSS emulation
Add paragraph to the OSS document to clarify correct use of duplex streams.
Signed-off-by: Alan Horstmann <gineera@aspect135.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'Documentation/sound')
-rw-r--r-- | Documentation/sound/alsa/OSS-Emulation.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/sound/alsa/OSS-Emulation.txt b/Documentation/sound/alsa/OSS-Emulation.txt index ec2a02541d5b..bfa0c9aacb4b 100644 --- a/Documentation/sound/alsa/OSS-Emulation.txt +++ b/Documentation/sound/alsa/OSS-Emulation.txt | |||
@@ -278,6 +278,21 @@ current mixer configuration by reading and writing the whole file | |||
278 | image. | 278 | image. |
279 | 279 | ||
280 | 280 | ||
281 | Duplex Streams | ||
282 | ============== | ||
283 | |||
284 | Note that when attempting to use a single device file for playback and | ||
285 | capture, the OSS API provides no way to set the format, sample rate or | ||
286 | number of channels different in each direction. Thus | ||
287 | io_handle = open("device", O_RDWR) | ||
288 | will only function correctly if the values are the same in each direction. | ||
289 | |||
290 | To use different values in the two directions, use both | ||
291 | input_handle = open("device", O_RDONLY) | ||
292 | output_handle = open("device", O_WRONLY) | ||
293 | and set the values for the corresponding handle. | ||
294 | |||
295 | |||
281 | Unsupported Features | 296 | Unsupported Features |
282 | ==================== | 297 | ==================== |
283 | 298 | ||