diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-02-16 00:02:10 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-02-16 11:22:43 +0300 |
commit | 28ed125b9a07b9ad09ea680628a920427d079af6 (patch) | |
tree | 85ee79bc488332c265bb50db18529d5100db8d79 /samples | |
parent | a72ccfbad7fd6f604d8edd068119edb57e7984e1 (diff) | |
download | linux-28ed125b9a07b9ad09ea680628a920427d079af6.tar.xz |
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions