Comment 5 for bug 1827826

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

the checkbox-support parser needs to take into account the optional ALSA UCM pretags [1]:

#define PA_UCM_PRE_TAG_OUTPUT "[Out] "
#define PA_UCM_PRE_TAG_INPUT "[In] "

[1] https://github.com/pulseaudio/pulseaudio/blob/master/src/modules/alsa/alsa-ucm.c#L55

The parser syntax for Port and PortWithProfile requires the following patch:

    __syntax__ = (
+ p.Optional('[Out] ').suppress()
+ + p.Optional('[In] ').suppress()
        + p.Word(p.alphanums + "-;").setResultsName('port-name')