1 zone { name = "driver" }
2 zone { name = "passanger1" }
3 zone { name = "passanger2" }
4 zone { name = "passanger3" }
5 zone { name = "passanger4" }
8 name = "default_driver",
9 node_type = node.output,
10 accept = function(self, n)
11 return (n.type ~= node.bluetooth_carkit and n.type ~= node.hdmi)
13 compare = builtin.method.compare_default
17 name = "default_passanger1",
18 node_type = node.output,
19 accept = function(self, n)
20 return (n.type == node.hdmi or n.name == 'Silent')
22 compare = builtin.method.compare_default
27 node_type = node.input,
28 accept = builtin.method.accept_phone,
29 compare = builtin.method.compare_phone
34 node_type = node.output,
35 accept = builtin.method.accept_phone,
36 compare = builtin.method.compare_phone
40 node_type = node.event,
43 output = { driver = routing_group.default_driver_output }
45 roles = { event = no_resource }
50 node_type = node.phone,
53 input = { driver = routing_group.phone_input },
54 output = {driver = routing_group.phone_output }
56 roles = { phone = no_resource, carkit = no_resource }
60 node_type = node.alert,
63 output = { driver = routing_group.default_driver_output },
65 roles = { ringtone = no_resource, alarm = no_resource }
70 node_type = node.navigator,
73 output = { driver = routing_group.default_driver_output,
74 passanger1 = routing_group.default_passanger1_output }
76 roles = { navigator = {0, "autorelease", "mandatory", "shared"} }
81 node_type = node.game,
84 output = { driver = routing_group.default_driver_output,
85 passanger1 = routing_group.default_passanger1_output }
87 roles = { game = {0, "mandatory", "exclusive"} }
92 node_type = node.radio,
95 output = { driver = routing_group.default_driver_output }
97 roles = { radio = {1, "mandatory", "exclusive"} },
102 node_type = node.player,
105 output = { driver = routing_group.default_driver_output,
106 passanger1 = routing_group.default_passanger1_output }
108 roles = { music = {0, "mandatory", "exclusive"},
109 video = {0, "mandatory", "exclusive"},
110 test = {0, "mandatory", "exclusive"}
116 node_type = node.browser,
119 output = { driver = routing_group.default_driver_output,
120 passanger1 = routing_group.default_passanger1_output }
122 roles = { browser = {0, "mandatory", "shared"} }
128 name = { recording = "audio_recording", playback = "audio_playback" },
130 role = {"media.role", mdb.string, "music"},
131 pid = {"application.process.id", mdb.string, "<unknown>"}
138 condition = "zone = 'driver' AND device = 'speaker'",
140 update = builtin.method.make_volumes
144 table = "audio_playback_owner",
145 columns = {"zone_id", "application_class", "role"},
146 condition = "zone_name = 'driver'",
148 update = function(self)
149 zid = self[1].zone_id
150 if (zid == nil) then zid = "<nil>" end
151 class = self[1].application_class
152 if (class == nil) then class = "<nil>" end
154 if (role == nil) then role = "<nil>" end
155 -- print("*** import "..self.table.." update: zone:"..zid.." class:"..class.." role:"..role)
160 table = "amb_shift_position",
161 columns = {"shift_position"},
162 condition = "id = 0",
164 update = builtin.method.make_volumes
168 name = "speed_adjust",
169 type = volume_limit.generic,
170 limit = mdb.import.speedvol:link(1,"value"),
171 calculate = builtin.method.volume_correct
176 type = volume_limit.class,
178 node_type = { node.phone, node.navigator },
179 calculate = builtin.method.volume_supress
184 type = volume_limit.class,
186 node_type = { node.player, node.game },
187 calculate = function(self, class, device)
188 -- print("*** limit "..self.name.." class:"..class.." stream:"..device.name)
189 position = mdb.import.amb_shift_position[1].shift_position
190 if (position and position == 128) then