]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: Don't bail out from PCM ops when disconnected
authorTakashi Iwai <tiwai@suse.de>
Wed, 15 Feb 2017 21:11:13 +0000 (22:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Feb 2017 08:22:44 +0000 (09:22 +0100)
commitb463d8f44d1caea742dd6bb4ede151968efa1b2e
treeaf4256a10783e0c7c6658268e6412b9f0d8fe75d
parentef854b99504e17bfc3f57c21516e357b685a4666
ALSA: x86: Don't bail out from PCM ops when disconnected

Currently the driver returns -ENODEV when the monitor is disconnected.
But PA alsa module doesn't like this and it starts playing Juliet,
kills itself as if it were a fatal tragedy.

Since we protect the whole read/write at disconnection, just allow the
PCM accesses even during disconnection.

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