Commit be250b7c authored by Oswald Buddenhagen's avatar Oswald Buddenhagen Committed by Takashi Iwai

ALSA: emu10k1: remove unused `resume` parameter from snd_emu10k1_init()

This was unnecessarily added in commit 09668b44 ("emu10k1 - Add PM
support").
Signed-off-by: default avatarOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230422132430.1057468-1-oswald.buddenhagen@gmx.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e922da40
...@@ -140,7 +140,7 @@ static const unsigned int i2c_adc_init[][2] = { ...@@ -140,7 +140,7 @@ static const unsigned int i2c_adc_init[][2] = {
{ 0x15, ADC_MUX_2 }, /* ADC Mixer control. Mic for A2ZS Notebook */ { 0x15, ADC_MUX_2 }, /* ADC Mixer control. Mic for A2ZS Notebook */
}; };
static int snd_emu10k1_init(struct snd_emu10k1 *emu, int enable_ir, int resume) static int snd_emu10k1_init(struct snd_emu10k1 *emu, int enable_ir)
{ {
unsigned int silent_page; unsigned int silent_page;
int ch; int ch;
...@@ -1910,7 +1910,7 @@ int snd_emu10k1_create(struct snd_card *card, ...@@ -1910,7 +1910,7 @@ int snd_emu10k1_create(struct snd_card *card,
for (idx = 0; idx < NUM_G; idx++) for (idx = 0; idx < NUM_G; idx++)
emu->voices[idx].number = idx; emu->voices[idx].number = idx;
err = snd_emu10k1_init(emu, enable_ir, 0); err = snd_emu10k1_init(emu, enable_ir);
if (err < 0) if (err < 0)
return err; return err;
#ifdef CONFIG_PM_SLEEP #ifdef CONFIG_PM_SLEEP
...@@ -2003,7 +2003,7 @@ void snd_emu10k1_resume_init(struct snd_emu10k1 *emu) ...@@ -2003,7 +2003,7 @@ void snd_emu10k1_resume_init(struct snd_emu10k1 *emu)
snd_emu10k1_emu1010_init(emu); snd_emu10k1_emu1010_init(emu);
else else
snd_emu10k1_ptr_write(emu, AC97SLOT, 0, AC97SLOT_CNTR|AC97SLOT_LFE); snd_emu10k1_ptr_write(emu, AC97SLOT, 0, AC97SLOT_CNTR|AC97SLOT_LFE);
snd_emu10k1_init(emu, emu->enable_ir, 1); snd_emu10k1_init(emu, emu->enable_ir);
} }
void snd_emu10k1_resume_regs(struct snd_emu10k1 *emu) void snd_emu10k1_resume_regs(struct snd_emu10k1 *emu)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment