diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-07 08:38:44 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:15:47 -0500 |
commit | d031166fecac97fc6b5c35636deace8a3c9ec5f6 (patch) | |
tree | 744500b37b37d0411eae18e69c9261810f18b696 /sound/pci/hda/hda_codec.h | |
parent | 88026842b0a760145aa71d69e74fbc9ec118ca44 (diff) |
[ALSA] hda-codec - Allocate amp hash array dynamically
Modules: HDA Codec driver
Allocate amp hash array dynamically instead of static array.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index 1179d6cfa82a..b0123adc569c 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h | |||
@@ -545,7 +545,8 @@ struct hda_codec { | |||
545 | /* hash for amp access */ | 545 | /* hash for amp access */ |
546 | u16 amp_hash[32]; | 546 | u16 amp_hash[32]; |
547 | int num_amp_entries; | 547 | int num_amp_entries; |
548 | struct hda_amp_info amp_info[128]; /* big enough? */ | 548 | int amp_info_size; |
549 | struct hda_amp_info *amp_info; | ||
549 | 550 | ||
550 | struct semaphore spdif_mutex; | 551 | struct semaphore spdif_mutex; |
551 | unsigned int spdif_status; /* IEC958 status bits */ | 552 | unsigned int spdif_status; /* IEC958 status bits */ |