aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2013-02-25 03:53:35 -0500
committerTakashi Iwai <tiwai@suse.de>2013-02-25 03:53:35 -0500
commitb56ddbe55a363eee4ff7410a97050dad08215f7c (patch)
treead5ec99b677d9ac6148bee77fb51788a841ca6dd /sound/pci/emu10k1
parentc2d3703cdd4954836f348515b802a5dc4c17710e (diff)
ALSA: emu10k1: Load firmware when it was already cached
This expands the regression fix from d28215996b0c3a900411769039aa3c54cf7008ab. The firmware also needs to be loaded when it was already cached. Signed-off-by: Florian Zeitz <florob@babelmonkeys.de> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/emu10k1')
-rw-r--r--sound/pci/emu10k1/emu10k1_main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c
index 5115f1104dfb..e6b016693240 100644
--- a/sound/pci/emu10k1/emu10k1_main.c
+++ b/sound/pci/emu10k1/emu10k1_main.c
@@ -860,11 +860,12 @@ static int snd_emu10k1_emu1010_init(struct snd_emu10k1 *emu)
860 } 860 }
861 snd_printk(KERN_INFO "emu1010: firmware file = %s, size = 0x%zx\n", 861 snd_printk(KERN_INFO "emu1010: firmware file = %s, size = 0x%zx\n",
862 filename, emu->firmware->size); 862 filename, emu->firmware->size);
863 err = snd_emu1010_load_firmware(emu); 863 }
864 if (err != 0) { 864
865 snd_printk(KERN_INFO "emu1010: Loading Firmware file %s failed\n", filename); 865 err = snd_emu1010_load_firmware(emu);
866 return err; 866 if (err != 0) {
867 } 867 snd_printk(KERN_INFO "emu1010: Loading Firmware failed\n");
868 return err;
868 } 869 }
869 870
870 /* ID, should read & 0x7f = 0x55 when FPGA programmed. */ 871 /* ID, should read & 0x7f = 0x55 when FPGA programmed. */