ALSA: ali5451: Embed suspend image into struct snd_ali
authorTakashi Iwai <tiwai@suse.de>
Wed, 7 Feb 2024 15:51:26 +0000 (16:51 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Feb 2024 10:50:25 +0000 (11:50 +0100)
commitb9beb229eb265c544314a4e834d8467943c89650
treedc0c74ad21713c24b746d1f4c4ac3d84f6c5b60d
parent8ca0d10268b8b5951de13a21eb24744dc88d2e4b
ALSA: ali5451: Embed suspend image into struct snd_ali

Instead of allocating the memory with an additional devm_kmalloc(),
just put the image into the existing struct snd_ali.  The allocation
size isn't too big, hence it works better with less allocation calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240207155140.18238-16-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ali5451/ali5451.c