Commit:     1919de0a9e939ef4f9453ef1630ca1345991e144
Parent:     3b194401a31b8df9a07a1850e3fe44fc7ba832a4
Author:     Alan Horstmann <[EMAIL PROTECTED]>
AuthorDate: Mon Jun 4 23:11:23 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Fri Jul 20 11:11:23 2007 +0200

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
 Documentation/sound/alsa/OSS-Emulation.txt |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/Documentation/sound/alsa/OSS-Emulation.txt 
index ec2a025..bfa0c9a 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
+Duplex Streams
+Note that when attempting to use a single device file for playback and
+capture, the OSS API provides no way to set the format, sample rate or
+number of channels different in each direction.  Thus
+       io_handle = open("device", O_RDWR)
+will only function correctly if the values are the same in each direction.
+To use different values in the two directions, use both
+       input_handle = open("device", O_RDONLY)
+       output_handle = open("device", O_WRONLY)
+and set the values for the corresponding handle.
 Unsupported Features
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to