]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsatplg: add man file
authorJaroslav Kysela <perex@perex.cz>
Tue, 9 Oct 2018 08:53:08 +0000 (10:53 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 9 Oct 2018 08:53:32 +0000 (10:53 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsaucm/Makefile.am
topology/Makefile.am
topology/alsatplg.rst [new file with mode: 0644]

index 651f678696c8e4817edcb6257dcf38e3fb11906e..29d7466012f35d039a24f5a852905153c1a2f6c6 100644 (file)
@@ -28,4 +28,4 @@ edit = \
 
 EXTRA_DIST = alsaucm.rst 89-alsa-ucm.rules.in
 
-CLEANFILES = 89-alsa-ucm.rules
+CLEANFILES = alsaucm.1 89-alsa-ucm.rules
index c370b149f632342c621b421f1b927bb1edebb580..de190ab899b6caf2e7af08a5acd92ac228f3f081 100644 (file)
@@ -1,6 +1,13 @@
 bin_PROGRAMS = \
        alsatplg
 
+if USE_RST2MAN
+man_MANS = alsatplg.1
+endif
+
+%.1: %.rst
+       rst2man $< > $@
+
 alsatplg_SOURCES = topology.c
 
 AM_CPPFLAGS = \
@@ -8,3 +15,6 @@ AM_CPPFLAGS = \
 
 alsatplg_LDADD = -lasound
 
+EXTRA_DIST = alsatplg.rst
+
+CLEANFILES = alsatplg.1
\ No newline at end of file
diff --git a/topology/alsatplg.rst b/topology/alsatplg.rst
new file mode 100644 (file)
index 0000000..855edff
--- /dev/null
@@ -0,0 +1,81 @@
+==========
+ alsatplg
+==========
+
+----------------------
+ALSA Topology Compiler
+----------------------
+
+:Author: Jaroslav Kysela <perex@perex.cz>
+:Date:   2018-10-09
+:Copyright: GPLv2+
+:Manual section: 1
+:Manual group: General Commands Manual
+
+SYNOPSIS
+========
+
+*alsatplg* <options> [command]
+
+DESCRIPTION
+===========
+
+alsatplg (ALSA Topology compiler) is a program to compile topology
+configuration file to the binary file for the kernel drivers.
+
+Current audio drivers typically hard code topology information
+in the driver sources: This tightly couples the audio driver
+to the development board making it time consuming to modify
+a driver to work on a different devices. The driver is also
+tightly coupled to the DSP firmware version meaning extra care
+is needed to keep the driver and firmware version in sync.
+New firmware features also mean driver updates.
+
+The ALSA topology project removes the need for re-writing or
+porting audio drivers to different devices or different firmwares:
+Drivers have no hard coded topology data meaning a single driver
+can be used on different devices by updating the topology data
+from the file system. Firmware updates can be pushed without
+having to update the drivers. The new firmware just needs
+to include an updated topology file describing the update.
+
+OPTIONS
+=======
+
+Available options:
+
+  **-h**, **--help**
+    this help
+
+  **-c**, **--compile** `FILE`
+    source configuration file for the compilation
+
+  **-o**, **--output** `FILE`
+    output binary file
+
+  **-v**, **--verbose** `LEVEL`
+    set verbose level
+
+
+FILES
+=====
+
+The master topology files for each supported sound card are in
+``/usr/share/alsa/topology``.
+
+For example, the master use case file for the `broadwell` card is in
+``/usr/share/alsa/topology/broadwell/broadwell.conf``, this file
+describes the audio hardware for the driver.
+
+For more details on the syntax of UCM files, see the alsa-lib source code:
+http://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=src/topology/parser.c
+
+SEE ALSO
+========
+
+* Topology Interface: http://www.alsa-project.org/alsa-doc/alsa-lib/group__topology.html
+
+BUGS
+====
+
+None known.