mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
hdspmixer: Don't use hardcoded number of cards.
We have introduced MAX_CARDS before to make the code more safe and extendable, so it's just sane to use it all over the place. Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
c3349a84ea
commit
e728f0d073
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ private:
|
|||
std::stringstream channel_name;
|
||||
void update_child(Fl_Widget &widget);
|
||||
public:
|
||||
HDSPMixerStripData *data[3][3][8]; /* data[card][mode(ss/ds/qs)][preset number] */
|
||||
HDSPMixerStripData *data[MAX_CARDS][3][8]; /* data[card][mode(ss/ds/qs)][preset number] */
|
||||
HDSPMixerPan *pan;
|
||||
HDSPMixerFader *fader;
|
||||
HDSPMixerPeak *peak;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue