ALSA: hda/ca0132 - Keep power on during processing DSP response
authorTakashi Iwai <tiwai@suse.de>
Fri, 13 Dec 2019 08:51:09 +0000 (09:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:42:09 +0000 (16:42 +0100)
commit302dc1aeb9672cc53d80ebb36cef725717ebf197
tree1ff2014dc73b0aaf2ab7a7b871b27d57d1d476e6
parent396dbcfeea63060a2f2bbe595f657360fb253584
ALSA: hda/ca0132 - Keep power on during processing DSP response

commit 377bc0cfabce0244632dada19060839ced4e6949 upstream.

We need to keep power on while processing the DSP response via unsol
event.  Each snd_hda_codec_read() call does the power management, so
it should work normally, but still it's safer to keep the power up for
the whole function.

Fixes: a73d511c4867 ("ALSA: hda/ca0132: Add unsol handler for DSP and jack detection")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191213085111.22855-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_ca0132.c