configuration: add application classes and volume control to basic script
[profile/ivi/pulseaudio-module-murphy-ivi.git] / murphy / murphy-ivi.lua
1
2 routing_group {
3     name = "default",
4     node_type = node.output,
5     accept = builtin.method.accept_default,
6     compare = builtin.method.compare_default
7 }
8
9 routing_group {
10     name = "phone",
11     node_type = node.input,
12     accept = builtin.method.accept_phone,
13     compare = builtin.method.compare_phone
14 }
15
16 routing_group {
17     name = "phone",
18     node_type = node.output,
19     accept = builtin.method.accept_phone,
20     compare = builtin.method.compare_phone
21 }
22
23 application_class {
24     node_type = node.phone,
25     priority = 4,
26     route = {
27         input = routing_group.phone_input,
28         output = routing_group.phone_output
29     }
30 }
31
32 application_class {
33     node_type = node.radio,
34     priority = 1,
35     route = {
36         output = routing_group.default_output
37     }
38 }
39
40 application_class {
41     node_type = node.player,
42     priority = 1,
43     route = {
44         output = routing_group.default_output
45     }
46 }
47
48 application_class {
49     node_type = node.navigator,
50     priority = 2,
51     route = {
52         output = routing_group.default_output
53     }
54 }
55
56 application_class {
57     node_type = node.game,
58     priority = 3,
59     route = {
60         output = routing_group.default_output
61     }
62 }
63
64 application_class {
65     node_type = node.browser,
66     priority = 1,
67     route = {
68         output = routing_group.default_output
69     }
70 }
71
72 application_class {
73     node_type = node.event,
74     priority = 5,
75     route = {
76         output = routing_group.default_output
77     }
78 }
79
80 volume_limit {
81     name = "speed_adjust",
82     type = volume_limit.generic,
83     limit = -10;
84     calculate = builtin.method.volume_correct
85 }
86
87 volume_limit {
88     name = "suppress",
89     type = volume_limit.class,
90     limit = -20;
91     node_type = { node.phone, node.navigator },
92     calculate = builtin.method.volume_supress
93 }