Skip to content
Commit 361dab3e authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Call snd_array_init() early and only once



This is a preliminary patch for introducing a protection to access
races of snd_array instances.  Call snd_array_init() appropriately
at the initialization time and don't call it twice.

Also the allocations of codec-spec structs are cleaned up by helper
functions in patch_sigmatel.c and patch_analog.c.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 04324ccc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment