alsa-lib/src/rawmidi
Jaroslav Kysela 8f5779eb3f ucm: add LibraryConfig support
This commit allows to define private alsa-lib's configuration. When
the configuration is present, the device values ("PlaybackCTL",
"CaptureCTL", "PlaybackMixer", "CaptureMixer", "CapturePCM")
are prefixed with '_ucmHEXA.' string where HEXA is replaced by the
unique hexadecimal number identifying the opened ucm manager handle.

    Syntax 4

    LibraryConfig.a_label.SubstiConfig {
            # substituted library configuration like:
            usr_share_dir "${ConfLibDir}"
    }

    LibraryConfig.b_label.Config {
            # non-substituted library configuration like:
            usr_share_dir "/usr/share/alsa"
    }

    The File counterparts:

    LibraryConfig.c_label.SubstiFile "/some/path"
    LibraryConfig.d_label.File "/some/path"

Note that for files the contents is substituted on the request,
but the file name is always substituted (useful for ${ConfDir} etc.).

The private configuration is not saved or preserved. It's life time
belongs to the opened ucm manager handle.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-04-13 17:14:28 +02:00
..
Makefile.am autotools: update style 2014-02-26 08:16:22 +01:00
rawmidi.c ucm: add LibraryConfig support 2021-04-13 17:14:28 +02:00
rawmidi_hw.c conf: introduce snd_config_get_card() function 2021-02-26 21:08:28 +01:00
rawmidi_local.h rawmidi: use snd_dlobj_cache_get2() in rawmidi open (coverity) 2019-05-24 21:25:50 +02:00
rawmidi_symbols.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
rawmidi_virt.c rawmidi: fix memory leak in snd_rawmidi_virtual_open 2020-12-27 09:23:20 +01:00