From b209c4dfcd960ab176d4746ab7dc442a3edb4575 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 22 Nov 2012 17:17:17 +0100 Subject: ALSA: emu10k1: cache emu1010 firmware Instead of calling request_firmware() at each time, keep the obtained firmware internally and reuse it. Signed-off-by: Takashi Iwai --- include/sound/emu10k1.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/sound/emu10k1.h b/include/sound/emu10k1.h index 3707288ae9bf..9dc94b559c7d 100644 --- a/include/sound/emu10k1.h +++ b/include/sound/emu10k1.h @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -1785,6 +1786,8 @@ struct snd_emu10k1 { unsigned int efx_voices_mask[2]; unsigned int next_free_voice; + const struct firmware *firmware; + #ifdef CONFIG_PM_SLEEP unsigned int *saved_ptr; unsigned int *saved_gpr; -- cgit v1.2.3-55-g7522