ALSA: x86: Remove superfluous check at resume
authorTakashi Iwai <tiwai@suse.de>
Tue, 31 Jan 2017 15:38:22 +0000 (16:38 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 16:34:09 +0000 (17:34 +0100)
commitcaa2a61a702a2a391b2fb695fc245ca5b8a4ffd8
tree075025a52f934e8d5fb98560d0d30b30f27dbfd4
parent99b2ab9d3aa08824dfefd7d9ad9f2b4c19555d05
ALSA: x86: Remove superfluous check at resume

The had_get_hwstate() is identical with drv_status==DISCONECTED, which
was already checked before the call.  And, returning an error at
resume is simply bad.  That is, we should just kill this check.

Also, spewing an error at resume for drv_status!=SUSPENDED is also
annoying, as this is the normal case when the suspend was called
without the monitor connection.  Make it debug, too.

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