mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-18 05:33:49 -04:00
hdspmixer: Replace hardcoded 3 by MAX_CARDS
We have a define for the number of cards. Use it. Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
863c47cebe
commit
92e0a21b89
2 changed files with 4 additions and 4 deletions
|
|
@ -37,7 +37,7 @@ HDSPMixerIOMixer::HDSPMixerIOMixer(int x, int y, int w, int h, int ch, int type)
|
|||
relative_num = channel_num-1;
|
||||
p_iomixer_xpm = iomixer_r_xpm;
|
||||
}
|
||||
for (int j = 0; j < 3; ++j) {
|
||||
for (int j = 0; j < MAX_CARDS; ++j) {
|
||||
for (int i = 0; i < 8; ++i) {
|
||||
data[j][0][i] = new HDSPMixerStripData();
|
||||
data[j][1][i] = new HDSPMixerStripData();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue