diff options
Diffstat (limited to 'sound/pci/hda/patch_ca0132.c')
-rw-r--r-- | sound/pci/hda/patch_ca0132.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 225d1d52abad..0792b5725f9c 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c | |||
@@ -4372,16 +4372,13 @@ static void ca0132_download_dsp(struct hda_codec *codec) | |||
4372 | #ifndef CONFIG_SND_HDA_CODEC_CA0132_DSP | 4372 | #ifndef CONFIG_SND_HDA_CODEC_CA0132_DSP |
4373 | return; /* NOP */ | 4373 | return; /* NOP */ |
4374 | #endif | 4374 | #endif |
4375 | spec->dsp_state = DSP_DOWNLOAD_INIT; | ||
4376 | 4375 | ||
4377 | if (spec->dsp_state == DSP_DOWNLOAD_INIT) { | 4376 | chipio_enable_clocks(codec); |
4378 | chipio_enable_clocks(codec); | 4377 | spec->dsp_state = DSP_DOWNLOADING; |
4379 | spec->dsp_state = DSP_DOWNLOADING; | 4378 | if (!ca0132_download_dsp_images(codec)) |
4380 | if (!ca0132_download_dsp_images(codec)) | 4379 | spec->dsp_state = DSP_DOWNLOAD_FAILED; |
4381 | spec->dsp_state = DSP_DOWNLOAD_FAILED; | 4380 | else |
4382 | else | 4381 | spec->dsp_state = DSP_DOWNLOADED; |
4383 | spec->dsp_state = DSP_DOWNLOADED; | ||
4384 | } | ||
4385 | 4382 | ||
4386 | if (spec->dsp_state == DSP_DOWNLOADED) | 4383 | if (spec->dsp_state == DSP_DOWNLOADED) |
4387 | ca0132_set_dsp_msr(codec, true); | 4384 | ca0132_set_dsp_msr(codec, true); |