]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: Avoid register accesses during disconnection
authorTakashi Iwai <tiwai@suse.de>
Wed, 15 Feb 2017 21:02:10 +0000 (22:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Feb 2017 08:22:43 +0000 (09:22 +0100)
commitab8f67c371958e78d94002b56b835b9df8b5be0d
tree85ee79bc488332c265bb50db18529d5100db8d79
parentbf3a12aeb2de7f9d8448a98b8d089c42feeeb7b4
ALSA: x86: Avoid register accesses during disconnection

It seems that accessing registers during disconnection often leads to
the GPU pipe error.  The original driver had a similar check in the
past, but it was lost through refactoring.  Now put a connection check
in the register access functions.

One exception is the irq handler: it still needs to access the raw
register even while disconnected, because it has to read and write to
ACK the irq mask.  Although the irq shouldn't be raised while
disconnected (the stream should have been disabled), let's make it
safer for now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c