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)
commitb1ef30e5ed17a417fc78eaff12da28f9a1c2efcc
treeaf4256a10783e0c7c6658268e6412b9f0d8fe75d
parent2d42c033aec9f8e7e175c551ae62ea3f4dc200b9
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