Skip to content

Commit

Permalink
USB audio/SiS7018: Set controls_count on list mix ioctl
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
siarzhuk committed Aug 22, 2013
1 parent d5de954 commit d516d16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/add-ons/kernel/drivers/audio/ac97/sis7018/Mixer.cpp
Expand Up @@ -612,6 +612,8 @@ Mixer::ListMixControls(multi_mix_control_info* Info)
_CreateMIXControlGroup(Info, index, recordGroup, RecordControls[i]);
}

Info->control_count = index;

return B_OK;
}

Expand Down
Expand Up @@ -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;
}

Expand Down

0 comments on commit d516d16

Please sign in to comment.