USB audio/SiS7018: Set controls_count on list mix ioctl

Looks like it works with default controls count 128 on default Haiku
builds but force media-addons-server to crash in case KDEBUG_LEVEL is set
to 0. Thanks to Vitaly Diger for pointing out and testing this issue.
This commit is contained in:
Siarzhuk Zharski 2013-08-22 10:52:26 +02:00
parent d5de9547c7
commit d516d16129
2 changed files with 4 additions and 0 deletions

View File

@ -612,6 +612,8 @@ Mixer::ListMixControls(multi_mix_control_info* Info)
_CreateMIXControlGroup(Info, index, recordGroup, RecordControls[i]);
}
Info->control_count = index;
return B_OK;
}

View File

@ -1855,6 +1855,8 @@ AudioControlInterface::ListMixControls(multi_mix_control_info* Info)
I != MixerControlsMap.End(); I++)
_ListMixControlsForMixerUnit(index, Info, I->Value());
Info->control_count = index;
return B_OK;
}