summaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc/4a-softmixer-config.json
blob: db1370590105c98cfd8ada12268c8ae706f92238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
    "schema": "To Be Defined",
    "metadata": {
        "uid": "Soft Mixer",
        "version": "1.0",
        "api": "softmixer",
        "info": "Soft Mixer emulating hardware mixer",
        "require": ["alsacore"]
    },
    "plugins": [
        {
            "uid": "alsa-router",
            "ldpath": "package/lib/plugins",
            "lua2c": ["AlsaDmix", "AlsaRouter"],
            "info": "Map alsa-loop subdevices to 4A HAL streams"
        }
    ],

    "onload": [
        {
            "uid": "init-soft-mixer",
            "info": "Initialise Audio Router",
            "lua": "_init_softmixer_"
        }
    ],

    "sndcards": [
        {
            "uid": "Focusrite_Scarlett_18i8",
            "info": "Focusrite 18i8",
            "device": "/dev/snd/by-id/usb-Focusrite_Scarlett_18i8_USB_10004EE6-00",
            "action": {
                "uid": "init-snd-card",
                "function": "lua://init-focusrite"
            },
            "channels": {
                "sink": [
                    {
                        "type": "FrontLeftFullRange",
                        "port": 0
                    },
                    {
                        "type": "FrontRightFullRange",
                        "port": 1
                    },
                    {
                        "type": "RearLeftFullRange",
                        "port": 2
                    },
                    {
                        "type": "FrontRightFullRange",
                        "port": 3
                    },
                    {
                        "type": "Center",
                        "port": 4
                    },
                    {
                        "type": "LFE",
                        "port": 5
                    }
                ],
                "source": [
                    {
                        "uid": "FrontRightMic",
                        "type": "Directional",
                        "port": 0
                    }
                ]
            }
        }
    ],

    "streams": [{
            "uid": "alsa-loop",
            "dev": "/dev/snd/by-path/platform-snd_aloop.0",
            "subdev": 0,
            "count": 8
        }],

    "controls": [
        {
            "uid": "stream",
            "callback": {
                "plugin": "alsa-router",
                "function": "stream_ctl"
            }
        },
        {
            "uid": "zone",
            "callback": {
                "plugin": "alsa-router",
                "function": "zone_ctl"
            }
        }
    ]
}