Commit b714a710 authored by Dylan Reid's avatar Dylan Reid Committed by Takashi Iwai

ALSA: hda/ca0132 - Remove extra setting of dsp_state.

spec->dsp_state is initialized to DSP_DOWNLOAD_INIT, no need to reset
and check it in ca0132_download_dsp().
Signed-off-by: default avatarDylan Reid <dgreid@chromium.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e8f1bd5d
...@@ -4372,16 +4372,13 @@ static void ca0132_download_dsp(struct hda_codec *codec) ...@@ -4372,16 +4372,13 @@ static void ca0132_download_dsp(struct hda_codec *codec)
#ifndef CONFIG_SND_HDA_CODEC_CA0132_DSP #ifndef CONFIG_SND_HDA_CODEC_CA0132_DSP
return; /* NOP */ return; /* NOP */
#endif #endif
spec->dsp_state = DSP_DOWNLOAD_INIT;
if (spec->dsp_state == DSP_DOWNLOAD_INIT) {
chipio_enable_clocks(codec); chipio_enable_clocks(codec);
spec->dsp_state = DSP_DOWNLOADING; spec->dsp_state = DSP_DOWNLOADING;
if (!ca0132_download_dsp_images(codec)) if (!ca0132_download_dsp_images(codec))
spec->dsp_state = DSP_DOWNLOAD_FAILED; spec->dsp_state = DSP_DOWNLOAD_FAILED;
else else
spec->dsp_state = DSP_DOWNLOADED; spec->dsp_state = DSP_DOWNLOADED;
}
if (spec->dsp_state == DSP_DOWNLOADED) if (spec->dsp_state == DSP_DOWNLOADED)
ca0132_set_dsp_msr(codec, true); ca0132_set_dsp_msr(codec, true);
......
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