[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>
This commit is contained in:
Takashi Iwai
2005-11-07 14:38:44 +01:00
committed by Jaroslav Kysela
parent 88026842b0
commit d031166fec
2 changed files with 21 additions and 4 deletions

View File

@@ -545,7 +545,8 @@ struct hda_codec {
/* hash for amp access */
u16 amp_hash[32];
int num_amp_entries;
struct hda_amp_info amp_info[128]; /* big enough? */
int amp_info_size;
struct hda_amp_info *amp_info;
struct semaphore spdif_mutex;
unsigned int spdif_status; /* IEC958 status bits */