Lines Matching defs:map
333 * stored in the map and vol arguments. The iterator must point to a "a(uu)"
336 * state of map and vol. In case of an empty array the channels field of both
337 * map and vol are set to 0. This function calls dbus_message_iter_next(iter)
339 static int get_volume_arg(DBusConnection *conn, DBusMessage *msg, DBusMessageIter *iter, pa_channel_map *map, pa_cvolume *vol) {
347 pa_assert(map);
355 pa_channel_map_init(map);
358 map->channels = 0;
384 if (map->channels < PA_CHANNELS_MAX) {
385 map->map[map->channels] = chan_pos;
386 vol->values[map->channels] = chan_vol;
388 ++map->channels;
394 if (map->channels > PA_CHANNELS_MAX) {
395 pa_dbus_send_error(conn, msg, DBUS_ERROR_INVALID_ARGS, "Too many channels: %u. The maximum is %u.", map->channels, PA_CHANNELS_MAX);
422 pa_assert_se(dbus_message_iter_append_basic(&struct_iter, DBUS_TYPE_UINT32, &e->channel_map.map[i]));
598 pa_channel_map map;
616 if (get_volume_arg(conn, msg, &msg_iter, &map, &vol) < 0)
639 volume_updated = (e->volume_valid != !!map.channels) || !pa_cvolume_equal(&e->volume, &vol);
641 e->channel_map = map;
642 e->volume_valid = !!map.channels;
662 e->volume_valid = !!map.channels;
666 e->channel_map = map;
799 pa_channel_map map;
809 if (get_volume_arg(conn, msg, iter, &map, &vol) < 0)
814 updated = (e->volume_valid != !!map.channels) || !pa_cvolume_equal(&e->volume, &vol);
818 e->channel_map = map;
819 e->volume_valid = !!map.channels;
1084 pa_log_warn("Invalid channel map stored in database for legacy stream");
1165 pa_log_warn("Invalid channel map stored in database for stream %s", name);