hal/doc/spec hal-spec.xml.in,1.43,1.44

Danny Kukawka dkukawka at freedesktop.org
Fri Aug 5 03:57:23 PDT 2005


Update of /cvs/hal/hal/doc/spec
In directory gabe:/tmp/cvs-serv24562/doc/spec

Modified Files:
	hal-spec.xml.in 
Log Message:
2005-08-05  Danny Kukawka  <danny.kukawka at web.de>

        * doc/spec/hal-spec.xml.in: Added new namespace for OSS devices
        and updated ALSA namespace for new devices.

        * hald/linux2/classdev.c, hald/linux2/classdev.h (sound_add),
        (sound_compute_udi): Added OSS devices and ALSA/OSS global devices.
        OSS devices are only added if the kernel supports device links to the
        related physical device. Adapted sound_compute_udi() to generate
        UDIs for the new devices. For the required kernel patch (going
        upstream soon) see:
        http://thread.gmane.org/gmane.comp.freedesktop.hal/2862



Index: hal-spec.xml.in
===================================================================
RCS file: /cvs/hal/hal/doc/spec/hal-spec.xml.in,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- hal-spec.xml.in	1 Aug 2005 17:19:05 -0000	1.43
+++ hal-spec.xml.in	5 Aug 2005 10:57:21 -0000	1.44
@@ -3579,6 +3579,24 @@
            </row>
            <row>
              <entry></entry>
+             <entry><literal>timer</literal></entry>
+             <entry></entry>
+             <entry>
+               Stream is the global ALSA timer device.
+               This means, the device is for all ALSA devices/cards.
+             </entry>
+           </row>
+           <row>
+             <entry></entry>
+             <entry><literal>sequencer</literal></entry>
+             <entry></entry>
+             <entry>
+               Stream is the global ALSA sequencer device.
+               This means, the device is for all ALSA devices/cards.
+             </entry>
+           </row>
+           <row>
+             <entry></entry>
              <entry><literal>unknown</literal></entry>
              <entry></entry>
              <entry>
@@ -3590,6 +3608,139 @@
       </informaltable>
     </sect2>
 
+   <sect2 id="device-properties-oss">
+      <title><literal>oss</literal> namespace</title>
+      <para>
+
+       Device objects with the capability <literal>oss</literal>
+       represent all the streams available through OSS on a soundcard.
+       OSS devices could be emulated by ALSA.  
+       
+       <note>
+        <para> 
+         All OSS devices, except the global devices, are only added if the 
+         kernel supports links from oss device to physical device in sysfs. For a patch 
+         see:  http://thread.gmane.org/gmane.comp.freedesktop.hal/2862.
+        </para>
+       </note>
+      </para>
+      <informaltable>
+        <tgroup cols="2">
+          <thead>
+            <row>
+              <entry>Key (type)</entry>
+              <entry>Values</entry>
+              <entry>Mandatory</entry>
+              <entry>Description</entry>
+            </row>
+          </thead>
+          <tbody>
+            <row>
+              <entry><literal>oss.card</literal> (int)</entry>
+              <entry></entry>
+              <entry>Yes</entry>
+              <entry>
+		Card number in system as registered by OSS (and/or ALSA).
+             </entry>
+            </row>
+            <row>
+              <entry><literal>oss.card_id</literal> (string)</entry>
+              <entry>
+                Examples: <literal>I82801DBICH4</literal>, <literal>MP3</literal>
+              </entry>
+              <entry>No</entry>
+              <entry>
+		Textual description of the card.
+             </entry>
+            </row>
+            <row>
+              <entry><literal>oss.device</literal> (int)</entry>
+              <entry></entry>
+              <entry>Yes</entry>
+              <entry>
+		Device number assigned by OSS/ALSA for a current card.
+             </entry>
+            </row>
+            <row>
+              <entry><literal>alsa.device_file</literal> (string)</entry>
+              <entry></entry>
+              <entry>Yes</entry>
+              <entry>
+		The device node to access the OSS device.
+             </entry>
+            </row>
+            <row>
+              <entry><literal>oss.device_id</literal> (string)</entry>
+              <entry>
+                Examples: <literal>Intel 82801DB-ICH4 MIC2 ADC</literal>
+              </entry>
+              <entry>No</entry>
+              <entry>
+		Textual description of the specific device for a card
+             </entry>
+            </row>
+            <row>
+              <entry><literal>oss.physical_device</literal> (string)</entry>
+              <entry></entry>
+              <entry>Yes</entry>
+              <entry>
+		UDI of the physical device the OSS device is bound to.
+             </entry>
+           </row>
+            <row>
+              <entry><literal>oss.type</literal> (string)</entry>
+              <entry></entry>
+              <entry>Yes</entry>
+              <entry>
+               The type of the stream.
+             </entry>
+            </row>
+           <row>
+             <entry></entry>
+             <entry><literal>mixer</literal></entry>
+             <entry></entry>
+             <entry>
+               Stream is control/mixer device.
+             </entry>
+           </row>
+           <row>
+             <entry></entry>
+             <entry><literal>pcm</literal></entry>
+             <entry></entry>
+             <entry>
+               Stream is PCM device.
+             </entry>
+           </row>
+           <row>
+             <entry></entry>
+             <entry><literal>midi</literal></entry>
+             <entry></entry>
+             <entry>
+               Stream is MIDI device.
+             </entry>
+           </row>
+           <row>
+             <entry></entry>
+             <entry><literal>sequencer</literal></entry>
+             <entry></entry>
+             <entry>
+               Stream is a global OSS sequencer device.
+               This means, the device is for all OSS devices/cards.
+             </entry>
+           </row>
+           <row>
+             <entry></entry>
+             <entry><literal>unknown</literal></entry>
+             <entry></entry>
+             <entry>
+               Stream is unknown device.
+             </entry>
+           </row>
+          </tbody>
+        </tgroup>
+      </informaltable>
+    </sect2>
+    
     <sect2 id="device-properties-camera">
       <title><literal>camera</literal> namespace</title>
       <para>




More information about the hal-commit mailing list