merger: don't try to change the volumes in PortConfig

Just leave them be. Something else is supposed to changed the volumes
if needed. In the usual case where nothing changes, we don't want to
override the volumes.
This commit is contained in:
Wim Taymans 2021-03-22 16:33:36 +01:00
parent d439b7cdd7
commit 8a9c2ae901

View file

@ -507,11 +507,8 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
this->have_profile = true; this->have_profile = true;
this->port_count = info.info.raw.channels; this->port_count = info.info.raw.channels;
this->monitor_count = this->monitor ? this->port_count : 0; this->monitor_count = this->monitor ? this->port_count : 0;
for (i = 0; i < this->port_count; i++) { for (i = 0; i < this->port_count; i++)
this->props.channel_map[i] = info.info.raw.position[i]; this->props.channel_map[i] = info.info.raw.position[i];
this->props.channel_volumes[i] = this->props.volume;
this->props.monitor_volumes[i] = this->props.volume;
}
this->props.n_channel_volumes = this->port_count; this->props.n_channel_volumes = this->port_count;
this->props.n_monitor_volumes = this->port_count; this->props.n_monitor_volumes = this->port_count;
this->props.n_channels = this->port_count; this->props.n_channels = this->port_count;