]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit23aef14b031da8d4c85cef03c2f047d31ef29af9
tree075025a52f934e8d5fb98560d0d30b30f27dbfd4
parent10ac6647f1d9243c2f72e742aecb341ac45abf72
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