dde_bsd: use right member for iterating mixer set

Due to what seems like a copy-and-paste error, the wrong union member
was used to compare the label. Fortunately, as both structs have the
same memory layout that did not result in any issue.

Issue #3929.
This commit is contained in:
Josef Söntgen 2020-09-21 17:15:27 +02:00 committed by Christian Helmuth
parent b9869b666a
commit 1b4444ce9e

View File

@ -178,7 +178,7 @@ static bool set_mixer_value(Mixer &mixer, char const * const field,
case AUDIO_MIXER_SET:
{
for (int i = 0; i < info.un.s.num_mem; i++) {
if (Genode::strcmp(value, info.un.e.member[i].label.name) == 0) {
if (Genode::strcmp(value, info.un.s.member[i].label.name) == 0) {
oldv= ctrl.un.mask;
newv |= info.un.s.member[i].mask;