aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/emu10k1.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-11-22 11:17:17 -0500
committerTakashi Iwai <tiwai@suse.de>2012-11-22 11:48:09 -0500
commitb209c4dfcd960ab176d4746ab7dc442a3edb4575 (patch)
tree9c8f679c40a0543380baab32177bc441dba327b3 /include/sound/emu10k1.h
parent90caaef6a1ce2ec6675b1dc5afd57767954ab7e8 (diff)
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 <tiwai@suse.de>
Diffstat (limited to 'include/sound/emu10k1.h')
-rw-r--r--include/sound/emu10k1.h3
1 files changed, 3 insertions, 0 deletions
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 @@
32#include <sound/timer.h> 32#include <sound/timer.h>
33#include <linux/interrupt.h> 33#include <linux/interrupt.h>
34#include <linux/mutex.h> 34#include <linux/mutex.h>
35#include <linux/firmware.h>
35 36
36#include <asm/io.h> 37#include <asm/io.h>
37#include <uapi/sound/emu10k1.h> 38#include <uapi/sound/emu10k1.h>
@@ -1785,6 +1786,8 @@ struct snd_emu10k1 {
1785 unsigned int efx_voices_mask[2]; 1786 unsigned int efx_voices_mask[2];
1786 unsigned int next_free_voice; 1787 unsigned int next_free_voice;
1787 1788
1789 const struct firmware *firmware;
1790
1788#ifdef CONFIG_PM_SLEEP 1791#ifdef CONFIG_PM_SLEEP
1789 unsigned int *saved_ptr; 1792 unsigned int *saved_ptr;
1790 unsigned int *saved_gpr; 1793 unsigned int *saved_gpr;