From 524fda5f1b034b6040ea5649b06977fae6257f8c Mon Sep 17 00:00:00 2001 From: Alan Horstmann Date: Mon, 4 Jun 2007 23:11:23 +0200 Subject: [PATCH] --- yaml --- r: 62053 b: refs/heads/master c: 1919de0a9e939ef4f9453ef1630ca1345991e144 h: refs/heads/master i: 62051: 94ac8064f6eb28475e232b450f583a9ed69559b9 v: v3 --- [refs] | 2 +- trunk/Documentation/sound/alsa/OSS-Emulation.txt | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index e856cdd8dd86..712a355230c6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3b194401a31b8df9a07a1850e3fe44fc7ba832a4 +refs/heads/master: 1919de0a9e939ef4f9453ef1630ca1345991e144 diff --git a/trunk/Documentation/sound/alsa/OSS-Emulation.txt b/trunk/Documentation/sound/alsa/OSS-Emulation.txt index ec2a02541d5b..bfa0c9aacb4b 100644 --- a/trunk/Documentation/sound/alsa/OSS-Emulation.txt +++ b/trunk/Documentation/sound/alsa/OSS-Emulation.txt @@ -278,6 +278,21 @@ current mixer configuration by reading and writing the whole file image. +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 ====================